1 include ../../build/config.mk
2 include ../../build/module.mk
3 include ../../build/gccconfig.mk
8 TPL_COMMON_OBJ = src/template_parser.o
9 TPL_LUALIB_OBJ = src/template_lualib.o
12 $(COMPILE) $(TPL_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
14 compile: build-clean $(TPL_COMMON_OBJ) $(TPL_LUALIB_OBJ)
15 $(LINK) $(SHLIB_FLAGS) $(TPL_LDFLAGS) -o src/$(TPL_SO) \
16 $(TPL_COMMON_OBJ) $(TPL_LUALIB_OBJ)
17 mkdir -p dist$(LUCI_LIBRARYDIR)/template
18 cp src/$(TPL_SO) dist$(LUCI_LIBRARYDIR)/template/$(TPL_SO)
21 cp -pR dist$(LUA_LIBRARYDIR)/* $(LUA_LIBRARYDIR)
26 rm -f src/*.o src/$(TPL_SO)