summaryrefslogtreecommitdiffstats
path: root/tinyHTTP/src/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/src/makefile
downloaddoubango-1.0.zip
doubango-1.0.tar.gz
Move deprecated v1.0 from trunk to branches1.0
Diffstat (limited to 'tinyHTTP/src/makefile')
-rw-r--r--tinyHTTP/src/makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/tinyHTTP/src/makefile b/tinyHTTP/src/makefile
new file mode 100644
index 0000000..056978f
--- /dev/null
+++ b/tinyHTTP/src/makefile
@@ -0,0 +1,49 @@
+APP := lib$(PROJECT).so
+
+INSTALL_DIR = /system/lib
+
+CFLAGS := $(CFLAGS) -I$(DOUBANGO_HOME)/tinySAK/src -I$(DOUBANGO_HOME)/tinyNET/src -I$(DOUBANGO_HOME)/$(PROJECT)/include
+LDFLAGS := $(LDFLAGS) -Wl,-soname,lib$(PROJECT).so,-Bsymbolic,-shared,--whole-archive -ltinySAK -ltinyNET
+
+all: $(APP)
+
+OBJS = \
+ thttp.o\
+ thttp_message.o\
+ thttp_operation.o\
+ thttp_transport.o\
+ thttp_url.o
+ ###################
+ ## auth
+ ###################
+OBJS += auth/thttp_auth.o
+ ###################
+ ## headers
+ ###################
+OBJS += headers/thttp_header.o\
+ headers/thttp_header_Authorization.o\
+ headers/thttp_header_Content_Length.o\
+ headers/thttp_header_Content_Type.o\
+ headers/thttp_header_Dummy.o\
+ headers/thttp_header_Proxy_Authenticate.o\
+ headers/thttp_header_WWW_Authenticate.o
+ ###################
+ ## parsers
+ ###################
+OBJS += parsers/thttp_parser_header.o\
+ parsers/thttp_parser_message.o\
+ parsers/thttp_parser_url.o
+
+$(APP): $(OBJS)
+ $(CPP) $(LDFLAGS) -o $@ $^
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb remount
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(INSTALL_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(INSTALL_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
OpenPOWER on IntegriCloud