Makefile revision 1.1
1# $NetBSD: Makefile,v 1.1 2020/03/29 17:12:45 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 -D_OPENBSD_SOURCE 34CPPFLAGS+= -DPCAP_DONT_INCLUDE_PCAP_BPF_H 35 36PROGDPLIBS+= pcap ${.CURDIR}/../../lib \ 37 crypt ${NETBSDSRCDIR}/lib/libcrypt 38 39.include <bsd.prog.mk> 40