summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/ntpdate/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/ntpdate/Makefile')
-rw-r--r--usr.sbin/xntpd/ntpdate/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/usr.sbin/xntpd/ntpdate/Makefile b/usr.sbin/xntpd/ntpdate/Makefile
index 53a5483..3a1b68b 100644
--- a/usr.sbin/xntpd/ntpdate/Makefile
+++ b/usr.sbin/xntpd/ntpdate/Makefile
@@ -1,14 +1,22 @@
#
-# $Id: Makefile,v 1.1 1993/12/21 19:40:50 wollman Exp $
+# $Id: Makefile,v 1.2 1993/12/21 21:06:30 wollman Exp $
#
CFLAGS+= -I${.CURDIR}/../include
-LDADD+= -L${.CURDIR}/../lib -lntp
+
+.if exists(${.CURDIR}/../lib/obj)
+LDADD+= -L${.CURDIR}/../lib/obj
+DPADD+= -L${.CURDIR}/../lib/obj/libntp.a
+.else
+LDADD+= -L${.CURDIR}/../lib
DPADD+= -L${.CURDIR}/../lib/libntp.a
+.endif
+
+LDADD+= -lntp
PROG= ntpdate
MAN8= ${.CURDIR}/../doc/ntpdate.8
-CLEANFILES+= version.c
+CLEANFILES+= .version version.c
SRCS= ntpdate.c version.c
OpenPOWER on IntegriCloud