summaryrefslogtreecommitdiffstats
path: root/tinyHTTP/droid-makefile
diff options
context:
space:
mode:
authorbossiel <bossiel@yahoo.fr>2011-08-10 22:59:15 +0000
committerbossiel <bossiel@yahoo.fr>2011-08-10 22:59:15 +0000
commit1ebf5a5fcda0c9154e22ed02404fd46525a7fd9f (patch)
tree4b6214a7142ab1035cb0e47444e88af38e712421 /tinyHTTP/droid-makefile
downloaddoubango-1.0.zip
doubango-1.0.tar.gz
Move deprecated v1.0 from trunk to branches1.0
Diffstat (limited to 'tinyHTTP/droid-makefile')
-rw-r--r--tinyHTTP/droid-makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/tinyHTTP/droid-makefile b/tinyHTTP/droid-makefile
new file mode 100644
index 0000000..5f74e38
--- /dev/null
+++ b/tinyHTTP/droid-makefile
@@ -0,0 +1,55 @@
+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/thttp.o\
+ src/thttp_action.o\
+ src/thttp_dialog.o\
+ src/thttp_event.o\
+ src/thttp_message.o\
+ src/thttp_session.o\
+ src/thttp_url.o
+ ###################
+ ## AUTH
+ ###################
+OBJS += src/auth/thttp_auth.o\
+ src/auth/thttp_challenge.o
+ ###################
+ ## HEADERS
+ ###################
+OBJS += src/headers/thttp_header.o\
+ src/headers/thttp_header_Authorization.o\
+ src/headers/thttp_header_Content_Length.o\
+ src/headers/thttp_header_Content_Type.o\
+ src/headers/thttp_header_Dummy.o\
+ src/headers/thttp_header_ETag.o\
+ src/headers/thttp_header_Transfer_Encoding.o\
+ src/headers/thttp_header_WWW_Authenticate.o
+ ###################
+ ## parsers
+ ###################
+OBJS += src/parsers/thttp_parser_header.o\
+ src/parsers/thttp_parser_message.o\
+ src/parsers/thttp_parser_url.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