summaryrefslogtreecommitdiffstats
path: root/tinyRTP/droid-makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tinyRTP/droid-makefile')
-rw-r--r--tinyRTP/droid-makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/tinyRTP/droid-makefile b/tinyRTP/droid-makefile
new file mode 100644
index 0000000..9c7a4b0
--- /dev/null
+++ b/tinyRTP/droid-makefile
@@ -0,0 +1,37 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I../tinyNET/src -I./include
+LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH)
+
+all: $(APP)
+
+OBJS = \
+ src/trtp.o \
+ src/trtp_manager.o \
+
+## RTCP
+OBJS += src/rtcp/trtp_rtcp_session.o
+
+## RTP
+OBJS += src/rtp/trtp_rtp_header.o \
+ src/rtp/trtp_rtp_packet.o \
+ src/rtp/trtp_rtp_session.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