Merge pull request #278 from nmav/ocserv
[project/luci.git] / libs / luaneightbl / Makefile
1 ifneq (,$(wildcard ../../build/config.mk))
2 include ../../build/config.mk
3 include ../../build/module.mk
4 include ../../build/gccconfig.mk
5 else
6 include standalone.mk
7 endif
8
9 NEIGHTBL_CFLAGS = $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(WFLAGS)
10
11 NEIGHTBL_OBJ = src/neightbl.o
12 NEIGHTBL_LIB = src/neightbl.so
13
14 %.o: %.c
15         $(CC) $(NEIGHTBL_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
16
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)/
21
22 clean: luaclean
23         rm -f src/*.o src/*.so src/*.a src/*.dll
24