Makefile revision 1.4
1# $NetBSD: Makefile,v 1.4 2023/08/17 15:30:36 christos Exp $ 2 3USE_FORT?= yes # network server 4 5.include <bsd.init.mk> 6 7BINDIR= /usr/sbin 8.PATH: ${SRCDIR}/rpcapd 9 10PROG= rpcapd 11SRCS+= daemon.c fileconf.c log.c rpcapd.c 12 13MANADMININ+= rpcapd.manadmin.in 14MANFILEIN+= rpcapd-config.manfile.in 15 16MAN= ${MANADMININ:S/manadmin.in/8/g} ${MANFILEIN:S/manfile.in/5/g} 17CLEANFILES+= ${MAN} 18 19.for i in ${MANADMININ} 20${i:S/manadmin.in/8/}: ${i} __sed 21.endfor 22 23.for i in ${MANFILEIN} 24${i:S/manfile.in/5/}: ${i} __sed 25.endfor 26 27FILES= rpcapd.socket rpcapd.inetd.conf rpcapd@.service 28FILESDIR= /usr/share/examples/rpcapd 29 30CPPFLAGS+= -pthread 31LDFLAGS+= -pthread 32CPPFLAGS+= -I${SRCDIR} -I${.CURDIR}/../../include 33CPPFLAGS+= -DHAVE_CONFIG_H 34CPPFLAGS+= -DPCAP_DONT_INCLUDE_PCAP_BPF_H 35 36PROGDPLIBS+= pcap ${.CURDIR}/../../lib \ 37 crypt ${NETBSDSRCDIR}/lib/libcrypt 38 39.if ${USE_OPENSSL:Uno} == "yes" 40CPPFLAGS+= -DHAVE_OPENSSL 41PROGDPLIBS+= ssl ${OPENSSLDIR}/lib/libssl \ 42 crypto ${OPENSSLDIR}/lib/libcrypto 43.endif 44 45.include <bsd.prog.mk> 46