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