]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - tools/tools/netmap/Makefile
MFC: the netmap code from HEAD, now supported in the ixgbe/ and e1000/
[FreeBSD/stable/9.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 testpcap libnetmap.so
7
8 CLEANFILES = $(PROGS) pcap.o
9 NO_MAN=
10 CFLAGS += -Werror -Wall -nostdinc -I/usr/include -I../../../sys
11 CFLAGS += -Wextra
12
13 LDFLAGS += -lpthread -lpcap
14
15 .include <bsd.prog.mk>
16 .include <bsd.lib.mk>
17
18 all: $(PROGS)
19
20 testpcap: pcap.c libnetmap.so
21         $(CC) $(CFLAGS) -L. -lnetmap -o ${.TARGET} pcap.c
22         
23 libnetmap.so:   pcap.c
24         $(CC) $(CFLAGS) -fpic -c ${.ALLSRC}
25         $(CC) -shared -o ${.TARGET} ${.ALLSRC:.c=.o}