droid-makefile 691 B

1234567891011121314151617181920212223242526272829
  1. APP := test
  2. CFLAGS := $(CFLAGS_COMMON) -I../include -I../../tinySAK/src -I../../tinyNET/src -I../../tinySDP/include
  3. LDFLAGS := $(LDFLAGS_COMMON) -Wl,-Bsymbolic,--whole-archive -l$(PROJECT) -ltinySAK -ltinyNET -ltinySDP -Wl,--entry=main
  4. all: $(APP)
  5. OBJS += $(APP).o \
  6. dummy.o
  7. $(APP): $(OBJS)
  8. $(CC) $(LDFLAGS) -o $@ $^
  9. %.o: %.c
  10. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  11. install: $(APP)
  12. $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(EXEC_DIR)/$(APP)
  13. $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(EXEC_DIR)/$(APP)
  14. run:
  15. $(ANDROID_SDK_ROOT)/tools/adb shell $(EXEC_DIR)/$(APP)
  16. #dbg:
  17. # $(MAKE) $(MAKEFILE) DEBUG="-g -DDEBUG"
  18. # $(MAKE) $(MAKEFILE) install
  19. clean:
  20. @rm -f $(OBJS) $(APP)