1 # $NetBSD: Makefile.inc,v 1.1 2009/12/13 17:13:48 kardel Exp $
3 .if !defined(NTP_MAKEFILE_INC)
6 USE_FORT?= yes # network client/server
13 .if ${MKCRYPTO} == "no"
17 IDIST= ${NETBSDSRCDIR}/external/bsd/ntp/dist
18 NTP_SRCDIR= ${NETBSDSRCDIR}/external/bsd/ntp
19 NTP_HTMLDIR= /usr/share/doc/html/ntp
24 CPPFLAGS+=-DHAVE_CONFIG_H
25 CPPFLAGS+=-I${NTP_SRCDIR}/include \
27 -I${IDIST}/lib/isc/include \
28 -I${IDIST}/lib/isc/unix/include \
29 -I${IDIST}/lib/isc/nothreads/include
32 LIBNTP!= cd ${.CURDIR}/../../lib/libntp && ${PRINTOBJDIR}
33 LIBISC!= cd ${.CURDIR}/../../lib/libiscntp && ${PRINTOBJDIR}
34 LIBOPTS!= cd ${.CURDIR}/../../lib/libopts && ${PRINTOBJDIR}
35 LIBPARSE!= cd ${.CURDIR}/../../lib/libparse && ${PRINTOBJDIR}
37 LDADD+= -L${LIBNTP} -lntp -L${LIBOPTS} -lopts
38 DPADD+= ${LIBNTP}/libntp.a ${LIBOPTS}/libopts.a
40 .if (${MKCRYPTO} != "no")
41 LDADD+= -lcrypto -lcrypt
42 DPADD+= ${LIBCRYPTO} ${LIBCRYPT}
47 CLEANFILES+=version.c version.o
48 version.c: ${LIBNTP}/libntp.a ${.CURDIR}/../../scripts/mkver ${.CURDIR}/../../importdate
50 ${HOST_SH} ${.CURDIR}/../../scripts/mkver ${PROG} > /dev/null
52 .endif # defined(PROG)
54 .if exists(${.CURDIR}/../../Makefile.inc)
55 .include "${.CURDIR}/../../Makefile.inc"