X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2FMakefile.am;h=cdaf9f5a16c1bb1fd7c3076b7a5033e538cf6f69;hb=ccfc90a39b78b7bc4173cd9ead49d2aa59695378;hp=177e7f32fbdd04d9dffbde3e7913ac26fbc8025b;hpb=a5c7551fbec299a0bafd32f0d1ba056703fd52dd;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/Makefile.am b/gas/Makefile.am index 177e7f32fb..cdaf9f5a16 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -1,4 +1,21 @@ ## Process this file with automake to generate Makefile.in +# +# Copyright (C) 2012-2016 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# AUTOMAKE_OPTIONS = 1.11 dejagnu foreign no-dist ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd @@ -7,169 +24,40 @@ SUBDIRS = doc po tooldir = $(exec_prefix)/$(target_alias) +# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is +# -I../zlib, unless we were configured with --with-system-zlib, in which +# case both are empty. +ZLIBINC = @zlibinc@ + YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi` LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo @LEX@ ; fi` -# We have to set this, because autoconf 2.59 does not substitute YFLAGS. -# Autoconf 2.61 does, so this can be removed when we upgrade. -YFLAGS = +# Automake 1.10+ disables lex and yacc output file regeneration if +# maintainer mode is disabled. Avoid this. +am__skiplex = +am__skipyacc = -WARN_CFLAGS = @WARN_CFLAGS@ +WARN_CFLAGS = @WARN_CFLAGS@ @WARN_WRITE_STRINGS@ NO_WERROR = @NO_WERROR@ -AM_CFLAGS = $(WARN_CFLAGS) +AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) TARG_CPU = @target_cpu_type@ TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c -TARG_CPU_O = tc-@target_cpu_type@.o +TARG_CPU_O = tc-@target_cpu_type@.@OBJEXT@ TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h OBJ_FORMAT_C = $(srcdir)/config/obj-@obj_format@.c -OBJ_FORMAT_O = obj-@obj_format@.o +OBJ_FORMAT_O = obj-@obj_format@.@OBJEXT@ OBJ_FORMAT_H = $(srcdir)/config/obj-@obj_format@.h TARG_ENV_H = $(srcdir)/config/te-@te_file@.h ATOF_TARG_C = $(srcdir)/config/atof-@atof@.c -ATOF_TARG_O = atof-@atof@.o +ATOF_TARG_O = atof-@atof@.@OBJEXT@ # use @target_cpu_type@ for refering to configured target name IT_HDRS=itbl-parse.h $(srcdir)/itbl-ops.h -IT_SRCS=itbl-parse.c itbl-lex.c $(srcdir)/itbl-ops.c +IT_SRCS=itbl-parse.c itbl-lex-wrapper.c $(srcdir)/itbl-ops.c IT_DEPS=$(srcdir)/itbl-parse.y $(srcdir)/itbl-lex.l $(srcdir)/config/itbl-@target_cpu_type@.h -IT_OBJS=itbl-parse.o itbl-lex.o itbl-ops.o - -# CPU types. This is only used for dependency information. - -CPU_TYPES = \ - alpha \ - arc \ - arm \ - avr \ - bfin \ - cr16 \ - cris \ - crx \ - d10v \ - d30v \ - dlx \ - fr30 \ - frv \ - h8300 \ - hppa \ - i370 \ - i386 \ - i860 \ - i960 \ - ia64 \ - ip2k \ - lm32 \ - m32c \ - m32r \ - m68hc11 \ - m68k \ - maxq \ - mcore \ - mep \ - microblaze \ - mips \ - mmix \ - mn10200 \ - mn10300 \ - msp430 \ - mt \ - ns32k \ - openrisc \ - or32 \ - pdp11 \ - pj \ - ppc \ - s390 \ - score \ - sh \ - sh64 \ - sparc \ - spu \ - tic30 \ - tic4x \ - tic54x \ - v850 \ - vax \ - xc16x \ - xstormy16 \ - xtensa \ - z80 \ - z8k - -# Object format types. This is only used for dependency information. -# We deliberately omit SOM, since it does not work as a cross assembler. - -OBJ_FORMATS = \ - aout \ - coff \ - ecoff \ - elf \ - evax \ - macho - -# This is an sh case which sets valid according to whether the CPU -# type in the shell variable c and the OS type in the shell variable o -# are supported. This helps cuts down on the amount of dependency -# information. - -CPU_OBJ_VALID = \ - valid= ; \ - case $$o in \ - aout) \ - case $$c in \ - arm | cris | i386 | m68k | ns32k | pdp11 | sparc | tic30 | vax) \ - valid=yes ;; \ - esac ;; \ - coff) \ - case $$c in \ - arm | h8300 | i386 | i960 | m68k | maxq | mcore | mips | or32 \ - | ppc | sh | sparc | tic* | xscale | z80 | z8k) \ - valid=yes ;; \ - esac ;; \ - ecoff) \ - case $$c in \ - mips | alpha) valid=yes ;; \ - esac ;; \ - elf) valid=yes ; \ - case $$c in \ - maxq | ns32k | tic* | z80 | z8k) valid= ;; \ - esac ;; \ - evax) \ - case $$c in \ - alpha) valid=yes ;; \ - esac ;; \ - macho) \ - case $$c in \ - i386) valid=yes ;; \ - esac ;; \ - vms) \ - case $$c in \ - vax) valid=yes ;; \ - esac ;; \ - esac; - -# These are like CPU_TYPES and CPU_OBJ_VALID, for the obj=multi case. - -MULTI_CPU_TYPES = i386 mips cris - -MULTI_CPU_OBJ_VALID = \ - valid= ; \ - case $$o in \ - aout) \ - case $$c in \ - i386 | cris) valid=yes ;; \ - esac ;; \ - coff) \ - case $$c in \ - i386 | mips) valid=yes ;; \ - esac ;; \ - ecoff) \ - case $$c in \ - mips) valid=yes ;; \ - esac ;; \ - elf) valid=yes ;; \ - esac; +IT_OBJS=itbl-parse.@OBJEXT@ itbl-lex.@OBJEXT@ itbl-ops.@OBJEXT@ + # Regular source files. @@ -177,6 +65,7 @@ GAS_CFILES = \ app.c \ as.c \ atof-generic.c \ + compress-debug.c \ cond.c \ depend.c \ dwarf2dbg.c \ @@ -212,6 +101,7 @@ HFILES = \ bignum.h \ bit_fix.h \ cgen.h \ + compress-debug.h \ dwarf2dbg.h \ dw2gencfi.h \ ecoff.h \ @@ -239,6 +129,7 @@ HFILES = \ # CPU files in config. TARGET_CPU_CFILES = \ + config/tc-aarch64.c \ config/tc-alpha.c \ config/tc-arc.c \ config/tc-arm.c \ @@ -250,8 +141,10 @@ TARGET_CPU_CFILES = \ config/tc-d10v.c \ config/tc-d30v.c \ config/tc-dlx.c \ + config/tc-epiphany.c \ config/tc-fr30.c \ config/tc-frv.c \ + config/tc-ft32.c \ config/tc-h8300.c \ config/tc-hppa.c \ config/tc-ia64.c \ @@ -266,22 +159,27 @@ TARGET_CPU_CFILES = \ config/tc-m32r.c \ config/tc-m68hc11.c \ config/tc-m68k.c \ - config/tc-maxq.c \ config/tc-mcore.c \ config/tc-mep.c \ + config/tc-metag.c \ config/tc-microblaze.c \ config/tc-mips.c \ config/tc-mmix.c \ config/tc-mn10200.c \ config/tc-mn10300.c \ + config/tc-moxie.c \ config/tc-msp430.c \ config/tc-mt.c \ + config/tc-nds32.c \ + config/tc-nios2.c \ config/tc-ns32k.c \ - config/tc-openrisc.c \ - config/tc-or32.c \ + config/tc-or1k.c \ config/tc-pdp11.c \ config/tc-pj.c \ config/tc-ppc.c \ + config/tc-riscv.c \ + config/tc-rl78.c \ + config/tc-rx.c \ config/tc-s390.c \ config/tc-score.c \ config/tc-sh.c \ @@ -291,16 +189,22 @@ TARGET_CPU_CFILES = \ config/tc-tic30.c \ config/tc-tic4x.c \ config/tc-tic54x.c \ - config/tc-vax.c \ + config/tc-tic6x.c \ + config/tc-tilegx.c \ + config/tc-tilepro.c \ config/tc-v850.c \ + config/tc-vax.c \ + config/tc-visium.c \ config/tc-xstormy16.c \ config/tc-xc16x.c \ + config/tc-xgate.c \ config/tc-xtensa.c \ config/tc-z80.c \ config/tc-z8k.c \ config/xtensa-relax.c TARGET_CPU_HFILES = \ + config/tc-aarch64.h \ config/tc-alpha.h \ config/tc-arc.h \ config/tc-arm.h \ @@ -312,8 +216,10 @@ TARGET_CPU_HFILES = \ config/tc-d10v.h \ config/tc-d30v.h \ config/tc-dlx.h \ + config/tc-epiphany.h \ config/tc-fr30.h \ config/tc-frv.h \ + config/tc-ft32.h \ config/tc-h8300.h \ config/tc-hppa.h \ config/tc-ia64.h \ @@ -328,9 +234,9 @@ TARGET_CPU_HFILES = \ config/tc-m32r.h \ config/tc-m68hc11.h \ config/tc-m68k.h \ - config/tc-maxq.h \ config/tc-mcore.h \ config/tc-mep.h \ + config/tc-metag.h \ config/tc-microblaze.h \ config/tc-mips.h \ config/tc-mmix.h \ @@ -338,12 +244,16 @@ TARGET_CPU_HFILES = \ config/tc-mn10300.h \ config/tc-msp430.h \ config/tc-mt.h \ + config/tc-nds32.h \ + config/tc-nios2.h \ config/tc-ns32k.h \ - config/tc-openrisc.h \ - config/tc-or32.h \ + config/tc-or1k.h \ config/tc-pdp11.h \ config/tc-pj.h \ config/tc-ppc.h \ + config/tc-riscv.h \ + config/tc-rl78.h \ + config/tc-rx.h \ config/tc-s390.h \ config/tc-score.h \ config/tc-sh.h \ @@ -353,10 +263,15 @@ TARGET_CPU_HFILES = \ config/tc-tic30.h \ config/tc-tic4x.h \ config/tc-tic54x.h \ - config/tc-vax.h \ + config/tc-tic6x.h \ + config/tc-tilegx.h \ + config/tc-tilepro.h \ config/tc-v850.h \ + config/tc-vax.h \ + config/tc-visium.h \ config/tc-xstormy16.h \ config/tc-xc16x.h \ + config/tc-xgate.h \ config/tc-xtensa.h \ config/tc-z80.h \ config/tc-z8k.h \ @@ -392,6 +307,8 @@ TARG_ENV_HFILES = \ config/te-386bsd.h \ config/te-aix5.h \ config/te-armeabi.h \ + config/te-armfbsdeabi.h \ + config/te-armfbsdvfp.h \ config/te-armlinuxeabi.h \ config/te-dynix.h \ config/te-epoc-pe.h \ @@ -405,7 +322,6 @@ TARG_ENV_HFILES = \ config/te-i386aix.h \ config/te-ia64aix.h \ config/te-interix.h \ - config/te-lnews.h \ config/te-lynx.h \ config/te-mach.h \ config/te-macos.h \ @@ -425,6 +341,9 @@ TARG_ENV_HFILES = \ config/te-vxworks.h \ config/te-wince-pe.h +TARG_ENV_CFILES = \ + config/te-vms.c + # Multi files in config MULTI_CFILES = \ @@ -433,53 +352,14 @@ MULTI_CFILES = \ config/e-i386aout.c \ config/e-i386coff.c \ config/e-i386elf.c \ - config/e-mipsecoff.c \ config/e-mipself.c -CONFIG_OBJS = \ - $(TARG_CPU_O) \ - $(OBJ_FORMAT_O) \ - $(ATOF_TARG_O) \ - $(extra_objects) - -GENERIC_OBJS = \ - app.o \ - as.o \ - atof-generic.o \ - cond.o \ - depend.o \ - dwarf2dbg.o \ - dw2gencfi.o \ - ehopt.o \ - expr.o \ - flonum-konst.o \ - flonum-copy.o \ - flonum-mult.o \ - frags.o \ - hash.o \ - input-file.o \ - input-scrub.o \ - literal.o \ - messages.o \ - output-file.o \ - read.o \ - remap.o \ - subsegs.o \ - symbols.o \ - write.o \ - listing.o \ - ecoff.o \ - stabs.o \ - sb.o \ - macro.o - CONFIG_ATOF_CFILES = \ config/atof-ieee.c \ config/atof-vax.c -OBJS = $(CONFIG_OBJS) $(GENERIC_OBJS) - -POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) $(TARG_ENV_HFILES) $(OBJ_FORMAT_HFILES) \ +POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) \ + $(TARG_ENV_HFILES) $(TARG_ENV_CFILES) $(OBJ_FORMAT_HFILES) \ $(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \ $(HFILES) $(CFILES) po/POTFILES.in: @MAINT@ Makefile @@ -493,7 +373,9 @@ noinst_SCRIPTS = $(GDBINIT) EXTRA_SCRIPTS = .gdbinit EXTRA_DIST = m68k-parse.c itbl-parse.c itbl-parse.h itbl-lex.c \ - bfin-parse.c bfin-parse.h bfin-lex.c + bfin-parse.c bfin-parse.h bfin-lex.c \ + rl78-parse.c rl78-parse.h \ + rx-parse.c rx-parse.h diststuff: $(EXTRA_DIST) info @@ -510,7 +392,7 @@ INCDIR = $(BASEDIR)/include # Both . and srcdir are used, in that order, # so that tm.h and config.h will be found in the compilation # subdirectory rather than in the source directory. -INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \ +AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \ -I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ \ -DLOCALEDIR="\"$(datadir)/locale\"" @@ -520,7 +402,7 @@ INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \ GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a # Files to be copied away after each stage in building. -STAGESTUFF = *.o $(noinst_PROGRAMS) +STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS) as_new_SOURCES = $(GAS_CFILES) as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \ @@ -529,7 +411,7 @@ as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \ $(extra_objects) $(GASLIBS) $(LIBINTL_DEP) EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \ $(TARGET_CPU_HFILES) $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES) \ - $(CONFIG_ATOF_CFILES) $(MULTI_CFILES) + $(TARG_ENV_CFILES) $(CONFIG_ATOF_CFILES) $(MULTI_CFILES) EXPECT = expect RUNTEST = runtest @@ -545,6 +427,7 @@ check-DEJAGNU: site.exp cp site.exp testsuite/site.exp rootme=`pwd`; export rootme; \ srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + LC_ALL=C; export LC_ALL; \ EXPECT=${EXPECT} ; export EXPECT ; \ runtest=$(RUNTEST); \ cd testsuite; \ @@ -556,7 +439,7 @@ check-DEJAGNU: site.exp # The m68k operand parser. -EXTRA_as_new_SOURCES += config/m68k-parse.y config/bfin-parse.y +EXTRA_as_new_SOURCES += config/m68k-parse.y # If m68k-parse.y is in a different directory, then ylwrap will use an # absolute path when it invokes yacc, which will cause yacc to put the @@ -582,85 +465,101 @@ m68k-parse.c: $(srcdir)/config/m68k-parse.y else true; fi # Disable -Werror, if it has been enabled, since old versions of bison/ # yacc will produce working code which contain compile time warnings. -m68k-parse.o: m68k-parse.c +m68k-parse.@OBJEXT@: m68k-parse.c if am__fastdepCC - $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ m68k-parse.c $(NO_WERROR) + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR) mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po else if AMDEP source='m68k-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ endif - $(COMPILE) -c m68k-parse.c $(NO_WERROR) + $(COMPILE) -c `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR) endif # Don't let the .y.h rule clobber m68k-parse.h. m68k-parse.h: ; @true $(srcdir)/config/m68k-parse.h: ; @true +EXTRA_as_new_SOURCES += config/bfin-parse.y bfin-parse.c: $(srcdir)/config/bfin-parse.y $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ; bfin-parse.h: bfin-parse.c -bfin-parse.o: bfin-parse.c bfin-parse.h $(srcdir)/config/bfin-defs.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h - -bfin-defs.h: ; @true -$(srcdir)/config/bfin-defs.h: ; @true +bfin-parse.h: ; @true +$(srcdir)/config/bfin-parse.h: ; @true bfin-lex.c: $(srcdir)/config/bfin-lex.l $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE) -bfin-lex.o: bfin-lex.c +bfin-lex-wrapper.@OBJEXT@: $(srcdir)/config/bfin-lex-wrapper.c bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h if am__fastdepCC - $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ bfin-lex.c $(NO_WERROR) + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR) mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po else if AMDEP - source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@ + source='bfin-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ endif - $(COMPILE) -c bfin-lex.c $(NO_WERROR) + $(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR) endif +EXTRA_as_new_SOURCES += config/rl78-parse.y +rl78-parse.c: $(srcdir)/config/rl78-parse.y + $(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c rl78-parse.c y.tab.h rl78-parse.h -- $(YACCCOMPILE) -d ; +rl78-parse.h: rl78-parse.c +rl78-defs.h: ; @true +$(srcdir)/config/rl78-defs.h: ; @true + +EXTRA_as_new_SOURCES += config/rx-parse.y +rx-parse.c: $(srcdir)/config/rx-parse.y + $(SHELL) $(YLWRAP) $(srcdir)/config/rx-parse.y y.tab.c rx-parse.c y.tab.h rx-parse.h -- $(YACCCOMPILE) -d ; +rx-parse.h: rx-parse.c +rx-defs.h: ; @true +$(srcdir)/config/rx-defs.h: ; @true + # The instruction table specification lexical analyzer and parser. # Disable -Werror, if it has been enabled, since old versions of bison/ # yacc will produce working code which contain compile time warnings. -itbl-lex.o: itbl-lex.c +itbl-lex-wrapper.@OBJEXT@: itbl-lex-wrapper.c itbl-lex.c itbl-parse.h if am__fastdepCC - $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ itbl-lex.c $(NO_WERROR) + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/itbl-lex-wrapper.c $(NO_WERROR) mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po else if AMDEP - source='itbl-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@ + source='itbl-lex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ endif - $(COMPILE) -c itbl-lex.c $(NO_WERROR) + $(COMPILE) -c $(srcdir)/itbl-lex-wrapper.c $(NO_WERROR) endif # Disable -Werror, if it has been enabled, since old versions of bison/ # yacc will produce working code which contain compile time warnings. -itbl-parse.o: itbl-parse.c +itbl-parse.@OBJEXT@: itbl-parse.c if am__fastdepCC - $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ itbl-parse.c $(NO_WERROR) + $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR) mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po else if AMDEP source='itbl-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ endif - $(COMPILE) -c itbl-parse.c $(NO_WERROR) + $(COMPILE) -c `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR) endif -itbl-parse.c itbl-parse.h: $(srcdir)/itbl-parse.y +itbl-parse.c: $(srcdir)/itbl-parse.y $(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d +itbl-parse.h: itbl-parse.c ; @true + +itbl-ops.@OBJEXT@: itbl-parse.h + # stand-alone itbl assembler & disassembler EXTRA_PROGRAMS = itbl-test itbl_test_SOURCES = itbl-parse.y itbl-lex.l -itbl_test_LDADD = itbl-tops.o itbl-test.o $(GASLIBS) @LEXLIB@ +itbl_test_LDADD = itbl-tops.@OBJEXT@ itbl-test.@OBJEXT@ $(GASLIBS) @LEXLIB@ -itbl-tops.o: itbl-ops.c +itbl-tops.@OBJEXT@: itbl-ops.c itbl-parse.h if am__fastdepCC $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -o $@ -c -DSTAND_ALONE $(srcdir)/itbl-ops.c mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @@ -672,7 +571,7 @@ endif $(COMPILE) -o $@ -DSTAND_ALONE -c $(srcdir)/itbl-ops.c endif -itbl-test.o: $(srcdir)/testsuite/gas/all/itbl-test.c +itbl-test.@OBJEXT@: $(srcdir)/testsuite/gas/all/itbl-test.c if am__fastdepCC $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @@ -688,7 +587,7 @@ endif CGEN_CPU_PREFIX = @cgen_cpu_prefix@ -cgen.o: cgen.c cgen.h cgen-desc.h subsegs.h \ +cgen.@OBJEXT@: cgen.c cgen.h cgen-desc.h subsegs.h \ $(INCDIR)/obstack.h $(INCDIR)/opcode/cgen.h \ $(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-desc.h \ $(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-opc.h @@ -696,7 +595,7 @@ cgen.o: cgen.c cgen.h cgen-desc.h subsegs.h \ # Remake the info files. MOSTLYCLEANFILES = $(STAGESTUFF) core \ - testsuite/*.o testsuite/*.out testsuite/gas.log testsuite/gas.sum \ + testsuite/*.@OBJEXT@ testsuite/*.out testsuite/gas.log testsuite/gas.sum \ testsuite/site.exp site.bak site.exp stage stage1 stage2 .PHONY: install-exec-local install-data-local @@ -708,8 +607,8 @@ install-exec-bindir: $(noinst_PROGRAMS) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(noinst_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ - echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done @@ -719,7 +618,7 @@ install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS) if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \ rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \ - || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ + || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \ else \ true ; \ fi @@ -728,7 +627,7 @@ install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS) .PHONY: bootstrap bootstrap2 bootstrap3 stage1 stage2 stage3 comparison -bootstrap: as-new +bootstrap: as-new$(EXEEXT) $(MAKE) stage1 rm -f stage && ln -s stage1 stage $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS) @@ -773,7 +672,7 @@ against=stage2 # temporary assembly file names. comparison: x=0 ; \ - for file in *.o ; do \ + for file in *.@OBJEXT@ ; do \ tail +16c ./$$file > tmp-foo1; \ if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \ if cmp tmp-foo1 tmp-foo2 ; then \ @@ -801,4 +700,6 @@ de-stage3: - (cd stage3 ; rm -f as$(EXEEXT) ; mv -f * ..) - rmdir stage3 -CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in $(srcdir)/configure.tgt +# Reconfigure if configure.tgt changes. +# development.sh is used to determine -Werror default. +CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.tgt $(BFDDIR)/development.sh