982a915f13
- Use SRCTOP-relative paths instead of .CURDIR-relative ones where possible - Use :H to manipulate .CURDIR in areas instead of ..-relative paths. MFC after: 1 week Sponsored by: Dell EMC Isilon
31 lines
527 B
Makefile
31 lines
527 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.PATH: ${SRCTOP}/contrib/ntp/ntpdate
|
|
|
|
PROG= ntpdate
|
|
MAN=
|
|
SRCS= ntpdate.c version.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
|
|
-I${SRCTOP}/contrib/ntp/lib/isc/include/ \
|
|
-I${SRCTOP}/contrib/ntp/lib/isc/unix/include/ \
|
|
-I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \
|
|
-I${.CURDIR:H}
|
|
|
|
LIBADD= ntp m pthread
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
LIBADD+= crypto
|
|
.else
|
|
LIBADD+= md
|
|
.endif
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR:H}/scripts/mkver ntpdate
|
|
|
|
.include <bsd.prog.mk>
|