NetBSD/usr.sbin/ntp/Makefile.inc

55 lines
1.3 KiB
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.20 2009/04/22 15:23:06 lukem Exp $
.if !defined(NTP_MAKEFILE_INC)
WARNS?= 1 # XXX -Wcast-qual -Wshadow -Wsign-compare
NTP_MAKEFILE_INC=1
2001-01-11 16:15:06 +03:00
.include <bsd.own.mk>
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # network client/server
2002-09-18 07:54:26 +04:00
DIST= ${NETBSDSRCDIR}/dist/ntp
NTP_HTMLDIR= ${DIST}/html
2007-01-06 22:45:21 +03:00
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -I${DIST}/libopts -DHAVE_CONFIG_H
.if (${MKCRYPTO} != "no")
CPPFLAGS+= -DOPENSSL
.endif
.if (${USE_INET6} != "no")
CPPFLAGS+= -DWANT_IPV6
.else
CPPFLAGS+= -DISC_PLATFORM_NEEDIN6ADDRANY
.endif
.if defined(PROG)
2001-01-11 16:15:06 +03:00
LIBNTP!= cd ${.CURDIR}/../libntp && ${PRINTOBJDIR}
LIBISC!= cd ${.CURDIR}/../libisc && ${PRINTOBJDIR}
2007-01-06 22:45:21 +03:00
LIBOPTS!= cd ${.CURDIR}/../libopts && ${PRINTOBJDIR}
LDADD+= -L${LIBNTP} -lntp -L${LIBOPTS} -lopts
DPADD+= ${LIBNTP}/libntp.a ${LIBOPTS}/libopts.a
.if (${MKCRYPTO} != "no")
LDADD+= -lcrypto -lcrypt
DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
.endif
SRCS+= version.c
CLEANFILES+=version.c version.o
version.c: ${LIBNTP}/libntp.a ${.CURDIR}/../scripts/mkver
${_MKTARGET_CREATE}
2003-10-19 10:11:38 +04:00
${HOST_SH} ${.CURDIR}/../scripts/mkver ${PROG} > /dev/null
.endif # defined(PROG)
NTPSRCDIR?= ${PROG}
.PATH: ${DIST}/${NTPSRCDIR}
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif # !defined(NTP_MAKEFILE_INC)