blob: 209b1fc637a5aa45d6093055e835ea508fba8274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $FreeBSD$
.include <bsd.own.mk>
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdate
PROG= ntpdate
MAN=
SRCS= ntpdate.c version.c
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
-I${.CURDIR}/../../../contrib/ntp/lib/isc/include/ \
-I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include/ \
-I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
-I${.CURDIR}/../
DPADD= ${LIBNTP} ${LIBM} ${LIBPTHREAD}
LDADD= ${LIBNTP} -lm -lpthread
.if ${MK_OPENSSL} != "no"
DPADD+= ${LIBCRYPTO}
LDADD+= -lcrypto
.else
DPADD+= ${LIBMD}
LDADD+= -lmd
.endif
CLEANFILES+= .version version.c
version.c:
sh -e ${.CURDIR}/../scripts/mkver ntpdate
.include <bsd.prog.mk>
|