diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-12-03 15:17:05 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-08 16:26:20 +0100 |
commit | 1bb4822dca6113f73e3bc89e2acf15935e6f8e92 (patch) | |
tree | 35e16f100466e4e00657199b38bb3d87d52bf73f /modules/base/Makefile | |
parent | 9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4 (diff) |
Rework LuCI build system
* Rename subdirectories to their repective OpenWrt package names
* Make each LuCI module its own standalone package
* Deploy a shared luci.mk which is used by each module Makefile
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/base/Makefile')
-rw-r--r-- | modules/base/Makefile | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/modules/base/Makefile b/modules/base/Makefile deleted file mode 100644 index ad16ec7376..0000000000 --- a/modules/base/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -ifneq (,$(wildcard ../../build/config.mk)) -include ../../build/config.mk -include ../../build/module.mk -include ../../build/gccconfig.mk -else -include standalone.mk -endif - -TPL_LDFLAGS = -TPL_CFLAGS = -TPL_SO = parser.so -TPL_PO2LMO = po2lmo -TPL_PO2LMO_OBJ = src/po2lmo.o -TPL_LMO_OBJ = src/template_lmo.o -TPL_COMMON_OBJ = src/template_parser.o src/template_utils.o -TPL_LUALIB_OBJ = src/template_lualib.o - -%.o: %.c - $(COMPILE) $(TPL_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< - -compile: build-clean $(TPL_COMMON_OBJ) $(TPL_LUALIB_OBJ) $(TPL_LMO_OBJ) $(TPL_PO2LMO_OBJ) - $(LINK) $(SHLIB_FLAGS) $(TPL_LDFLAGS) -o src/$(TPL_SO) \ - $(TPL_COMMON_OBJ) $(TPL_LMO_OBJ) $(TPL_LUALIB_OBJ) - $(LINK) -o src/$(TPL_PO2LMO) \ - $(TPL_LMO_OBJ) $(TPL_PO2LMO_OBJ) - mkdir -p dist$(LUCI_LIBRARYDIR)/template - cp src/$(TPL_SO) dist$(LUCI_LIBRARYDIR)/template/$(TPL_SO) - -install: build - cp -pR dist$(LUA_LIBRARYDIR)/* $(LUA_LIBRARYDIR) - -clean: build-clean - -build-clean: - rm -f src/*.o src/$(TPL_SO) - -host-compile: build-clean host-clean $(TPL_LMO_OBJ) $(TPL_PO2LMO_OBJ) - $(LINK) -o src/$(TPL_PO2LMO) $(TPL_LMO_OBJ) $(TPL_PO2LMO_OBJ) - -host-install: host-compile - cp src/$(TPL_PO2LMO) ../../build/$(TPL_PO2LMO) - -host-clean: - rm -f src/$(TPL_PO2LMO) - rm -f ../../build/$(TPL_PO2LMO) |