diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-05-06 13:23:39 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-05-06 13:23:39 +0000 |
commit | d15d315c11701a90922251ac1c0c9a3dce4af303 (patch) | |
tree | 0091db7f8da63a8959780d5ab5f5fe49ac82524f /usr.sbin/named | |
parent | ddb437cf9360787c75a187368671628d43e998e3 (diff) | |
download | src-d15d315c11701a90922251ac1c0c9a3dce4af303.tar.gz src-d15d315c11701a90922251ac1c0c9a3dce4af303.zip |
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.
Use `DIR!= cd ...libbind; make -V .OBJDIR' to find libbind's object dir
if it doesn't seem to be in its usual place relative to ${.OBJDIR}.
This fixes `cd /usr/src/usr.sbin/nslookup; mkdir obj; make'.
Notes
Notes:
svn path=/head/; revision=35779
Diffstat (limited to 'usr.sbin/named')
-rw-r--r-- | usr.sbin/named/Makefile.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/named/Makefile.inc b/usr.sbin/named/Makefile.inc index 5389509d0415..b0cf3a2df544 100644 --- a/usr.sbin/named/Makefile.inc +++ b/usr.sbin/named/Makefile.inc @@ -1,5 +1,5 @@ # From: Id: Makefile.inc,v 8.4 1996/03/03 17:42:43 vixie Exp -# $Id: Makefile.inc,v 1.5 1997/05/17 11:53:03 peter Exp $ +# $Id: Makefile.inc,v 1.6 1998/05/03 05:09:12 peter Exp $ .ifndef (Mk.Inc) Mk.Inc?=defined @@ -20,12 +20,14 @@ INCLUDE= -I${BIND_DIR}/port/freebsd/include -I${BIND_DIR}/include -I. CFLAGS+= ${INCLUDE} ${CONFIG} .if exists(${.OBJDIR}/../../lib/libbind) -LDADD+= -L${.OBJDIR}/../../lib/libbind -lbind -DPADD+= ${.OBJDIR}/../../lib/libbind/libbind.a +LIBBINDDIR:= ${.OBJDIR}/../../lib/libbind .else -LDADD+= -L${.CURDIR}/../../lib/libbind -lbind -DPADD+= ${.CURDIR}/../../lib/libbind/libbind.a +LIBBINDDIR!= cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR .endif +LIBBIND:= ${LIBBINDDIR}/libbind.a + +DPADD+= ${LIBBIND} +LDADD+= ${LIBBIND} CLEANFILES+= tmp_version.c pathnames.h |