1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5.PATH: ${.CURDIR}/../../../contrib/ntp/sntp 6 7PROG= sntp 8MK_MAN= no 9SRCS= crypto.c kod_management.c log.c main.c networking.c \ 10 sntp-opts.c sntp.c utilities.c 11 12CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 13 -I${.CURDIR}/../../../contrib/ntp/include \ 14 -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 15 -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 16 -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 17 -I${.CURDIR}/../../../contrib/ntp/sntp \ 18 -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 19 -I${.CURDIR}/../../../contrib/ntp/sntp/libevent/include \ 20 -I${.CURDIR}/../libntpevent \ 21 -I${.CURDIR}/../ 22 23DPADD= ${LIBM} ${LIBOPTS} ${LIBNTP} ${LIBNTPEVENT} ${LIBPTHREAD} 24LDADD= -lm ${LIBOPTS} ${LIBNTP} ${LIBNTPEVENT} -lpthread 25 26.if ${MK_OPENSSL} != "no" 27DPADD+= ${LIBCRYPTO} 28LDADD+= -lcrypto 29.else 30DPADD+= ${LIBMD} 31LDADD+= -lmd 32.endif 33 34.include <bsd.prog.mk> 35