1 ifneq (,$(wildcard ../../build/config.mk))
2 include ../../build/config.mk
3 include ../../build/module.mk
4 include ../../build/gccconfig.mk
9 NEIGHTBL_CFLAGS = $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(WFLAGS)
11 NEIGHTBL_OBJ = src/neightbl.o
12 NEIGHTBL_LIB = src/neightbl.so
15 $(CC) $(NEIGHTBL_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
17 compile: $(NEIGHTBL_OBJ)
18 $(LINK) $(SHLIB_FLAGS) -o $(NEIGHTBL_LIB) $(NEIGHTBL_OBJ)
19 mkdir -p dist$(LUA_LIBRARYDIR)
20 cp $(NEIGHTBL_LIB) dist$(LUA_LIBRARYDIR)/
23 rm -f src/*.o src/*.so src/*.a src/*.dll