summaryrefslogtreecommitdiffhomepage
path: root/libs/lucittpd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/lucittpd/Makefile')
-rw-r--r--libs/lucittpd/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/lucittpd/Makefile b/libs/lucittpd/Makefile
new file mode 100644
index 000000000..3d1a91177
--- /dev/null
+++ b/libs/lucittpd/Makefile
@@ -0,0 +1,18 @@
+ifeq ($(CFLAGS),)
+ MYLDFLAGS ?= -L../../../contrib/uci/dist/usr/lib/
+endif
+
+include ../../build/module.mk
+include ../../build/config.mk
+include ../../build/gccconfig.mk
+
+compile:
+ make -Csrc \
+ CFLAGS="$(CFLAGS) $(FPIC) $(LUA_CFLAGS) $(EXTRA_CFLAGS) $(WFLAGS)" \
+ LDFLAGS="$(LDFLAGS) $(LUA_SHLIBS) -luci" \
+ MYLDFLAGS="$(MYLDFLAGS)"
+ mkdir -p dist/usr/bin
+ cp src/lucittpd dist/usr/bin
+
+clean: luaclean
+ make -Csrc clean