| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.13 2017/01/24 22:29:29 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.14 2017/01/24 22:37:31 christos Exp $ |
2 | | | 2 | |
3 | USE_SHLIBDIR=yes | | 3 | USE_SHLIBDIR=yes |
4 | .include <bsd.own.mk> | | 4 | .include <bsd.own.mk> |
5 | USE_FORT?= yes # network protocol library | | 5 | USE_FORT?= yes # network protocol library |
6 | | | 6 | |
7 | CWARNFLAGS.clang+= -Wno-format-extra-args \ | | 7 | CWARNFLAGS.clang+= -Wno-format-extra-args \ |
8 | -Wno-unneeded-internal-declaration | | 8 | -Wno-unneeded-internal-declaration |
9 | | | 9 | |
10 | CPPFLAGS+= -DPCAP_DONT_INCLUDE_PCAP_BPF_H -DHAVE_CONFIG_H -I${.OBJDIR} | | 10 | CPPFLAGS+= -DPCAP_DONT_INCLUDE_PCAP_BPF_H -DHAVE_CONFIG_H -I${.OBJDIR} |
11 | | | 11 | |
12 | .SUFFIXES: .3 .3pcap | | 12 | .SUFFIXES: .3 .3pcap |
13 | | | 13 | |
14 | __sed: .USE | | 14 | __sed: .USE |
| @@ -126,27 +126,28 @@ LPREFIX= pcap_ | | | @@ -126,27 +126,28 @@ LPREFIX= pcap_ |
126 | LFLAGS+= --header-file=scanner.h | | 126 | LFLAGS+= --header-file=scanner.h |
127 | YPREFIX= pcap_ | | 127 | YPREFIX= pcap_ |
128 | YHEADER= 1 | | 128 | YHEADER= 1 |
129 | | | 129 | |
130 | CPPFLAGS+= -DHAVE_CONFIG_H | | 130 | CPPFLAGS+= -DHAVE_CONFIG_H |
131 | CPPFLAGS+= -D_U_="__attribute__((__unused__))" | | 131 | CPPFLAGS+= -D_U_="__attribute__((__unused__))" |
132 | | | 132 | |
133 | .if (${USE_INET6} != "no") | | 133 | .if (${USE_INET6} != "no") |
134 | CPPFLAGS+= -DINET6 | | 134 | CPPFLAGS+= -DINET6 |
135 | .endif | | 135 | .endif |
136 | | | 136 | |
137 | SRCS= scanner.l savefile.c pcap.c pcap-bpf.c optimize.c nametoaddr.c \ | | 137 | SRCS= scanner.l savefile.c pcap.c pcap-bpf.c optimize.c nametoaddr.c \ |
138 | inet.c grammar.y gencode.c fad-getad.c etherent.c bpf_image.c \ | | 138 | inet.c grammar.y gencode.c fad-getad.c etherent.c bpf_image.c \ |
139 | bpf_dump.c version.c sf-pcap-ng.c sf-pcap.c pcap-common.c | | 139 | bpf_dump.c pcap_version.c sf-pcap-ng.c sf-pcap.c pcap-common.c \ |
| | | 140 | fad-getad.c fad-helpers.c |
140 | | | 141 | |
141 | .PATH: ${NETBSDSRCDIR}/sys/net | | 142 | .PATH: ${NETBSDSRCDIR}/sys/net |
142 | SRCS+= bpf_filter.c | | 143 | SRCS+= bpf_filter.c |
143 | | | 144 | |
144 | INCS= pcap/pcap.h pcap/namedb.h | | 145 | INCS= pcap/pcap.h pcap/namedb.h |
145 | INCSDIR= /usr/include | | 146 | INCSDIR= /usr/include |
146 | INCSYMLINKS+= ../net/bpf.h ${INCSDIR}/pcap/bpf.h | | 147 | INCSYMLINKS+= ../net/bpf.h ${INCSDIR}/pcap/bpf.h |
147 | INCSYMLINKS+= pcap/pcap.h ${INCSDIR}/pcap.h | | 148 | INCSYMLINKS+= pcap/pcap.h ${INCSDIR}/pcap.h |
148 | INCSYMLINKS+= pcap/namedb.h ${INCSDIR}/pcap-namedb.h | | 149 | INCSYMLINKS+= pcap/namedb.h ${INCSDIR}/pcap-namedb.h |
149 | | | 150 | |
150 | scanner.d scanner.o: tokdefs.h | | 151 | scanner.d scanner.o: tokdefs.h |
151 | | | 152 | |
152 | tokdefs.h: grammar.h | | 153 | tokdefs.h: grammar.h |