configure.host: fix shell syntax errors
[deliverable/binutils-gdb.git] / gas / Makefile.in
index ae98eb52d5438702688c4fe3a986fbb00866aee8..2fd033915674a57de6632c8ba04b07e7f3e26c4c 100644 (file)
 
 # You should have received a copy of the GNU General Public License
 # along with GNU GAS; see the file COPYING.  If not, write to
-# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 # The targets for external use include:
 # all, doc, proto, install, uninstall, includes, TAGS,
-# clean, cleanconfig, realclean, stage1, stage2, stage3, stage4.
+# clean, mostlyclean, distclean, realclean, stage1, stage2, stage3, stage4.
 
 # Variables that exist for you to override.
 # See below for how to change them for certain systems.
 
-srcdir = .
+VPATH = @srcdir@
+srcdir = @srcdir@
 srcroot = $(srcdir)/..
 
-prefix = /usr/local
+target_alias = @target_alias@
+prefix = @prefix@
 
-program_transform_name =
-exec_prefix = $(prefix)
+program_transform_name = @program_transform_name@
+exec_prefix = @exec_prefix@
 bindir = $(exec_prefix)/bin
 libdir = $(exec_prefix)/lib
-tooldir = $(libdir)/$(target_alias)
+tooldir = $(exec_prefix)/$(target_alias)
 
 datadir = $(prefix)/lib
 mandir = $(prefix)/man
@@ -50,61 +52,33 @@ infodir = $(prefix)/info
 includedir = $(prefix)/include
 docdir = $(datadir)/doc
 
-VERSION=cygnus-2.2.90
+VERSION=cygnus-2.5.3
 
 SHELL = /bin/sh
 
 INSTALL = $${srcroot}/install.sh -c
 INSTALL_PROGRAM = $(INSTALL)
 INSTALL_DATA = $(INSTALL)
-INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
+INSTALL_XFORM = $(INSTALL) -t='-e $(program_transform_name)'
 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
 
+DISTSTUFF= make-gas.com m68k-parse.c
+
 AR = ar
 AR_FLAGS = qv
-BISON = bison
+BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
+BISONFLAGS =
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
 RANLIB = ranlib
+CC = @CC@
 CFLAGS = -g
 
 MAKEOVERRIDES=
 
-AS_FOR_TARGET = $${here}/as.new
-
-CC_FOR_TARGET = ` \
-  if [ -f $${here}/../gcc/Makefile ] ; then \
-    echo $${here}/../gcc/xgcc -B$${here}/../gcc/; \
-  else \
-    if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
-      echo $(CC); \
-    else \
-      t='$(program_transform_name)'; echo gcc | sed -e 's/brokensed/brokensed/' $$t; \
-    fi; \
-  fi`
-
-NM_FOR_TARGET = ` \
-  if [ -f $${here}/../binutils/Makefile ] ; then \
-    echo $${here}/../binutils/nm ; \
-  else \
-    if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
-      echo $(NM); \
-    else \
-       t='$(program_transform_name)'; echo nm | sed -e 's/brokensed/brokensed/' $$t ; \
-    fi; \
-  fi`
-
-OBJDUMP=objdump
-OBJDUMP_FOR_TARGET = ` \
-  if [ -f $${here}/../binutils/Makefile ] ; then \
-    echo $${here}/../binutils/objdump ; \
-  else \
-    if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
-      echo $(OBJDUMP); \
-    else \
-       t='$(program_transform_name)'; echo objdump | sed -e 's/brokensed/brokensed/' $$t ; \
-    fi; \
-  fi`
+EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
+          echo $${rootme}/../expect/expect ; \
+          else echo expect ; fi`
 
 FLAGS_TO_PASS = \
        "prefix=$(prefix)" \
@@ -124,14 +98,10 @@ FLAGS_TO_PASS = \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
 
-RUNTEST=runtest
-CHECKFLAGS= \
-       "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
-       "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
-       "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
-       "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
-       "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
-       "RUNTEST=$(RUNTEST)"
+RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
+               echo ${srcdir}/../dejagnu/runtest ; else echo runtest; \
+          fi`
+RUNTESTFLAGS=
 
 # Lists of files for various purposes.
 
