From d17eb3db0e135a449c94977aabae938e96584603 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 28 Oct 1993 18:09:20 +0000 Subject: [PATCH] * Makefile.in: Add dependency for $(EMULATION_OFILES). --- ld/ChangeLog | 4 ++++ ld/Makefile.in | 33 ++++++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index aa5d643860a..e74b43e98be 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * Makefile.in: Add dependency for $(EMULATION_OFILES). + Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * relax.c (write_relax): Check return value of bfd_seclet_link. diff --git a/ld/Makefile.in b/ld/Makefile.in index 3e49a7fff9e..b8489b074a4 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -78,6 +78,10 @@ version= # which may have the form: LIB_PATH=/lib:/usr/local/lib LIB_PATH = +# Additional libraries which are used when ld is built native. This +# is set by some host makefile fragments. +NATIVE_LIB_DIRS = + BASEDIR = $(srcdir)/.. BFDDIR = $(BASEDIR)/bfd INCDIR = $(BASEDIR)/include @@ -87,7 +91,7 @@ INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) DOCVER = gen # Where to find texinfo.tex to format docn with TeX -TEXIDIR = $(srcdir)/../texinfo/fsf +TEXIDIR = $(srcdir)/../texinfo # Where to find other docs needed to format with TeX TEXINPUTS = $(TEXIDIR):$(BFDDIR)/doc:$(srcdir) @@ -129,7 +133,7 @@ RUNTEST_CXX = `if [ -f ../gcc/xgcc ] ; then \ else echo gcc; \ fi` # FIX_ME: using ../gcc/xgcc breaks the cdtest. -RUNTEST_CXX = CXX +RUNTEST_CXX = $(CXX) RUNTEST_CXXFLAGS = $(CXXFLAGS) all: @@ -167,7 +171,7 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \ em_m68kcoff.o em_st2000.o em_sa29200.o \ em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \ em_mipsbig.o em_mipsbsd.o em_mipsidt.o em_vax.o em_h8500.o \ - em_hppaosf.o em_mipsidtl.o em_sh.o \ + em_hppaosf.o em_mipsidtl.o em_sh.o em_elf_i386.o em_alpha.o \ $(OTHER_EMULATIONS) # This is now set by configure.in. @@ -246,7 +250,7 @@ ldlex.c: ldlex.l ldgram.h # These all start with em_ so 'make clean' can find them. -GENSCRIPTS=sh $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} +GENSCRIPTS=$(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)" GEN_DEPENDS=$(srcdir)/genscripts.sh em_sun4.c: $(srcdir)/emulparams/sun4.sh \ @@ -318,9 +322,15 @@ em_gld960.c: $(srcdir)/emulparams/gld960.sh \ em_m68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS} ${GENSCRIPTS} m68kcoff +em_m68klynx.c: $(srcdir)/emulparams/m68klynx.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS} + ${GENSCRIPTS} m68klynx em_i386coff.c: $(srcdir)/emulparams/i386coff.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} ${GENSCRIPTS} i386coff +em_i386lynx.c: $(srcdir)/emulparams/i386lynx.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} + ${GENSCRIPTS} i386lynx em_mipslit.c: $(srcdir)/emulparams/mipslit.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} ${GENSCRIPTS} mipslit @@ -339,9 +349,22 @@ em_mipsidt.c: $(srcdir)/emulparams/mipsidt.sh \ em_mipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} ${GENSCRIPTS} mipsidtl +em_elf_i386.c: $(srcdir)/emulparams/elf_i386.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf_i386 +em_elf32mipb.c: $(srcdir)/emulparams/elf32mipb.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32mipb +em_alpha.c: $(srcdir)/emulparams/alpha.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS} + ${GENSCRIPTS} alpha $(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY) - $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) + $(CC) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES) + +# The generated emulation files mostly have the same dependencies. +$(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h ld.h ldemul.h \ + ldfile.h ldmisc.h config.h # This list of dependencies was generated by doing a make with gcc -MM # saving the output in a file and removing the gcc commands -- 2.30.2