summaryrefslogtreecommitdiffhomepage
path: root/libs/luanet/src/Makefile
blob: 852a7c4f4e6d361605ddb7a4c4115bc06c8ab84d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 $@