summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/Makefile.inc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-03-07 09:46:17 +0000
committerbde <bde@FreeBSD.org>1998-03-07 09:46:17 +0000
commitadad8e3b30af68187200b507357e3fcf43100f33 (patch)
treef6d250a819369feea99b47c546189a0b338a047d /usr.sbin/xntpd/Makefile.inc
parentc21943079af6285bee92785769644542de555f3f (diff)
downloadFreeBSD-src-adad8e3b30af68187200b507357e3fcf43100f33.zip
FreeBSD-src-adad8e3b30af68187200b507357e3fcf43100f33.tar.gz
Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internal
libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Get the default BINDIR correctly (by including ../Makefile.inc recursively.
Diffstat (limited to 'usr.sbin/xntpd/Makefile.inc')
-rw-r--r--usr.sbin/xntpd/Makefile.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/xntpd/Makefile.inc b/usr.sbin/xntpd/Makefile.inc
index 906b5c6..571be34 100644
--- a/usr.sbin/xntpd/Makefile.inc
+++ b/usr.sbin/xntpd/Makefile.inc
@@ -8,10 +8,16 @@ CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DAS2201 -DGOES -DGPSTM -DOMEGA \
-DLEITCH -DTRAK -DACTS -DATOM -DDATUM -DHEATH -DMSFEES \
-DMX4200 -DNMEA -DBOEDER
CFLAGS+= ${NTPDEFS} ${DEFS_LOCAL} ${AUTHDEFS} ${CLOCKDEFS} ${COPTS}
-BINDIR?= /usr/sbin
+
+.if exists(${.OBJDIR}/../lib)
+LIBNTP= ${.OBJDIR}/../lib/libntp.a
+.else
+LIBNTP= ${.CURDIR}/../lib/libntp.a
+.endif
.if !defined(NOCRYPT) && exists(${.CURDIR}/../../../secure/usr.sbin/xntpd/lib)
AUTHDEFS+= -DDES
.endif
+.include "../Makefile.inc"
.endif
OpenPOWER on IntegriCloud