@@ -147,7 +117,6 @@ REAL_SOURCES = \
        $(srcdir)/flonum-mult.c \
        $(srcdir)/frags.c \
        $(srcdir)/hash.c \
-       $(srcdir)/hex-value.c \
        $(srcdir)/input-file.c \
        $(srcdir)/input-scrub.c \
        $(srcdir)/literal.c \
@@ -159,8 +128,7 @@ REAL_SOURCES = \
        $(srcdir)/write.c \
        $(srcdir)/listing.c \
        $(srcdir)/ecoff.c \
-       $(srcdir)/stabs.c \
-       $(srcdir)/xmalloc.c
+       $(srcdir)/stabs.c
 
 # in an expedient order
 LINKED_SOURCES = \
@@ -189,9 +157,6 @@ REAL_HEADERS = \
        $(srcdir)/ecoff.h
 
 LINKED_HEADERS = \
-       a.out.gnu.h \
-       a.out.h \
-       host.h \
        targ-env.h \
        targ-cpu.h \
        obj-format.h \
@@ -199,7 +164,9 @@ LINKED_HEADERS = \
 
 HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
 
-#### host, target, and site specific Makefile frags come in here.
+TE_OBJS=
+
+# @target_frag@
 
 OBJS = \
        targ-cpu.o \
@@ -216,7 +183,6 @@ OBJS = \
        flonum-mult.o \
        frags.o \
        hash.o \
-       hex-value.o \
        input-file.o \
        input-scrub.o \
        literal.o \
@@ -229,18 +195,18 @@ OBJS = \
        listing.o \
        ecoff.o \
        stabs.o \
-       xmalloc.o \
+       sb.o \
+       macro.o \
+       @extra_objects@ \
        $(TE_OBJS)
 
-# These are objects we know we'll be pulling in from other directories.
-# For VMS, we have to build them explicitly.
-VMS_OTHER_OBJS = \
-       ../libiberty/obstack.o \
-       ../libiberty/strdup.o \
-       ../libiberty/strncasecmp.o \
-       ../libiberty/getruntime.o
+GASPOBJS = \
+       gasp.o \
+       macro.o \
+       sb.o \
+       hash.o
 
