luci-lib-ip: add license tag
[project/luci.git] / libs / luci-lib-luaneightbl / src / Makefile
1 NEIGHTBL_CFLAGS = -std=gnu99
2 NEIGHTBL_LDFLAGS = -llua -lm
3 NEIGHTBL_OBJ = neightbl.o
4 NEIGHTBL_LIB = neightbl.so
5
6 %.o: %.c
7         $(CC) $(CPPFLAGS) $(CFLAGS) $(LUA_CFLAGS) $(NEIGHTBL_CFLAGS) $(FPIC) -c -o $@ $<
8
9 compile: $(NEIGHTBL_OBJ)
10         $(CC) $(LDFLAGS) -shared -o $(NEIGHTBL_LIB) $(NEIGHTBL_OBJ) $(NEIGHTBL_LDFLAGS)
11
12 install: compile
13         mkdir -p $(DESTDIR)/usr/lib/lua
14         cp $(NEIGHTBL_LIB) $(DESTDIR)/usr/lib/lua/$(NEIGHTBL_LIB)
15
16 clean:
17         rm -f *.o *.so