summaryrefslogtreecommitdiffhomepage
path: root/contrib/uhttpd/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-16 13:38:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-16 13:38:27 +0000
commitdaca626e86ff51e72f6423f3fb69e1a1d16d7c59 (patch)
tree8dc36e0f39e5ad4a357aa3452589e898fe243c73 /contrib/uhttpd/Makefile
parentcf018eae4c9a8eb614ab18d9ed7d73723ca2335b (diff)
build: add runuhttpd sdk target
Diffstat (limited to 'contrib/uhttpd/Makefile')
-rw-r--r--contrib/uhttpd/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/uhttpd/Makefile b/contrib/uhttpd/Makefile
new file mode 100644
index 000000000..7b0b37fa9
--- /dev/null
+++ b/contrib/uhttpd/Makefile
@@ -0,0 +1,30 @@
+include ../../build/config.mk
+include ../../build/gccconfig.mk
+
+UHTTPD_SRC = svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src
+UHTTPD_DIR = uhttpd-src
+UHTTPD_PATCHDIR = patches
+
+all: compile
+
+include ../../build/module.mk
+
+$(UHTTPD_DIR)/Makefile:
+ svn co $(UHTTPD_SRC) $(UHTTPD_DIR)
+
+$(UHTTPD_DIR)/.prepared: $(UHTTPD_DIR)/Makefile
+ (cd $(UHTTPD_PATCHDIR); ls *.patch | sort > series) || true
+ [ -f "$(UHTTPD_PATCHDIR)/series" ] && while read patch; do \
+ patch -d $(UHTTPD_DIR) -p1 < $(UHTTPD_PATCHDIR)/$$patch; \
+ done < $(UHTTPD_PATCHDIR)/series || true
+ touch $@
+
+compile: $(UHTTPD_DIR)/.prepared
+ (cd $(UHTTPD_DIR); $(MAKE) LUA_SUPPORT=0 TLS_SUPPORT=0 CGI_SUPPORT=1)
+ mkdir -p dist/usr/sbin
+ cp $(UHTTPD_DIR)/uhttpd dist/usr/sbin
+
+compile-all: compile
+
+clean:
+ rm -rf $(UHTTPD_DIR)