makefile 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include ./root.mk
  2. ifeq ($(PROJECT), tinyWRAP)
  3. PROJECT_ROOT:=../bindings/java/android
  4. else
  5. PROJECT_ROOT:=../$(PROJECT)
  6. endif
  7. ifeq ($(STRIP_LIB), )
  8. STRIP_LIB:=no
  9. ifeq ($(DEBUG), no)
  10. ifeq ($(BT), shared)
  11. STRIP_LIB:=yes
  12. endif
  13. endif
  14. endif
  15. ifeq ($(STRIP_LIB), yes)
  16. all:
  17. (cd $(PROJECT_ROOT); \
  18. $(MAKE) -f droid-makefile all; \
  19. $(STRIP) --strip-all --remove-section=.comment --remove-section=.note ./lib$(PROJECT)_$(MARCH).$(EXT); \
  20. cp -f ./lib$(PROJECT)_$(MARCH).$(EXT) $(OUTPUT_DIR);\
  21. )
  22. else
  23. all:
  24. (cd $(PROJECT_ROOT); $(MAKE) -f droid-makefile all; cp -f lib$(PROJECT)_$(MARCH).$(EXT) $(OUTPUT_DIR))
  25. endif
  26. install:
  27. (cd $(PROJECT_ROOT) ; $(MAKE) -f droid-makefile install)
  28. clean:
  29. (cd $(PROJECT_ROOT); $(MAKE) -f droid-makefile clean)
  30. gdbserver:
  31. $(ANDROID_SDK_ROOT)/tools/adb forward tcp:1234: tcp:1234
  32. $(ANDROID_SDK_ROOT)/tools/adb shell $(EXEC_DIR)/gdbserver :1234 $(EXEC_DIR)/test