diff options
author | Mamadou DIOP <bossiel@yahoo.fr> | 2015-08-17 01:56:35 +0200 |
---|---|---|
committer | Mamadou DIOP <bossiel@yahoo.fr> | 2015-08-17 01:56:35 +0200 |
commit | 631fffee8a28b1bec5ed1f1d26a20e0135967f99 (patch) | |
tree | 74afe3bf3efe15aa82bcd0272b2b0f4d48c2d837 /tinyMSRP/droid-makefile | |
parent | 7908865936604036e6f200f1b5e069f8752f3a3a (diff) | |
download | doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz |
-
Diffstat (limited to 'tinyMSRP/droid-makefile')
-rw-r--r-- | tinyMSRP/droid-makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tinyMSRP/droid-makefile b/tinyMSRP/droid-makefile new file mode 100644 index 0000000..6468bfa --- /dev/null +++ b/tinyMSRP/droid-makefile @@ -0,0 +1,59 @@ +APP := lib$(PROJECT)_$(MARCH).$(EXT) + +CFLAGS := $(CFLAGS_LIB) -I./include -I../tinySAK/src -I../tinyNET/src -I../tinyHTTP/include -I../tinySDP/include +LDFLAGS := $(LDFLAGS_LIB) -ltinySAK_$(MARCH) -ltinyNET_$(MARCH) -ltinyHTTP_$(MARCH) -ltinySDP_$(MARCH) + +all: $(APP) + +OBJS = \ + src/tmsrp.o\ + src/tmsrp_event.o\ + src/tmsrp_message.o\ + src/tmsrp_uri.o + + ### Headers +OBJS += src/headers/tmsrp_header.o\ + src/headers/tmsrp_header_Authentication-Info.o\ + src/headers/tmsrp_header_Authorization.o\ + src/headers/tmsrp_header_Byte-Range.o\ + src/headers/tmsrp_header_Content-Type.o\ + src/headers/tmsrp_header_Dummy.o\ + src/headers/tmsrp_header_Expires.o\ + src/headers/tmsrp_header_Failure-Report.o\ + src/headers/tmsrp_header_From-Path.o\ + src/headers/tmsrp_header_Max-Expires.o\ + src/headers/tmsrp_header_Message-ID.o\ + src/headers/tmsrp_header_Min-Expires.o\ + src/headers/tmsrp_header_Status.o\ + src/headers/tmsrp_header_Success-Report.o\ + src/headers/tmsrp_header_To-Path.o\ + src/headers/tmsrp_header_Use-Path.o\ + src/headers/tmsrp_header_WWW-Authenticate.o + + ### parsers +OBJS += src/parsers/tmsrp_parser_message.o\ + src/parsers/tmsrp_parser_uri.o + + ### session +OBJS += src/session/tmsrp_config.o\ + src/session/tmsrp_data.o \ + src/session/tmsrp_receiver.o \ + src/session/tmsrp_sender.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 |