-all: as.new gasp.new
+all: .gdbinit as.new gasp.new
        @srcroot=`cd $(srcroot); pwd`; export srcroot; \
        (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
 
@@ -250,7 +216,7 @@ dvi info install-info clean-info:
 
 make-gas.com: stamp-mk.com
 stamp-mk.com: vmsconf.sh Makefile
-       sh $(srcdir)/vmsconf.sh $(OBJS) $(VMS_OTHER_OBJS) > new-make.com
+       sh $(srcdir)/vmsconf.sh $(OBJS) > new-make.com
        $(srcdir)/../move-if-change new-make.com $(srcdir)/make-gas.com
        touch stamp-mk.com
 
@@ -262,15 +228,13 @@ ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
 # How to link with both our special library facilities
 # and the system's installed libraries.
 
-LIBS = $(OPCODES_LIB) $(BFDLIB) $(LOCAL_LOADLIBES) \
-       ../libiberty/libiberty.a
+LIBS = @OPCODES_LIB@ @BFDLIB@ $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
 
 # Specify the directories to be searched for header files.
 # 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 -I$(srcdir)/../include -I$(srcdir)/..
-SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
+INCLUDES = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config -I$(srcdir)/../include -I$(srcdir)/.. -I$(srcdir)/../bfd
 
 # Always use -I$(srcdir)/config when compiling.
 .c.o:
@@ -283,142 +247,166 @@ SUBDIR_INCLUDES = -I.. -I$(srcdir) -I$(srcdir)/config
 # Files to be copied away after each stage in building.
 STAGESTUFF = *.o as.new gasp.new
 
-$(OBJS): $(ALL_OBJ_DEPS)
+$(OBJS): @ALL_OBJ_DEPS@
 
 as.new: $(OBJS) $(LIBS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
 
-gasp.new: gasp.o
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
+$(OBJS): config.h as.h targ-env.h obj-format.h targ-cpu.h flonum.h expr.h \
+       struc-symbol.h write.h frags.h hash.h read.h symbols.h tc.h obj.h \
+       listing.h bignum.h
+
+gasp.new: $(GASPOBJS) ../libiberty/libiberty.a
+       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new $(GASPOBJS) ../libiberty/libiberty.a $(LOADLIBES)
 
 installcheck:
        @echo No installcheck target is available yet for the GNU assembler.
 
-check: as.new
-       @(here=`pwd` ; export here ; \
-         cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
-
-config.status:
-       @echo You must configure gas.  Look at the INSTALL file for details.
-       @false
+site.exp: ./Makefile
+       @echo "Making a new config file..."
+       -@rm -f ./tmp?
+       @touch site.exp
+       -@mv site.exp site.bak
+       @echo "## these variables are automatically generated by make ##" > ./tmp0
+       @echo "# Do not edit here. If you wish to override these values," >> ./tmp0
+       @echo "# do so in the last section."                    >> ./tmp0
+       @echo set host_os @host_os@                             >> ./tmp0
+       @echo set host_alias @host_alias@                       >> ./tmp0
+       @echo set host_cpu @host_cpu@                           >> ./tmp0
+       @echo set host_vendor @host_vendor@                     >> ./tmp0
+       @echo set target_os @target_os@                         >> ./tmp0
+       @echo set target_alias @target_alias@                   >> ./tmp0
+       @echo set target_cpu @target_cpu@                       >> ./tmp0
+       @echo set target_vendor @target_vendor@                 >> ./tmp0
+       @echo set host_triplet @host@                           >> ./tmp0
+       @echo set target_triplet @target@                       >> ./tmp0
+       @echo set target_canonical @target@                     >> ./tmp0
+       @echo set srcdir ${srcdir}                              >> ./tmp0
+       @echo set exec_prefix ${exec_prefix}                    >> ./tmp0
+       @echo set objdir `pwd`                                  >> ./tmp0
+       @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
+       @sed -e '1,/^## All variables above are.*##/ d' < site.bak >> ./tmp0
+       @mv -f ./tmp0 site.exp
+
+check:  site.exp
+       if [ -d testsuite ]; then \
+         true; \
+       else \
+         mkdir testsuite; \
+       fi
+       rm -f testsuite/site.exp
+       cp site.exp testsuite/site.exp
+       rootme=`pwd`; export rootme; \
+       srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
+       cd testsuite; \
+       EXPECT=${EXPECT} ; export EXPECT ; \
+       if [ -f $${rootme}/../expect/expect ] ; then  \
+          TCL_LIBRARY=$${srcdir}/../tcl/library ; \
+          export TCL_LIBRARY ; fi ; \
+       $(RUNTEST) --tool gas --srcdir $${srcdir}/testsuite $(RUNTESTFLAGS)
+
+config.status: configure
+       if [ -r config.status ]; then \
+         sh ./config.status --recheck ; \
+       else \
+         echo You must configure gas.  Look at the INSTALL file for details. ; \
+         exit 1 ; \
+       fi
 
 config.h: config-stamp ; @true
-config-stamp: Makefile
+config-stamp: Makefile conf
        -rm -f config.new config-stamp
-       echo '#ifndef TARGET_CPU'                              > config.new
-       echo '#define TARGET_CPU       "$(target_cpu)"'       >> config.new
-       echo '#define TARGET_ALIAS     "$(target_alias)"'     >> config.new
-       echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
-       echo '#define GAS_VERSION      "$(VERSION)"'          >> config.new
-       if [ "$(defs)" != "" ]; then \
-         echo '#define $(defs)'                              >> config.new ; \
-       else true; fi
-       echo '#endif /* TARGET_CPU */'                        >> config.new
+       echo '/* config.h.  Generated automatically by make.  */' > config.new
+       echo '#ifndef GAS_VERSION'                      >> config.new
+       echo '#define GAS_VERSION "$(VERSION)"'         >> config.new
+       echo ''                                         >> config.new
+       cat conf                                        >> config.new
+       echo '#endif /* GAS_VERSION */'                 >> config.new
        $(srcdir)/../move-if-change config.new config.h
        touch config-stamp
 
 # Compiling object files from source files.
 
-gasp.o : gasp.c
-app.o : app.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
-as.o : as.c as.h host.h targ-env.h obj-format.h output-file.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h subsegs.h \
-  tc.h obj.h config.h
-atof-generic.o : atof-generic.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
-bignum-copy.o : bignum-copy.c as.h host.h \
-  targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
-cond.o : cond.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
-
-debug.o : debug.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  subsegs.h 
-expr.o : expr.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
-
-flonum-konst.o : flonum-konst.c flonum.h bignum.h 
-flonum-copy.o : flonum-copy.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
-flonum-mult.o : flonum-mult.c flonum.h bignum.h 
-frags.o : frags.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  subsegs.h  
-hash.o : hash.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h 
-hex-value.o : hex-value.c 
-input-file.o : input-file.c as.h host.h \
-   targ-env.h obj-format.h targ-cpu.h \
-   struc-symbol.h write.h flonum.h bignum.h expr.h \
-  frags.h hash.h read.h symbols.h tc.h obj.h input-file.h 
-input-scrub.o : input-scrub.c /usr/include/errno.h /usr/include/sys/errno.h \
-  as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  input-file.h 
-listing.o : listing.c as.h host.h targ-env.h flonum.h bignum.h \
-  listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
-  frags.h hash.h read.h symbols.h tc.h obj.h input-file.h subsegs.h
-literal.o : literal.c subsegs.h as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
-messages.o : messages.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
-output-file.o : output-file.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  output-file.h 
-read.o : read.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
-subsegs.o : subsegs.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  subsegs.h  
-symbols.o : symbols.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-   subsegs.h 
-write.o : write.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  subsegs.h  output-file.h 
-ecoff.o : ecoff.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  ecoff.h $(srcdir)/../include/coff/internal.h \
-  $(srcdir)/../include/coff/sym.h $(srcdir)/../include/coff/ecoff.h \
-  $(srcdir)/../include/coff/symconst.h $(srcdir)/../include/aout/stab_gnu.h
-stabs.o : stabs.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h  struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h \
-  subsegs.h $(srcdir)/../include/aout/stab_gnu.h
-xmalloc.o : xmalloc.c
-atof-targ.o : atof-targ.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
-  symbols.h tc.h obj.h 
-obj-format.o : obj-format.c as.h host.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
-  subsegs.h symbols.h tc.h obj.h  
-targ-cpu.o : targ-cpu.c config.h targ-env.h obj-format.h \
-  targ-cpu.h struc-symbol.h \
-  write.h flonum.h bignum.h expr.h frags.h hash.h read.h \
-  symbols.h tc.h obj.h $(TARG_CPU_DEPENDENTS)
+TARG_CPU_DEP_a29k    =
+TARG_CPU_DEP_alpha   =
+# start-sanitize-arc
+TARG_CPU_DEP_arc     = $(srcdir)/../include/opcode/arc.h
+# end-sanitize-arc
+TARG_CPU_DEP_arm     =
+TARG_CPU_DEP_generic =
+TARG_CPU_DEP_h8300   = $(srcdir)/../include/opcode/h8300.h
+TARG_CPU_DEP_h8500   = $(srcdir)/../opcodes/h8500-opc.h
+TARG_CPU_DEP_hppa    =
+TARG_CPU_DEP_i386    = $(srcdir)/../include/opcode/i386.h
+TARG_CPU_DEP_i860    =
+TARG_CPU_DEP_i960    =
+TARG_CPU_DEP_m68k    = $(srcdir)/../include/opcode/m68k.h \
+                       $(srcdir)/config/m68k-parse.h subsegs.h
+TARG_CPU_DEP_m88k    = $(srcdir)/config/m88k-opcode.h
+TARG_CPU_DEP_mips    = $(srcdir)/../include/opcode/mips.h
+TARG_CPU_DEP_ns32k   =
+TARG_CPU_DEP_ppc     =
+# start-sanitize-rce
+TARG_CPU_DEP_rce     = $(srcdir)/../opcodes/rce-opc.h
+# end-sanitize-rce
+TARG_CPU_DEP_sh      = $(srcdir)/../opcodes/sh-opc.h
+TARG_CPU_DEP_sparc   =
+TARG_CPU_DEP_tahoe   =
+TARG_CPU_DEP_vax     =
+TARG_CPU_DEP_w65     = $(srcdir)/../opcodes/w65-opc.h
+TARG_CPU_DEP_z8k     = $(srcdir)/../opcodes/z8k-opc.h
+
+gasp.o : gasp.c sb.h macro.h config.h
+sb.o : sb.c sb.h config.h
+macro.o : macro.c macro.h sb.h hash.h config.h
+app.o : app.c write.h
+as.o : as.c output-file.h write.h subsegs.h sb.h macro.h
+atof-generic.o : atof-generic.c
+bignum-copy.o : bignum-copy.c
+cond.o : cond.c
+debug.o : debug.c subsegs.h
+expr.o : expr.c
+flonum-konst.o : flonum-konst.c
+flonum-copy.o : flonum-copy.c
+flonum-mult.o : flonum-mult.c
+frags.o : frags.c subsegs.h
+hash.o : hash.c
+input-file.o : input-file.c input-file.h
+input-scrub.o : input-scrub.c input-file.h sb.h
+listing.o : listing.c input-file.h subsegs.h
+literal.o : literal.c subsegs.h
+messages.o : messages.c
+output-file.o : output-file.c output-file.h
+read.o : read.c sb.h macro.h
+subsegs.o : subsegs.c subsegs.h
+symbols.o : symbols.c subsegs.h
+write.o : write.c subsegs.h output-file.h
+ecoff.o : ecoff.c ecoff.h \
+       $(srcdir)/../include/coff/internal.h $(srcdir)/../include/coff/sym.h \
+       $(srcdir)/../include/coff/ecoff.h \
+       $(srcdir)/../include/coff/symconst.h \
+       $(srcdir)/../include/aout/stab_gnu.h
+stabs.o : stabs.c subsegs.h $(srcdir)/../include/aout/stab_gnu.h
+atof-targ.o : atof-targ.c
+obj-format.o : obj-format.c
+targ-cpu.o : targ-cpu.c $(TARG_CPU_DEP_@target_cpu_type@)
+
+obj-elf.o : $(srcdir)/config/obj-elf.c
+       $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-elf.c
+obj-ecoff.o : $(srcdir)/config/obj-ecoff.c
+       $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/obj-ecoff.c
+
+e-mipself.o : $(srcdir)/config/e-mipself.c
+       $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/e-mipself.c
+e-mipsecoff.o : $(srcdir)/config/e-mipsecoff.c
+       $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) $(srcdir)/config/e-mipsecoff.c
+
+# The m68k operand parser.
+
+m68k-parse.c: $(srcdir)/config/m68k-parse.y
+       $(BISON) $(BISONFLAGS) $(srcdir)/config/m68k-parse.y
+       mv -f y.tab.c m68k-parse.c
+m68k-parse.o: m68k-parse.c $(srcdir)/config/m68k-parse.h
 
 # Remake the info files.
 
@@ -427,24 +415,23 @@ doc: $(srcdir)/as.info
 $(srcdir)/as.info: $(srcdir)/doc/as.texinfo
        @(cd doc; $(MAKE) $(FLAGS_TO_PASS) as.info; mv as.info $srcdir) 
 
+diststuff: $(DISTSTUFF)
+
 clean-here:
-       -rm -f $(STAGESTUFF) core
+       -rm -f $(STAGESTUFF) core stamp-mk.com
+       -rm -rf testsuite
 
-clean: clean-here
-       @cd doc ; $(MAKE) $(FLAGS_TO_PASS) clean
-       @if [ -d testsuite ] ; then \
-         cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) clean ; \
-       else true; fi
+clean mostlyclean: clean-here
+       @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
 
 # Like clean but also delete the links made to configure gas.
 distclean: clean-here
-       @cd doc ; $(MAKE) $(FLAGS_TO_PASS) distclean
-       @if [ -d testsuite ] ; then \
-         cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) distclean ; \
-       else true; fi
-       -rm -f config.status Makefile host.h targ-env.h targ-cpu.h \
+       @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
+       -rm -f config.status Makefile targ-env.h targ-cpu.h \
                targ-cpu.c obj-format.h obj-format.c atof-targ.c TAGS \
