b6ad36706d
Sponsored by: EMC / Isilon Storage Division
37 lines
829 B
Makefile
37 lines
829 B
Makefile
# $FreeBSD$
|
|
|
|
MAN=
|
|
|
|
.include <src.opts.mk>
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc
|
|
|
|
PROG= ntpdc
|
|
SRCS= ntpdc.c ntpdc_ops.c ntpdc-opts.c version.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
|
|
-I${.CURDIR}/../../../contrib/ntp/lib/isc/include \
|
|
-I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \
|
|
-I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
|
|
-I${.CURDIR}/../../../contrib/ntp/sntp/libopts \
|
|
-I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \
|
|
-I${.CURDIR}/../ -I${.CURDIR}
|
|
|
|
LIBADD= edit ntp m opts pthread
|
|
CFLAGS+= -DHAVE_LIBEDIT -DHAVE_READLINE_READLINE_H \
|
|
-I${DESTDIR}/${INCLUDEDIR}/edit
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
LIBADD+= crypto
|
|
.else
|
|
LIBADD+= md
|
|
.endif
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpdc
|
|
|
|
.include <bsd.prog.mk>
|