diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-09 13:04:01 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-09 13:04:01 +0100 |
commit | 3c6d03ddee6ba4a536b687b17aa5a41f1f2d1575 (patch) | |
tree | 043a31ba0faac212dafabf4286f6df188c22ad92 /libs/luci-lib-luaneightbl/src/Makefile | |
parent | db653649ffa7d71b1d952506796914813be360f0 (diff) |
luci-lib-luaneightbl: add src Makefile and fix dependencies (#282)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'libs/luci-lib-luaneightbl/src/Makefile')
-rw-r--r-- | libs/luci-lib-luaneightbl/src/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/luci-lib-luaneightbl/src/Makefile b/libs/luci-lib-luaneightbl/src/Makefile new file mode 100644 index 0000000000..f856d2fa2f --- /dev/null +++ b/libs/luci-lib-luaneightbl/src/Makefile @@ -0,0 +1,17 @@ +NEIGHTBL_CFLAGS = -std=gnu99 +NEIGHTBL_LDFLAGS = -llua -lm +NEIGHTBL_OBJ = neightbl.o +NEIGHTBL_LIB = neightbl.so + +%.o: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) $(LUA_CFLAGS) $(NEIGHTBL_CFLAGS) $(FPIC) -c -o $@ $< + +compile: $(NEIGHTBL_OBJ) + $(CC) $(LDFLAGS) -shared -o $(NEIGHTBL_LIB) $(NEIGHTBL_OBJ) $(NEIGHTBL_LDFLAGS) + +install: compile + mkdir -p $(DESTDIR)/usr/lib/lua + cp $(NEIGHTBL_LIB) $(DESTDIR)/usr/lib/lua/$(NEIGHTBL_LIB) + +clean: + rm -f *.o *.so |