-               config-stamp config.h
+               config-stamp config.h conf config.log config.cache .gdbinit
+realclean: clean distclean
+       -rm -rf $(DISTSTUFF)
 
 # Entry points `install', `includes' and `uninstall'.
 
@@ -453,7 +440,7 @@ install:
        srcroot=`cd $(srcroot); pwd`; export srcroot; \
        $(INSTALL_XFORM) as.new $(bindir)/as; \
        $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
-       n=`t='$(program_transform_name)'; echo as | sed -e "s/brokensed/brokensed/" $$t`; \
+       n=`echo as | sed '$(program_transform_name)'`; \
        if [ -d $(tooldir) ]; then \
          if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
          rm -f $(tooldir)/bin/as; \
@@ -461,21 +448,14 @@ install:
           || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
        else true; fi
        srcroot=`cd $(srcroot); pwd`; export srcroot; \
-       $(INSTALL_XFORM) gasp.new $(bindir)/gasp; \
-       n=`t='$(program_transform_name)'; echo gasp | sed -e "s/brokensed/brokensed/" $$t`; \
-       if [ -d $(tooldir) ]; then \
-         if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \
-         rm -f $(tooldir)/bin/gasp; \
-         ln $(bindir)/$$n $(tooldir)/bin/gasp >/dev/null 2>/dev/null \
-          || $(INSTALL_PROGRAM) gasp.new $(tooldir)/bin/gasp; \
-       else true; fi
+       $(INSTALL_XFORM) gasp.new $(bindir)/gasp
 
 # Cancel installation by deleting the installed files.
 uninstall:
