1 include ../../build/config.mk
2 include ../../build/gccconfig.mk
4 UHTTPD_SRC = svn://svn.openwrt.org/openwrt/branches/backfire/package/uhttpd/src
5 UHTTPD_DIR = uhttpd-src
6 UHTTPD_PATCHDIR = patches
10 include ../../build/module.mk
12 $(UHTTPD_DIR)/Makefile:
13 svn co $(UHTTPD_SRC) $(UHTTPD_DIR)
15 $(UHTTPD_DIR)/.prepared: $(UHTTPD_DIR)/Makefile
16 (cd $(UHTTPD_PATCHDIR); ls *.patch | sort > series) || true
17 [ -f "$(UHTTPD_PATCHDIR)/series" ] && while read patch; do \
18 patch -d $(UHTTPD_DIR) -p1 < $(UHTTPD_PATCHDIR)/$$patch; \
19 done < $(UHTTPD_PATCHDIR)/series || true
22 compile: $(UHTTPD_DIR)/.prepared
23 (cd $(UHTTPD_DIR); $(MAKE) LUA_SUPPORT=0 TLS_SUPPORT=0 CGI_SUPPORT=1)
24 mkdir -p dist/usr/sbin
25 cp $(UHTTPD_DIR)/uhttpd dist/usr/sbin