summaryrefslogtreecommitdiffhomepage
path: root/contrib/fwd/src/Makefile
blob: c147c67060bea86312b3305bf71e63c77228c937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CFLAGS  := -ggdb3 -O0 -Wall -I./uci -I./iptables-1.4.5/include
LDFLAGS := -luci -liptc -lxtables -ldl -L./iptables-1.4.5/libiptc/.libs -L./iptables-1.4.5/.libs -Wl,--export-dynamic

fwd:
	$(CC) $(CFLAGS) -c -o ucix.o ucix.c
	$(CC) $(CFLAGS) -c -o fwd_addr.o fwd_addr.c
	$(CC) $(CFLAGS) -c -o fwd_rules.o fwd_rules.c
	$(CC) $(CFLAGS) -c -o fwd_config.o fwd_config.c
	$(CC) $(CFLAGS) -c -o fwd_xtables.o fwd_xtables.c
	$(CC) $(CFLAGS) -c -o fwd.o fwd.c
	$(CC) $(LDFLAGS) -o fwd fwd.o fwd_addr.o fwd_rules.o fwd_config.o fwd_xtables.o ucix.o

clean:
	rm -f *~ fwd *.o