summaryrefslogtreecommitdiffhomepage
path: root/libs/luaneightbl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/luaneightbl/Makefile')
-rw-r--r--libs/luaneightbl/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/luaneightbl/Makefile b/libs/luaneightbl/Makefile
new file mode 100644
index 0000000000..dc2db6740f
--- /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
+