Miniupnpd: update to 1.9 (20150430)
[tomato.git] / release / src / router / miniupnpd / netfilter_nft / Makefile
blob19846cffe14986617f2783d60d87b8d2fad6824c
1 CFLAGS?=-Wall -g -D_GNU_SOURCE -DDEBUG -Wstrict-prototypes -Wdeclaration-after-statement
2 CC = gcc
4 LIBS = -lnftnl -lmnl
6 ARCH := $(shell uname -m | grep -q "x86_64" && echo 64)
8 all: test_nfct_get testnftnlrdr
10 clean:
11 $(RM) *.o testnftnlcrdr testnftnlpinhole testnftnlrdr_peer \
12 test_nfct_get testnftnlrdr
14 testnftnlrdr: nftnlrdr.o nftnlrdr_misc.o testnftnlrdr.o upnpglobalvars.o $(LIBS)
16 testiptpinhole: testiptpinhole.o iptpinhole.o upnpglobalvars.o $(LIBS)
18 test_nfct_get: test_nfct_get.o test_nfct_get.o -lmnl -lnetfilter_conntrack
20 test_nfct_get.o: test_nfct_get.c
22 testnftnlrdr_peer.o: testnftnlrdr_peer.c
24 testnftnlrdr_dscp.o: testnftnlrdr_dscp.c
26 nftnlrdr.o: nftnlrdr.c nftnlrdr.h
28 nftnlrdr_misc.o: nftnlrdr_misc.c
30 iptpinhole.o: iptpinhole.c iptpinhole.h
32 upnpglobalvars.o: ../upnpglobalvars.c ../upnpglobalvars.h
33 $(CC) -c -o $@ $<