droid-makefile 802 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. APP := lib$(PROJECT)_$(MARCH).$(EXT)
  2. CFLAGS := $(CFLAGS_LIB) -D__unix__
  3. LDFLAGS := $(LDFLAGS_LIB) -lgcc
  4. all: $(APP)
  5. OBJS = ACELP_CA.o\
  6. BASIC_OP.o\
  7. BITS.o\
  8. COD_LD8A.o\
  9. COR_FUNC.o\
  10. DEC_GAIN.o\
  11. DEC_LAG3.o\
  12. DEC_LD8A.o\
  13. DE_ACELP.o\
  14. DSPFUNC.o\
  15. FILTER.o\
  16. GAINPRED.o\
  17. LPC.o\
  18. LPCFUNC.o\
  19. LSPDEC.o\
  20. LSPGETQ.o\
  21. OPER_32B.o\
  22. PITCH_A.o\
  23. POSTFILT.o\
  24. POST_PRO.o\
  25. PRED_LT3.o\
  26. PRE_PROC.o\
  27. P_PARITY.o\
  28. QUA_GAIN.o\
  29. QUA_LSP.o\
  30. TAB_LD8A.o\
  31. TAMING.o\
  32. UTIL.o
  33. $(APP): $(OBJS)
  34. ifeq ($(EXT), a)
  35. $(AR) rcs $@ $^
  36. else
  37. $(CC) $(LDFLAGS) -o $@ $^
  38. endif
  39. %.o: %.c
  40. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  41. install: $(APP)
  42. cp -f $(APP) ../thirdparties/android/lib
  43. shell:
  44. $(ANDROID_SDK_ROOT)/tools/adb shell
  45. run:
  46. $(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP)
  47. clean:
  48. @rm -f $(OBJS) $(APP)