NetBSD/usr.sbin/ntp/Makefile.inc

34 lines
740 B
Makefile

# $NetBSD: Makefile.inc,v 1.8 2002/09/18 03:54:34 lukem Exp $
.if !defined(NTP_MAKEFILE_INC)
NTP_MAKEFILE_INC=1
.include <bsd.own.mk>
NTPDOCDIR?= ${HTMLDOCDIR}/ntp
DIST= ${NETBSDSRCDIR}/dist/ntp
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -DHAVE_CONFIG_H
.if defined(PROG)
LIBNTP!= cd ${.CURDIR}/../libntp && ${PRINTOBJDIR}
LDADD+= -L${LIBNTP} -lntp
DPADD+= ${LIBNTP}/libntp.a
SRCS+= version.c
CLEANFILES+=version.c version.o .version
.version:
sh ${.CURDIR}/../scripts/mkver ${PROG} > /dev/null
version.c: .version ${LIBNTP}/libntp.a
.endif
NTPSRCDIR?= ${PROG}
.PATH: ${DIST}/${NTPSRCDIR}
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif # !defined(NTP_MAKEFILE_INC)