1 # $NetBSD: Makefile.inc,v 1.22 2008/08/29 00:02:25 gmcgarry Exp $
3 WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare
7 USE_FORT?= yes # network client/server
9 DIST= ${NETBSDSRCDIR}/dist/dhcp
10 .PATH: ${DIST}/${DHCPSRCDIR}
12 COBJDIR!=cd $(.CURDIR)/../common && ${PRINTOBJDIR}
13 OMOBJDIR!=cd $(.CURDIR)/../omapip && ${PRINTOBJDIR}
14 MROBJDIR!=cd $(.CURDIR)/../minires && ${PRINTOBJDIR}
15 DSTOBJDIR!=cd $(.CURDIR)/../dst && ${PRINTOBJDIR}
17 .if defined(HAVE_GCC) && ${HAVE_GCC} == 4
18 COPTS+= -fno-strict-aliasing
21 CPPFLAGS+= -I${DIST} -I${DIST}/includes -Wno-unused
22 LDADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
23 LDADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
25 DPADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
26 DPADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
29 .if exists(${.CURDIR}/../../Makefile.inc)
30 .include "${.CURDIR}/../../Makefile.inc"