X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fluci-lib-luaneightbl%2Fsrc%2FMakefile;fp=libs%2Fluci-lib-luaneightbl%2Fsrc%2FMakefile;h=f856d2fa2f4a6e8fded43b4797030474e9951ca5;hp=0000000000000000000000000000000000000000;hb=3c6d03ddee6ba4a536b687b17aa5a41f1f2d1575;hpb=db653649ffa7d71b1d952506796914813be360f0 diff --git a/libs/luci-lib-luaneightbl/src/Makefile b/libs/luci-lib-luaneightbl/src/Makefile new file mode 100644 index 000000000..f856d2fa2 --- /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