diff options
author | Alan Modra <amodra@gmail.com> | 2019-04-23 16:42:27 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-04-23 17:02:44 +0930 |
commit | cc9519e7d6251b84dd95c55b562a15b25d703bc0 (patch) | |
tree | 72696813973af6dd02511a3a8c32e51c0445c6af /ld/Makefile.am | |
parent | 6f38008bb423d71e6984c8ce49b4fc83d2cdaf0d (diff) | |
download | gdb-cc9519e7d6251b84dd95c55b562a15b25d703bc0.zip gdb-cc9519e7d6251b84dd95c55b562a15b25d703bc0.tar.gz gdb-cc9519e7d6251b84dd95c55b562a15b25d703bc0.tar.bz2 |
Fix automatic makefile dependencies for generated ld/e*.c
Commit c40e31a121 broke --enable-dependency-tracking=no.
* Makefile.am (GENDEPDIR): New var, used..
(GENSCRIPTS): ..here.
* Makefile.in: Regenerate.
* genscripts.sh: Test for $DEPDIR set before every use.
Diffstat (limited to 'ld/Makefile.am')
-rw-r--r-- | ld/Makefile.am | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ld/Makefile.am b/ld/Makefile.am index 0e9dc86..4a0bb15 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -152,6 +152,7 @@ AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \ BFDLIB = ../bfd/libbfd.la LIBIBERTY = ../libiberty/libiberty.a +# These all start with e so 'make clean' can find them. ALL_EMULATION_SOURCES = \ eaix5ppc.c \ eaix5rs6.c \ @@ -611,9 +612,12 @@ ldemul-list.h: Makefile stringify.sed: ${srcdir}/emultempl/$(STRINGIFY) cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed -# These all start with e so 'make clean' can find them. - -GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @target_alias@ "${DEPDIR}" "${LIB_PATH}" "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ @enable_initfini_array@ +if AMDEP + GENDEPDIR=$(DEPDIR) +else + GENDEPDIR= +endif +GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @target_alias@ "$(GENDEPDIR)" "${LIB_PATH}" "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ @enable_initfini_array@ GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed @TDIRS@ |