Honor ${LDFLAGS} for building svr4_genassym. This is part of fixing

world breakage (mainly for cross-world cases).  The world Makefile
attempts to build tools static so that nonexistent or wrong shared
libraries and interpreters don't get used.  This is broken anyway
since the world Makefile doesn't know about svr4_genassym.

Force building svr4_genassym static.  This is part of "fixing"
aout-to-elf-build breakage.  aout-to-elf-build abuses NOTOOLS to
avoid rebuilding all the aout tools.  This saves time and avoids
some complications.  However, it breaks all the internal tools --
they get linked to target libraries which might not work.  Cases
where the host can run the target's static libraries are "fixed"
by encrufting all Makefiles that build internal tools to build the
tools static.

Don't add .depend to CLEANFILES -- it just breaks the separation of
`make cleandepend' from `make clean'.

Removed some superflous explicit dependencies.
This commit is contained in:
bde 1999-02-06 07:48:24 +00:00
parent 638895c103
commit 87e388cc70

View File

@ -1,4 +1,4 @@
# $Id$ # $Id: Makefile,v 1.1 1999/01/30 06:29:48 newton Exp $
.PATH: ${.CURDIR}/../../i386/svr4 ${.CURDIR}/../../svr4 .PATH: ${.CURDIR}/../../i386/svr4 ${.CURDIR}/../../svr4
KMOD= svr4 KMOD= svr4
@ -19,7 +19,7 @@ CFLAGS+= -DDEBUG_SVR4
EXPORT_SYMS=_svr4_mod EXPORT_SYMS=_svr4_mod
CLEANFILES+= vnode_if.h vnode_if.c svr4_genassym.o svr4_genassym \ CLEANFILES+= vnode_if.h vnode_if.c svr4_genassym.o svr4_genassym \
svr4_assym.h opt_compat.h opt_vmpage.h .depend svr4_assym.h opt_compat.h opt_vmpage.h
build-tools: svr4_genassym build-tools: svr4_genassym
@ -34,9 +34,7 @@ svr4_genassym.o: svr4_genassym.c svr4.h @ machine
${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC} ${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
svr4_genassym: svr4_genassym.o svr4_genassym: svr4_genassym.o
${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} ${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
svr4_sysvec.o: opt_vmpage.h opt_compat.h
opt_compat.h: opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h echo "#define COMPAT_43 1" > opt_compat.h