Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# $NetBSD: Makefile,v 1.2 2022/10/31 09:30:43 wiz Exp $

USE_FORT?=	yes	# network server

.include <bsd.init.mk>

BINDIR=	/usr/sbin
.PATH:          ${SRCDIR}/rpcapd

PROG=		rpcapd
SRCS+=		daemon.c fileconf.c log.c rpcapd.c    

MANADMININ+= rpcapd.manadmin.in 
MANFILEIN+=  rpcapd-config.manfile.in

MAN=    ${MANADMININ:S/manadmin.in/8/g} ${MANFILEIN:S/manfile.in/5/g}
CLEANFILES+= ${MAN}

.for i in ${MANADMININ}
${i:S/manadmin.in/8/}: ${i} __sed
.endfor

.for i in ${MANFILEIN}  
${i:S/manfile.in/5/}: ${i} __sed
.endfor

FILES=		rpcapd.socket rpcapd.inetd.conf rpcapd@.service
FILESDIR=	/usr/share/examples/rpcapd

CPPFLAGS+=	-pthread
LDFLAGS+=	-pthread
CPPFLAGS+=	-I${SRCDIR} -I${.CURDIR}/../../include
CPPFLAGS+=	-DHAVE_CONFIG_H
CPPFLAGS+=	-DPCAP_DONT_INCLUDE_PCAP_BPF_H

PROGDPLIBS+=	pcap ${.CURDIR}/../../lib \
		crypt ${NETBSDSRCDIR}/lib/libcrypt

.include <bsd.prog.mk>