1 # $NetBSD: Makefile,v 1.13 2015/03/31 21:59:35 christos Exp $
3 WARNS?
= 1 # XXX: need to cleanup later
5 CWARNFLAGS.clang
+= -Wno-constant-logical-operand
-Wno-error
=unused-function
10 #LSC: -Wno-unused-but-set-variable while compiling with -DNDEBUG -O2
11 #LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -O3
12 CWARNFLAGS.gcc
+= -Wno-unused-but-set-variable
-Wno-maybe-uninitialized
13 .
endif # defined(__MINIX)
15 USE_FORT?
= yes
# network client
18 SRCDIR
= ${.CURDIR
}/..
/dist
24 SRCS
= addrtoname.c cpack.c gmpls.c gmt2local.c machdep.c oui.c parsenfsfh.c \
25 setsignal.c smbutil.c tcpdump.c util.c checksum.c signature.c \
26 l2vpn.c nlpid.c ipproto.c af.c in_cksum.c pf_print_state.c
113 print-openflow-1.0.c \
164 # MINIX 3: readd this file once rpc has been imported!
169 ${TOOL_SED} -e
's/.*/char version[] = "&";/' ${.ALLSRC
} > ${.TARGET
}
172 DPADD
+= ${LIBPCAP} ${LIBL}
174 CPPFLAGS
+= -I
${.CURDIR
}/..
/include -I
${.CURDIR
} -I
${SRCDIR} -DHAVE_CONFIG_H
175 CPPFLAGS
+= -I
${NETBSDSRCDIR}/dist/pf
/sbin
/pfctl \
176 -I
${NETBSDSRCDIR}/sys
/dist/pf
178 AWKS
= atime.awk packetdat.awk stime.awk send-ack.awk
180 CPPFLAGS
+=-DHAVE_CONFIG_H
-D_U_
="__attribute__((__unused__))"
182 CPPFLAGS
+=-DWITH_USER
=\"_tcpdump
\"
183 CPPFLAGS
+=-DWITH_CHROOT
=\"/var
/chroot
/tcpdump
\"
185 .if
(${USE_INET6} != "no")
186 SRCS
+= print-babel.c print-ip6.c print-ip6opts.c print-icmp6.c \
187 print-rt6.c print-dhcp6.c print-ospf6.c
189 CPPFLAGS
+=-DINET6
=1 -DHAVE_RES_USE_INET6
=1
190 .elif defined
(__MINIX
)
191 # MINIX 3 compilation fix for USE_INET6=no (already fixed upstream!)
195 .if
(${MKCRYPTO} != "no")
196 CPPFLAGS
+=-DHAVE_LIBCRYPTO
=1
197 LDADD
+= -lcrypto
-lcrypt
198 DPADD
+= ${LIBCRYPTO} ${LIBCRYPT}
201 CLEANFILES
+= version.c tcpdump
.8
203 tcpdump
.8: tcpdump
.1.in
205 cp
${.ALLSRC
} ${.TARGET
}
207 .
include <bsd.prog.mk
>