diff options
Diffstat (limited to 'libs/luanet/Makefile')
-rw-r--r-- | libs/luanet/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/luanet/Makefile b/libs/luanet/Makefile new file mode 100644 index 000000000..702f866b0 --- /dev/null +++ b/libs/luanet/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)" \ + LDFLAGS="$(LDFLAGS)" \ + MYLDFLAGS="$(MYLDFLAGS)" + mkdir -p dist/usr/lib/lua/ + cp src/luanet.so dist/usr/lib/lua + +clean: luaclean + make -Csrc clean |