From 54001e307e135cf6080443567184e000336fc548 Mon Sep 17 00:00:00 2001 From: Patrick Grimm Date: Sun, 7 Jul 2013 12:45:59 +0000 Subject: add luaneightbl: this is an arp replacement for ipv6. neightbl.get(wlan0) return ip,mac table this can use in a for loop "for ip,mac in pairs(t) do" Thanx Cyrus --- libs/luaneightbl/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libs/luaneightbl/Makefile (limited to 'libs/luaneightbl/Makefile') diff --git a/libs/luaneightbl/Makefile b/libs/luaneightbl/Makefile new file mode 100644 index 000000000..dc2db6740 --- /dev/null +++ b/libs/luaneightbl/Makefile @@ -0,0 +1,24 @@ +ifneq (,$(wildcard ../../build/config.mk)) +include ../../build/config.mk +include ../../build/module.mk +include ../../build/gccconfig.mk +else +include standalone.mk +endif + +NEIGHTBL_CFLAGS = $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(WFLAGS) + +NEIGHTBL_OBJ = src/neightbl.o +NEIGHTBL_LIB = src/neightbl.so + +%.o: %.c + $(CC) $(NEIGHTBL_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< + +compile: $(NEIGHTBL_OBJ) + $(LINK) $(SHLIB_FLAGS) -o $(NEIGHTBL_LIB) $(NEIGHTBL_OBJ) + mkdir -p dist$(LUA_LIBRARYDIR) + cp $(NEIGHTBL_LIB) dist$(LUA_LIBRARYDIR)/ + +clean: luaclean + rm -f src/*.o src/*.so src/*.a src/*.dll + -- cgit v1.2.3