diff options
Diffstat (limited to 'libs/luanet/src/Makefile')
-rw-r--r-- | libs/luanet/src/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/luanet/src/Makefile b/libs/luanet/src/Makefile new file mode 100644 index 0000000000..852a7c4f4e --- /dev/null +++ b/libs/luanet/src/Makefile @@ -0,0 +1,18 @@ +PROGS=luanet.so +STRIP?=strip +CFLAGS?= +CFLAGS+=-pedantic -Werror -Wall -I/usr/include/lua5.1/ -std=gnu99 +LDFLAGS?= +LDFLAGS+= +OBJS=ifconfig.o bridge.o iwconfig.o helper.o route.o vconfig.o main.o df.o base64.o + +all: $(PROGS) + +$(PROGS): $(OBJS) + $(CC) $(CFLAGS) -shared -Wl,-soname,luanet -liw $(LDFLAGS) $^ -o $@ + +clean: + rm -f $(PROGS) *.o *.so + +%.o: %.c + $(CC) $(CFLAGS) -c $^ -o $@ |