Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / ntp / Makefile.inc
blob36cc7847f75a2e83fbb9526b81aac42d1e20a0ad
1 #       $NetBSD: Makefile.inc,v 1.1 2009/12/13 17:13:48 kardel Exp $
3 .if !defined(NTP_MAKEFILE_INC)
4 NTP_MAKEFILE_INC=yes
6 USE_FORT?= yes  # network client/server
8 WARNS?= 0
9 COPTS+=-Werror
11 .include <bsd.own.mk>
13 .if ${MKCRYPTO} == "no"
14 NTP_USE_OPENSSL?=no
15 .endif
17 IDIST=          ${NETBSDSRCDIR}/external/bsd/ntp/dist
18 NTP_SRCDIR=     ${NETBSDSRCDIR}/external/bsd/ntp
19 NTP_HTMLDIR=    /usr/share/doc/html/ntp
21 SYSCONFDIR=/etc
22 LOCALSTATEDIR=/var
24 CPPFLAGS+=-DHAVE_CONFIG_H
25 CPPFLAGS+=-I${NTP_SRCDIR}/include \
26           -I${IDIST}/include \
27           -I${IDIST}/lib/isc/include \
28           -I${IDIST}/lib/isc/unix/include \
29           -I${IDIST}/lib/isc/nothreads/include
31 .if defined(PROG)
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}
43 .endif
45 SRCS+=  version.c
47 CLEANFILES+=version.c version.o
48 version.c: ${LIBNTP}/libntp.a ${.CURDIR}/../../scripts/mkver ${.CURDIR}/../../importdate
49         ${_MKTARGET_CREATE}
50         ${HOST_SH} ${.CURDIR}/../../scripts/mkver ${PROG} > /dev/null
52 .endif # defined(PROG)
54 .if exists(${.CURDIR}/../../Makefile.inc)
55 .include "${.CURDIR}/../../Makefile.inc"
56 .endif
58 .endif