ef0cb5db0a
Fix building WITHOUT_OPENSSL
31 lines
581 B
Makefile
31 lines
581 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.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}/../
|
|
|
|
LIBADD= ntp m pthread
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
LIBADD+= crypto
|
|
.else
|
|
LIBADD+= md
|
|
.endif
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpdate
|
|
|
|
.include <bsd.prog.mk>
|