35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.27 2012/08/10 12:10:28 joerg Exp $
|
|
|
|
WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
USE_FORT?= yes # network client/server
|
|
CWARNFLAGS.clang+= -Wno-tautological-compare \
|
|
-Wno-conversion -Wno-constant-logical-operand \
|
|
-Wno-format-security
|
|
|
|
DIST= ${NETBSDSRCDIR}/dist/dhcp
|
|
.PATH: ${DIST}/${DHCPSRCDIR}
|
|
|
|
COBJDIR!=cd $(.CURDIR)/../common && ${PRINTOBJDIR}
|
|
OMOBJDIR!=cd $(.CURDIR)/../omapip && ${PRINTOBJDIR}
|
|
MROBJDIR!=cd $(.CURDIR)/../minires && ${PRINTOBJDIR}
|
|
DSTOBJDIR!=cd $(.CURDIR)/../dst && ${PRINTOBJDIR}
|
|
|
|
.if defined(HAVE_GCC) || defined(HAVE_LLVM)
|
|
COPTS+= -fno-strict-aliasing
|
|
.endif
|
|
|
|
CPPFLAGS+= -I${DIST} -I${DIST}/includes -Wno-unused
|
|
LDADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
|
|
LDADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
|
|
LDADD+= -lipsec
|
|
DPADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
|
|
DPADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
|
|
DPADD+= ${LIBIPSEC}
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
.endif
|