summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-28 06:41:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-28 06:41:45 +0000
commitae3825387bd9b47813e0b862db38959e7000cb02 (patch)
treed7219f49ce60f72abbcbfab29d780e551cc51bc0 /modules/admin-full/Makefile
parentf45d5fb952aecd48080c0b48580d0b2113769e2b (diff)
modules/admin-full: add SVG based realtime bandwidth status
Diffstat (limited to 'modules/admin-full/Makefile')
-rw-r--r--modules/admin-full/Makefile24
1 files changed, 23 insertions, 1 deletions
diff --git a/modules/admin-full/Makefile b/modules/admin-full/Makefile
index 81a96f6a8..347a34286 100644
--- a/modules/admin-full/Makefile
+++ b/modules/admin-full/Makefile
@@ -1,2 +1,24 @@
include ../../build/config.mk
-include ../../build/module.mk \ No newline at end of file
+include ../../build/module.mk
+include ../../build/gccconfig.mk
+
+BWC_LDFLAGS =
+BWC_CFLAGS =
+BWC_BIN = luci-bwc
+BWC_OBJ = src/luci-bwc.o
+
+%.o: %.c
+ $(COMPILE) $(BWC_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
+
+compile: build-clean $(BWC_OBJ)
+ $(LINK) $(BWC_LDFLAGS) -o src/$(BWC_BIN) $(BWC_OBJ)
+ mkdir -p dist/usr/bin
+ cp src/$(BWC_BIN) dist/usr/bin/$(BWC_BIN)
+
+install: build
+ cp -pR dist/usr/bin/$(BWC_BIN) /usr/bin/$(BWC_BIN)
+
+clean: build-clean
+
+build-clean:
+ rm -f src/*.o src/$(BWC_BIN)