2004-07-20 15:45:04 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-03-30 13:30:15 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2017-03-01 04:54:06 +00:00
|
|
|
.PATH: ${SRCTOP}/contrib/ntp/sntp
|
2004-07-20 15:45:04 +00:00
|
|
|
|
|
|
|
PROG= sntp
|
2017-04-24 21:55:59 +00:00
|
|
|
MAN=
|
2015-03-30 13:30:15 +00:00
|
|
|
SRCS= crypto.c kod_management.c log.c main.c networking.c \
|
|
|
|
sntp-opts.c sntp.c utilities.c
|
|
|
|
|
2017-03-01 04:54:06 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
|
|
|
|
-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${SRCTOP}/contrib/ntp/sntp \
|
|
|
|
-I${SRCTOP}/contrib/ntp/sntp/libopts \
|
|
|
|
-I${SRCTOP}/contrib/ntp/sntp/libevent/include \
|
|
|
|
-I${.CURDIR:H}/libntpevent \
|
|
|
|
-I${.CURDIR:H}
|
2004-07-20 15:45:04 +00:00
|
|
|
|
2015-03-30 13:30:15 +00:00
|
|
|
LIBADD= m opts ntp ntpevent pthread
|
2004-07-20 15:45:04 +00:00
|
|
|
|
2015-03-30 13:30:15 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2015-05-25 20:27:46 +00:00
|
|
|
LIBADD+= crypto
|
|
|
|
.else
|
|
|
|
LIBADD+= md
|
2015-03-30 13:30:15 +00:00
|
|
|
.endif
|
2004-07-20 15:45:04 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|