droid-makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. APP := lib$(PROJECT)_$(MARCH).$(EXT)
  2. CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I../tinyNET/src -I../tinySDP/include -I./include
  3. LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH) -ltinySDP_$(MARCH) -lm
  4. all: $(APP)
  5. OBJS = \
  6. src/tmedia.o \
  7. src/tmedia_codec.o \
  8. src/tmedia_codec_dummy.o \
  9. src/tmedia_common.o \
  10. src/tmedia_consumer.o \
  11. src/tmedia_converter_video.o \
  12. src/tmedia_defaults.o \
  13. src/tmedia_denoise.o \
  14. src/tmedia_imageattr.o \
  15. src/tmedia_jitterbuffer.o \
  16. src/tmedia_params.o \
  17. src/tmedia_producer.o \
  18. src/tmedia_qos.o \
  19. src/tmedia_resampler.o \
  20. src/tmedia_session.o \
  21. src/tmedia_session_dummy.o \
  22. src/tmedia_session_ghost.o \
  23. \
  24. src/content/tmedia_content.o \
  25. src/content/tmedia_content_cpim.o \
  26. src/content/tmedia_content_multipart.o \
  27. src/content/tmedia_content_sip_frag.o
  28. $(APP): $(OBJS)
  29. ifeq ($(EXT), a)
  30. $(AR) rcs $@ $^
  31. else
  32. $(CC) $(LDFLAGS) -o $@ $^
  33. endif
  34. %.o: %.c
  35. $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
  36. install: $(APP)
  37. $(ANDROID_SDK_ROOT)/tools/adb remount
  38. $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
  39. $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
  40. clean:
  41. @rm -f $(OBJS) $(APP)