[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / libexec / identd

File: [cvs.NetBSD.org] / src / libexec / identd / Makefile (download)

Revision 1.17.2.1, Sun Sep 1 13:18:39 2019 UTC (19 months, 3 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.17: +1 -5 lines

Pull up following revision(s) (requested by rmind in ticket #140):

	external/bsd/libnv/lib/Makefile: revision 1.3
	usr.sbin/npf/npfd/Makefile: revision 1.7
	lib/libnpf/Makefile: revision 1.11
	lib/libnpf/Makefile: revision 1.12
	libexec/identd/Makefile: revision 1.18
	usr.sbin/npf/npfctl/Makefile: revision 1.14
	lib/npf/mod.mk: revision 1.8
	external/bsd/libnv/lib/srcs.mk: revision 1.1

libnpf fix: link the library itself to libnv; libnpf users should not be
expected to assume this dependency.

Move common parts into a makefile fragment usable from elsewhere.
Suggested by mrg.

Include libnv directly into this library

# $NetBSD: Makefile,v 1.17.2.1 2019/09/01 13:18:39 martin Exp $

.include <bsd.own.mk>

PROG=	identd
SRCS=	identd.c
MAN=	identd.8

# Build with IP Filter support?
.if (${MKIPFILTER} != "no")
SRCS+=	ipf.c
CPPFLAGS+=-DWITH_IPF
.endif

# Build with pf support?
.if (${MKPF} != "no")
SRCS+=	pf.c
CPPFLAGS+=-DWITH_PF
.endif

# Build with npf support?
.if (${MKNPF} != "no")
SRCS+=	npf.c
CPPFLAGS+=-DWITH_NPF
LDADD+=-lnpf
DPADD+=${LIBNPF}
.endif

# XXX
COPTS+=	-fno-strict-aliasing

.include <bsd.prog.mk>