2005-03-09 06:11:22 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.15 2005/03/09 03:11:23 christos 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
|
|
|
|
2004-01-04 03:04:52 +03:00
|
|
|
.if (${MKCRYPTO} != "no")
|
|
|
|
CPPFLAGS+= -DOPENSSL
|
|
|
|
.endif
|
|
|
|
|
2005-01-10 06:03:28 +03:00
|
|
|
.if (${USE_INET6} != "no")
|
|
|
|
CPPFLAGS+= -DWANT_IPV6
|
|
|
|
.else
|
|
|
|
CPPFLAGS+= -DISC_PLATFORM_NEEDIN6ADDRANY
|
|
|
|
.endif
|
|
|
|
|
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}
|
2004-01-04 03:04:52 +03:00
|
|
|
LDADD+= -L${LIBNTP} -lntp
|
2000-05-02 16:01:10 +04:00
|
|
|
DPADD+= ${LIBNTP}/libntp.a
|
2000-06-12 17:57:38 +04:00
|
|
|
|
2004-01-04 03:04:52 +03:00
|
|
|
.if (${MKCRYPTO} != "no")
|
2005-03-09 06:11:22 +03:00
|
|
|
LDADD+= -lcrypto -lcrypt
|
|
|
|
DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
|
2004-01-04 03:04:52 +03:00
|
|
|
.endif
|
|
|
|
|
2000-06-12 17:57:38 +04:00
|
|
|
SRCS+= version.c
|
|
|
|
CLEANFILES+=version.c version.o .version
|
2004-01-27 05:17:46 +03:00
|
|
|
.version: ${.CURDIR}/../scripts/mkver
|
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
|
2005-01-10 06:03:28 +03:00
|
|
|
.endif # defined(PROG)
|
2000-03-29 17:13:42 +04:00
|
|
|
|
|
|
|
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)
|