droid-makefile 710 B

123456789101112131415161718192021222324252627282930313233
  1. APP := lib$(PROJECT)_$(MARCH).$(EXT)
  2. CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I../tinyNET/src -I../tinyHTTP/include -I./include
  3. LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH) -ltinyHTTP_$(MARCH)
  4. all: $(APP)
  5. OBJS = \
  6. src/txcap.o\
  7. src/txcap_auid.o\
  8. src/txcap_document.o\
  9. src/txcap_node.o\
  10. src/txcap_selector.o\
  11. src/txcap_action.o
  12. $(APP): $(OBJS)
  13. ifeq ($(EXT), a)
  14. $(AR) rcs $@ $^
  15. else
  16. $(CC) $(LDFLAGS) -o $@ $^
  17. endif
  18. %.o: %.c
  19. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  20. install: $(APP)
  21. $(ANDROID_SDK_ROOT)/tools/adb remount
  22. $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
  23. $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
  24. clean:
  25. @rm -f $(OBJS) $(APP)