1CFLAGS?=-Wall -g -D_GNU_SOURCE -DDEBUG -Wstrict-prototypes -Wdeclaration-after-statement 2CC = gcc 3 4LIBS = -lnftnl -lmnl 5 6ARCH := $(shell uname -m | grep -q "x86_64" && echo 64) 7 8all: test_nfct_get testnftnlrdr 9 10clean: 11 $(RM) *.o testnftnlcrdr testnftnlpinhole testnftnlrdr_peer \ 12 test_nfct_get testnftnlrdr 13 14testnftnlrdr: nftnlrdr.o nftnlrdr_misc.o testnftnlrdr.o upnpglobalvars.o $(LIBS) 15 16testiptpinhole: testiptpinhole.o iptpinhole.o upnpglobalvars.o $(LIBS) 17 18test_nfct_get: test_nfct_get.o test_nfct_get.o -lmnl -lnetfilter_conntrack 19 20test_nfct_get.o: test_nfct_get.c 21 22testnftnlrdr_peer.o: testnftnlrdr_peer.c 23 24testnftnlrdr_dscp.o: testnftnlrdr_dscp.c 25 26nftnlrdr.o: nftnlrdr.c nftnlrdr.h 27 28nftnlrdr_misc.o: nftnlrdr_misc.c 29 30iptpinhole.o: iptpinhole.c iptpinhole.h 31 32upnpglobalvars.o: ../upnpglobalvars.c ../upnpglobalvars.h 33 $(CC) -c -o $@ $< 34