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
20 lines
366 B
Makefile
20 lines
366 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdate
|
|
|
|
PROG= ntpdate
|
|
NO_MAN=
|
|
SRCS= ntpdate.c version.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
|
|
|
|
DPADD= ${LIBNTP} ${LIBM} ${LIBMD} ${LIBRT}
|
|
LDADD= ${LIBNTP} -lm -lmd -lrt
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
version.c:
|
|
sh -e ${.CURDIR}/../scripts/mkver ntpdate
|
|
|
|
.include <bsd.prog.mk>
|