summaryrefslogtreecommitdiffstats
path: root/tinyMEDIA/droid-makefile
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
committerMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
commit631fffee8a28b1bec5ed1f1d26a20e0135967f99 (patch)
tree74afe3bf3efe15aa82bcd0272b2b0f4d48c2d837 /tinyMEDIA/droid-makefile
parent7908865936604036e6f200f1b5e069f8752f3a3a (diff)
downloaddoubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip
doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz
-
Diffstat (limited to 'tinyMEDIA/droid-makefile')
-rw-r--r--tinyMEDIA/droid-makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/tinyMEDIA/droid-makefile b/tinyMEDIA/droid-makefile
new file mode 100644
index 0000000..f56d3dd
--- /dev/null
+++ b/tinyMEDIA/droid-makefile
@@ -0,0 +1,49 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I../tinyNET/src -I../tinySDP/include -I./include
+LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH) -ltinySDP_$(MARCH) -lm
+
+all: $(APP)
+
+OBJS = \
+ src/tmedia.o \
+ src/tmedia_codec.o \
+ src/tmedia_codec_dummy.o \
+ src/tmedia_common.o \
+ src/tmedia_consumer.o \
+ src/tmedia_converter_video.o \
+ src/tmedia_defaults.o \
+ src/tmedia_denoise.o \
+ src/tmedia_imageattr.o \
+ src/tmedia_jitterbuffer.o \
+ src/tmedia_params.o \
+ src/tmedia_producer.o \
+ src/tmedia_qos.o \
+ src/tmedia_resampler.o \
+ src/tmedia_session.o \
+ src/tmedia_session_dummy.o \
+ src/tmedia_session_ghost.o \
+ \
+ src/content/tmedia_content.o \
+ src/content/tmedia_content_cpim.o \
+ src/content/tmedia_content_multipart.o \
+ src/content/tmedia_content_sip_frag.o
+
+
+$(APP): $(OBJS)
+ifeq ($(EXT), a)
+ $(AR) rcs $@ $^
+else
+ $(CC) $(LDFLAGS) -o $@ $^
+endif
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb remount
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
OpenPOWER on IntegriCloud