droid-makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. APP := lib$(PROJECT)_$(MARCH).$(EXT)
  2. CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I./include
  3. LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -lm
  4. all: $(APP)
  5. OBJS = \
  6. src/adler32.o\
  7. src/compress.o\
  8. src/deflate.o\
  9. src/tcomp.o\
  10. src/tcomp_buffer.o\
  11. src/tcomp_compartment.o\
  12. src/tcomp_compressordata.o\
  13. src/tcomp_compressordisp.o\
  14. src/tcomp_compressor_deflate.o\
  15. src/tcomp_compressor_dummy.o\
  16. src/tcomp_decompressordisp.o\
  17. src/tcomp_deflatedata.o\
  18. src/tcomp_deflatedata.ghost.o\
  19. src/tcomp_deflatedata.zlib.o\
  20. src/tcomp_dicts.o\
  21. src/tcomp_manager.o\
  22. src/tcomp_message.o\
  23. src/tcomp_nackinfo.o\
  24. src/tcomp_params.o\
  25. src/tcomp_reqfeed.o\
  26. src/tcomp_result.o\
  27. src/tcomp_state.o\
  28. src/tcomp_statehandler.o\
  29. src/tcomp_udvm.bytecopy.o\
  30. src/tcomp_udvm.o\
  31. src/tcomp_udvm.instructions.o\
  32. src/tcomp_udvm.nack.o\
  33. src/tcomp_udvm.operands.o\
  34. src/tcomp_udvm.statemanagment.o\
  35. src/trees.o\
  36. src/zutil.o\
  37. $(APP): $(OBJS)
  38. ifeq ($(EXT), a)
  39. $(AR) rcs $@ $^
  40. else
  41. $(CC) $(LDFLAGS) -o $@ $^
  42. endif
  43. %.o: %.c
  44. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  45. install: $(APP)
  46. $(ANDROID_SDK_ROOT)/tools/adb remount
  47. $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
  48. $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
  49. clean:
  50. @rm -f $(OBJS) $(APP)