droid-makefile 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. APP := lib$(PROJECT)_$(MARCH).$(EXT)
  2. CFLAGS := $(CFLAGS_LIB) -D__unix__
  3. LDFLAGS := $(LDFLAGS_LIB)
  4. all: $(APP)
  5. OBJS = acelp_ca.o\
  6. basic_op.o\
  7. bits.o\
  8. calcexc.o\
  9. cod_ld8a.o\
  10. cor_func.o\
  11. dec_gain.o\
  12. dec_lag3.o\
  13. dec_ld8a.o\
  14. dec_sid.o\
  15. de_acelp.o\
  16. dspfunc.o\
  17. dtx.o\
  18. filter.o\
  19. gainpred.o\
  20. lpc.o\
  21. lpcfunc.o\
  22. lspdec.o\
  23. lspgetq.o\
  24. oper_32b.o\
  25. pitch_a.o\
  26. postfilt.o\
  27. post_pro.o\
  28. pred_lt3.o\
  29. pre_proc.o\
  30. p_parity.o\
  31. qsidgain.o\
  32. qsidlsf.o\
  33. qua_gain.o\
  34. qua_lsp.o\
  35. tab_dtx.o\
  36. tab_ld8a.o\
  37. taming.o\
  38. util.o\
  39. vad.o
  40. $(APP): $(OBJS)
  41. ifeq ($(EXT), a)
  42. $(AR) rcs $@ $^
  43. else
  44. $(CC) $(LDFLAGS) -o $@ $^
  45. endif
  46. %.O: %.C
  47. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  48. install: $(APP)
  49. cp -f $(APP) ../thirdparties/android/lib
  50. shell:
  51. $(ANDROID_SDK_ROOT)/tools/adb shell
  52. run:
  53. $(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP)
  54. clean:
  55. @rm -f $(OBJS) $(APP)