]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tools/tools/netmap/Makefile
MFC r264400,r265836:
[FreeBSD/stable/10.git] / tools / tools / netmap / Makefile
1 #
2 # $FreeBSD$
3 #
4 # For multiple programs using a single source file each,
5 # we can just define 'progs' and create custom targets.
6 PROGS   =       pkt-gen bridge vale-ctl
7
8 CLEANFILES = $(PROGS) *.o
9 MAN=
10 CFLAGS += -Werror -Wall # -nostdinc -I/usr/include -I../../../sys
11 CFLAGS += -Wextra
12
13 LDFLAGS += -lpthread
14 .ifdef WITHOUT_PCAP
15 CFLAGS += -DNO_PCAP
16 .else
17 LDFLAGS += -lpcap
18 .endif
19
20 .include <bsd.prog.mk>
21 .include <bsd.lib.mk>
22
23 all: $(PROGS)
24
25 pkt-gen: pkt-gen.o
26         $(CC) $(CFLAGS) -o pkt-gen pkt-gen.o $(LDFLAGS)
27
28 bridge: bridge.o
29         $(CC) $(CFLAGS) -o bridge bridge.o
30
31 vale-ctl: vale-ctl.o
32         $(CC) $(CFLAGS) -o vale-ctl vale-ctl.o