1cc559270SOllivier Robert# $FreeBSD$ 2cc559270SOllivier Robert 33bdf7758SWarner LoshMAN= 4e1fe3dbaSRuslan Ermilov 52b15cb3dSCy Schubert.include <src.opts.mk> 6e1fe3dbaSRuslan Ermilov 7af6a5351SEnji Cooper.PATH: ${SRCTOP}/contrib/ntp/ntpdc 8cc559270SOllivier Robert 9cc559270SOllivier RobertPROG= ntpdc 10271c3a90SOllivier RobertSRCS= ntpdc.c ntpdc_ops.c ntpdc-opts.c version.c 11cc559270SOllivier Robert 12af6a5351SEnji CooperCFLAGS+= -I${SRCTOP}/contrib/ntp/include \ 13af6a5351SEnji Cooper -I${SRCTOP}/contrib/ntp/lib/isc/include \ 14af6a5351SEnji Cooper -I${SRCTOP}/contrib/ntp/lib/isc/unix/include \ 15af6a5351SEnji Cooper -I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \ 16af6a5351SEnji Cooper -I${SRCTOP}/contrib/ntp/sntp/libopts \ 17af6a5351SEnji Cooper -I${.CURDIR}/lib/libc/${MACHINE_ARCH} \ 18af6a5351SEnji Cooper -I${.CURDIR:H} -I${.CURDIR} 194c49e2a2SOllivier Robert 20ef0cb5dbSBaptiste DaroussinLIBADD= edit ntp m opts pthread 211e3f1446SDavid E. O'BrienCFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \ 221e3f1446SDavid E. O'Brien -I${DESTDIR}/${INCLUDEDIR}/edit 234c49e2a2SOllivier Robert 242b15cb3dSCy Schubert.if ${MK_OPENSSL} != "no" 25ef0cb5dbSBaptiste DaroussinLIBADD+= crypto 26ef0cb5dbSBaptiste Daroussin.else 27ef0cb5dbSBaptiste DaroussinLIBADD+= md 282b15cb3dSCy Schubert.endif 292b15cb3dSCy Schubert 304c49e2a2SOllivier RobertCLEANFILES+= .version version.c 314c49e2a2SOllivier Robert 32cc559270SOllivier Robertversion.c: 33*982a915fSEnji Cooper sh -e ${.CURDIR:H}/scripts/mkver ntpdc 34cc559270SOllivier Robert 35cc559270SOllivier Robert.include <bsd.prog.mk> 36