-       -n=`t='$(program_transform_name)'; echo as | sed -e "s/brokensed/brokensed/" $$t`; \
+       -n=`t='$(program_transform_name)'; echo as | sed $$t`; \
        rm -f $(bindir)/$$n; \
        rm -f $(mandir)/$$n.1
-       -n=`t='$(program_transform_name)'; echo gasp | sed -e "s/brokensed/brokensed/" $$t`; \
+       -n=`t='$(program_transform_name)'; echo gasp | sed $$t`; \
        rm -f $(bindir)/$$n; \
 
 # These exist for maintenance purposes.
@@ -485,19 +465,24 @@ tags TAGS: force
 
 bootstrap: as.new force
        $(MAKE) stage1
-       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
+       rm -f stage && ln -s stage1 stage
+       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
        $(MAKE) stage2
-       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
+       rm -f stage && ln -s stage2 stage
+       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
        $(MAKE) comparison against=stage2
 
 bootstrap2: force
-       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage1/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
+       rm -f stage && ln -s stage1 stage
+       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
        $(MAKE) stage2
-       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
+       rm -f stage && ln -s stage2 stage
+       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
        $(MAKE) comparison against=stage2
 
 bootstrap3: force
-       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage2/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
+       rm -f stage && ln -s stage2 stage
+       $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= as.new gasp.new
        $(MAKE) comparison against=stage2
 
 # Copy the object files from a particular stage into a subdirectory.
