diff options
author | bde <bde@FreeBSD.org> | 1997-04-09 16:10:27 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-04-09 16:10:27 +0000 |
commit | b531e6bb86952d3985923b1181488c61fd5f03cc (patch) | |
tree | 83968417cf50d710239768ef7bb6ef4882a59793 /share/mk/bsd.dep.mk | |
parent | f9744710975755477aadbb88db162e4d0bca1982 (diff) | |
download | FreeBSD-src-b531e6bb86952d3985923b1181488c61fd5f03cc.zip FreeBSD-src-b531e6bb86952d3985923b1181488c61fd5f03cc.tar.gz |
Use `ld -f' (actually `cc -Wl,-f') at `make depend' time to generate
almost perfect dependencies on crt0's and libraries. DPADD and
bsd.libnames.mk should go away soon. Use a new _EXTRADEPEND target
to implement this and to avoid editing of .depend when .depend isn;t
being rebuilt. The afterdepend target doesn't seem to be good for
anything and is now unused.
Fixed LDDESTDIR for the DESTDIR case when ${SHLIBDIR} != /usr/lib.
Added commented-out -nostdlib to LDDESTDIR for the DESTDIR case.
The wrong libraries may be used without this; however it breaks
linkage to crt0 and libc.
Diffstat (limited to 'share/mk/bsd.dep.mk')
-rw-r--r-- | share/mk/bsd.dep.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 20dac47..90abc88 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -1,4 +1,4 @@ -# $Id$ +# $Id: bsd.dep.mk,v 1.10 1997/02/22 13:56:08 peter Exp $ # # The include file <bsd.dep.mk> handles Makefile dependencies. # @@ -56,6 +56,9 @@ ${DEPENDFILE}: ${SRCS} ${CXXFLAGS:M-nostd*} ${CXXFLAGS:M-[ID]*} \ ${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx} .endif +.if target(_EXTRADEPEND) + cd ${.CURDIR}; ${MAKE} _EXTRADEPEND +.endif .else ${DEPENDFILE}: _SUBDIR |