154552Sroberto# $FreeBSD$ 254552Sroberto 3290000SglebiusMAN= 4156813Sru 5156813Sru.include <bsd.own.mk> 6156813Sru 780029Sobrien.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc 854552Sroberto 980029SobrienPROG= ntpdc 10182008SrobertoSRCS= ntpdc.c ntpdc_ops.c ntpdc-opts.c version.c 1155307Sroberto 12290000SglebiusCFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \ 13290000Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/include \ 14290000Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \ 15290000Sglebius -I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \ 16290000Sglebius -I${.CURDIR}/../../../contrib/ntp/sntp/libopts \ 17290000Sglebius -I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \ 18290000Sglebius -I${.CURDIR}/../ -I${.CURDIR} 1954552Sroberto 20290000SglebiusDPADD= ${LIBEDIT} ${LIBNTP} ${LIBM} ${LIBOPTS} ${LIBPTHREAD} 21290000SglebiusLDADD= -ledit ${LIBNTP} -lm ${LIBOPTS} -lpthread 2255307Sroberto 23220370SobrienCFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 24220370Sobrien -I${DESTDIR}/${INCLUDEDIR}/edit 25132531Sroberto 26290000Sglebius.if ${MK_OPENSSL} != "no" 27290000SglebiusDPADD+= ${LIBCRYPTO} 28290000SglebiusLDADD+= -lcrypto 29290000Sglebius.else 30290000SglebiusDPADD+= ${LIBMD} 31290000SglebiusLDADD+= -lmd 32290000Sglebius.endif 33290000Sglebius 3454552SrobertoCLEANFILES+= .version version.c 3554552Sroberto 36220370Sobrienversion.c: 3754552Sroberto sh -e ${.CURDIR}/../scripts/mkver ntpdc 3854552Sroberto 3954681Srobertoafterinstall: 4054681Sroberto rm -f ${DESTDIR}/usr/sbin/xntpdc 4154681Sroberto 4254552Sroberto.include <bsd.prog.mk> 43