Remove support for the (deprecated) openrisc and or32 configurations and replace
[deliverable/binutils-gdb.git] / gas / Makefile.am
index 4d3e7ba99c4d3129097f9a29b0f08b8c8356c702..01731b9a64dbf92e2131a9e46ca3fff51134151c 100644 (file)
@@ -1,4 +1,21 @@
 ## Process this file with automake to generate Makefile.in
+#
+#   Copyright (C) 2012-2014 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
+# <http://www.gnu.org/licenses/>.
+#
 
 AUTOMAKE_OPTIONS = 1.11 dejagnu foreign no-dist
 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
@@ -32,7 +49,7 @@ 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.@OBJEXT@ itbl-lex.@OBJEXT@ itbl-ops.@OBJEXT@
 
@@ -43,6 +60,7 @@ GAS_CFILES = \
        app.c \
        as.c \
        atof-generic.c \
+       compress-debug.c \
        cond.c \
        depend.c \
        dwarf2dbg.c \
@@ -78,6 +96,7 @@ HFILES = \
        bignum.h \
        bit_fix.h \
        cgen.h \
+       compress-debug.h \
        dwarf2dbg.h \
        dw2gencfi.h \
        ecoff.h \
@@ -105,6 +124,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 \
@@ -116,6 +136,7 @@ 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-h8300.c \
@@ -132,9 +153,9 @@ 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 \
@@ -143,12 +164,14 @@ TARGET_CPU_CFILES = \
        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-rl78.c \
        config/tc-rx.c \
        config/tc-s390.c \
        config/tc-score.c \
@@ -160,16 +183,20 @@ TARGET_CPU_CFILES = \
        config/tc-tic4x.c \
        config/tc-tic54x.c \
        config/tc-tic6x.c \
+       config/tc-tilegx.c \
+       config/tc-tilepro.c \
        config/tc-vax.c \
        config/tc-v850.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 \
@@ -181,6 +208,7 @@ 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-h8300.h \
@@ -197,9 +225,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 \
@@ -207,12 +235,14 @@ 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-rl78.h \
        config/tc-rx.h \
        config/tc-s390.h \
        config/tc-score.h \
@@ -224,10 +254,13 @@ TARGET_CPU_HFILES = \
        config/tc-tic4x.h \
        config/tc-tic54x.h \
        config/tc-tic6x.h \
+       config/tc-tilegx.h \
+       config/tc-tilepro.h \
        config/tc-vax.h \
        config/tc-v850.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 \
@@ -276,7 +309,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 \
@@ -307,52 +339,12 @@ 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.@OBJEXT@ \
-       as.@OBJEXT@ \
-       atof-generic.@OBJEXT@ \
-       cond.@OBJEXT@ \
-       depend.@OBJEXT@ \
-       dwarf2dbg.@OBJEXT@ \
-       dw2gencfi.@OBJEXT@ \
-       ehopt.@OBJEXT@ \
-       expr.@OBJEXT@ \
-       flonum-konst.@OBJEXT@ \
-       flonum-copy.@OBJEXT@ \
-       flonum-mult.@OBJEXT@ \
-       frags.@OBJEXT@ \
-       hash.@OBJEXT@ \
-       input-file.@OBJEXT@ \
-       input-scrub.@OBJEXT@ \
-       literal.@OBJEXT@ \
-       messages.@OBJEXT@ \
-       output-file.@OBJEXT@ \
-       read.@OBJEXT@ \
-       remap.@OBJEXT@ \
-       subsegs.@OBJEXT@ \
-       symbols.@OBJEXT@ \
-       write.@OBJEXT@ \
-       listing.@OBJEXT@ \
-       ecoff.@OBJEXT@ \
-       stabs.@OBJEXT@ \
-       sb.@OBJEXT@ \
-       macro.@OBJEXT@
-
 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) $(TARG_ENV_CFILES) $(OBJ_FORMAT_HFILES) \
        $(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \
@@ -369,6 +361,7 @@ 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 \
+       rl78-parse.c rl78-parse.h \
        rx-parse.c rx-parse.h
 
 diststuff: $(EXTRA_DIST) info
@@ -421,6 +414,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; \
@@ -486,18 +480,26 @@ $(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.@OBJEXT@: bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
+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 $@ `test -f bfin-lex.c || echo $(srcdir)/`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 `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
+       $(COMPILE) -c $(srcdir)/config/bfin-lex-wrapper.c $(NO_WERROR)
 endif
 
+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-parse.@OBJEXT@: rl78-parse.c rl78-parse.h $(srcdir)/config/rl78-defs.h \
+ $(INCDIR)/elf/common.h $(INCDIR)/elf/rl78.h $(BFDDIR)/libbfd.h
+
+rl78-defs.h: ; @true
+
 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
@@ -511,16 +513,16 @@ $(srcdir)/config/rx-defs.h: ; @true
 
 # Disable -Werror, if it has been enabled, since old versions of bison/
 # yacc will produce working code which contain compile time warnings.
-itbl-lex.@OBJEXT@: itbl-lex.c itbl-parse.h
+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 $@ `test -f itbl-lex.c || echo $(srcdir)/`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 `test -f itbl-lex.c || echo $(srcdir)/`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/
@@ -586,7 +588,7 @@ cgen.@OBJEXT@: cgen.c cgen.h cgen-desc.h subsegs.h \
 # Remake the info files.
 
 MOSTLYCLEANFILES = $(STAGESTUFF) core \
-       testsuite/*.@OBJEXT@ testsuite/*.@OBJEXT@ut 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
@@ -598,8 +600,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
 
@@ -609,7 +611,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
@@ -618,7 +620,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)
This page took 0.031674 seconds and 4 git commands to generate.