2003-12-04 19:41:56 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.11 2003/12/04 16:41:56 drochner Exp $
|
2000-03-29 17:13:42 +04:00
|
|
|
|
|
|
|
.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
|
2000-05-02 16:01:10 +04:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -DHAVE_CONFIG_H
|
2000-03-29 17:13:42 +04:00
|
|
|
|
2000-05-02 16:01:10 +04:00
|
|
|
.if defined(PROG)
|
2001-01-11 16:15:06 +03:00
|
|
|
LIBNTP!= cd ${.CURDIR}/../libntp && ${PRINTOBJDIR}
|
2003-12-04 19:41:56 +03:00
|
|
|
LIBISC!= cd ${.CURDIR}/../libisc && ${PRINTOBJDIR}
|
|
|
|
LDADD+= -L${LIBNTP} -lntp -lcrypto
|
2000-05-02 16:01:10 +04:00
|
|
|
DPADD+= ${LIBNTP}/libntp.a
|
2000-06-12 17:57:38 +04:00
|
|
|
|
|
|
|
SRCS+= version.c
|
|
|
|
CLEANFILES+=version.c version.o .version
|
|
|
|
.version:
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-19 10:11:38 +04:00
|
|
|
${HOST_SH} ${.CURDIR}/../scripts/mkver ${PROG} > /dev/null
|
2000-06-12 17:57:38 +04:00
|
|
|
version.c: .version ${LIBNTP}/libntp.a
|
2000-03-29 17:13:42 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NTPSRCDIR?= ${PROG}
|
2000-05-02 16:01:10 +04:00
|
|
|
.PATH: ${DIST}/${NTPSRCDIR}
|
2000-03-29 17:13:42 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif # !defined(NTP_MAKEFILE_INC)
|