1# $FreeBSD: head/usr.sbin/ntp/ntpdc/Makefile 136910 2004-10-24 15:33:08Z ru $
2
3.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc
4
5PROG= ntpdc
6NOMAN=
7SRCS= ntpdc.c ntpdc_ops.c version.c
8
9CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
10
11DPADD= ${LIBNTP} ${LIBMD}
12LDADD= ${LIBNTP} -lmd
13
14.if !defined(NO_GNU)
15DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
16LDADD+= -lreadline -ltermcap
17CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
18 -DHAVE_READLINE_READLINE_H
19.endif
20
21CLEANFILES+= .version version.c
22
23version.c:
24 sh -e ${.CURDIR}/../scripts/mkver ntpdc
25
26afterinstall:
27 rm -f ${DESTDIR}/usr/sbin/xntpdc
28
29.include <bsd.prog.mk>
2
3.PATH: ${.CURDIR}/../../../contrib/ntp/ntpdc
4
5PROG= ntpdc
6NOMAN=
7SRCS= ntpdc.c ntpdc_ops.c version.c
8
9CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
10
11DPADD= ${LIBNTP} ${LIBMD}
12LDADD= ${LIBNTP} -lmd
13
14.if !defined(NO_GNU)
15DPADD+= ${LIBREADLINE} ${LIBTERMCAP}
16LDADD+= -lreadline -ltermcap
17CFLAGS+= -DHAVE_LIBREADLINE -DHAVE_READLINE_HISTORY_H \
18 -DHAVE_READLINE_READLINE_H
19.endif
20
21CLEANFILES+= .version version.c
22
23version.c:
24 sh -e ${.CURDIR}/../scripts/mkver ntpdc
25
26afterinstall:
27 rm -f ${DESTDIR}/usr/sbin/xntpdc
28
29.include <bsd.prog.mk>