271c3a9060
sntp includes a copy of libopts in itself in vendor code, rewrite the Makefile to compile and use only one copy. It is an internal library, not installed. MFC after: 2 weeks
25 lines
499 B
Makefile
25 lines
499 B
Makefile
# $FreeBSD$
|
|
|
|
NO_MAN=
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/util \
|
|
${.CURDIR}/../../../contrib/ntp/ntpd
|
|
|
|
PROG= ntp-keygen
|
|
SRCS= ntp-keygen.c ntp-keygen-opts.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \
|
|
-I${.CURDIR}/../../../contrib/ntp/libopts
|
|
|
|
DPADD= ${LIBNTP} ${LIBOPTS}
|
|
LDADD= ${LIBNTP} ${LIBOPTS}
|
|
|
|
.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
|
|
DPADD+= ${LIBMD} ${LIBCRYPTO}
|
|
LDADD+= -lmd -lcrypto
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|