From b531e6bb86952d3985923b1181488c61fd5f03cc Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 9 Apr 1997 16:10:27 +0000 Subject: 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. --- share/mk/bsd.dep.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/mk/bsd.dep.mk') 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 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 -- cgit v1.1