NetBSD/usr.sbin/ntp/Makefile.inc

34 lines
802 B
PHP
Raw Normal View History

# $NetBSD: Makefile.inc,v 1.11 2003/12/04 16:41:56 drochner Exp $
.if !defined(NTP_MAKEFILE_INC)
NTP_MAKEFILE_INC=1
2001-01-11 16:15:06 +03:00
.include <bsd.own.mk>
2002-09-18 07:54:26 +04:00
DIST= ${NETBSDSRCDIR}/dist/ntp
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -DHAVE_CONFIG_H
.if defined(PROG)
2001-01-11 16:15:06 +03:00
LIBNTP!= cd ${.CURDIR}/../libntp && ${PRINTOBJDIR}
LIBISC!= cd ${.CURDIR}/../libisc && ${PRINTOBJDIR}
LDADD+= -L${LIBNTP} -lntp -lcrypto
DPADD+= ${LIBNTP}/libntp.a
SRCS+= version.c
CLEANFILES+=version.c version.o .version
.version:
${_MKTARGET_CREATE}
2003-10-19 10:11:38 +04:00
${HOST_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)