34 lines
542 B
Makefile
34 lines
542 B
Makefile
# $NetBSD: Makefile,v 1.19 2020/09/06 07:20:26 mrg 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
|
|
CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
|
|
|
|
.include <bsd.prog.mk>
|