@@ -518,8 +503,24 @@ stage3: force
 
 against=stage2
 
+# This rule is derived from corresponding code in the Makefile.in for gcc.
+# The "tail +16c" is to bypass headers which may include timestamps or
+# temporary assembly file names.
 comparison: force
-       for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
+       x=0 ; \
+       for file in $(STAGESTUFF) ; do \
+         tail +16c ./$$file > tmp-foo1; \
+         if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
+           if cmp tmp-foo1 tmp-foo2 ; then \
+             true ; \
+           else \
+             echo $$file differs ; \
+             x=1 ; \
+           fi ; \
+         else true; fi ; \
+       done ; \
+       exit $$x
+       -rm -f tmp-foo*
 
 de-stage1: force
        - (cd stage1 ; rm -f as ; mv -f * ..)
@@ -534,10 +535,13 @@ de-stage3: force
        - rmdir stage3
 
 #In GNU Make, ignore whether `stage*' exists.
-.PHONY: stage1 stage2 stage3 stage4 clean realclean TAGS bootstrap
+.PHONY: stage1 stage2 stage3 stage4 clean mostlyclean realclean distclean
+.PHONY: TAGS bootstrap
 
 force:
 
 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
-               $(srcdir)/configure.in
+               $(srcdir)/configure.in config.status conf.in
+       $(SHELL) ./config.status
+.gdbinit: $(srcdir)/gdbinit.in config.status
        $(SHELL) ./config.status
This page took 0.053787 seconds and 4 git commands to generate.