* gdb.base/nodebug.exp: Don't try to do an inferior function
[deliverable/binutils-gdb.git] / gas / Makefile.in
index dc1d11291830949f25b6ace11415e6e06785d71f..afaa93eeba2259f6f27060fee078a950800f448c 100644 (file)
@@ -1,5 +1,6 @@
 # Makefile for GNU Assembler
-#   Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
+#   Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 1996
+#   Free Software Foundation, Inc.
 
 # This file is part of GNU GAS.
 
@@ -33,12 +34,12 @@ prefix = @prefix@
 
 program_transform_name = @program_transform_name@
 exec_prefix = @exec_prefix@
-bindir = $(exec_prefix)/bin
-libdir = $(exec_prefix)/lib
+bindir = @bindir@
+libdir = @libdir@
 tooldir = $(exec_prefix)/$(target_alias)
 
-datadir = $(prefix)/lib
-mandir = $(prefix)/man
+datadir = @datadir@
+mandir = @mandir@
 man1dir = $(mandir)/man1
 man2dir = $(mandir)/man2
 man3dir = $(mandir)/man3
@@ -48,18 +49,17 @@ man6dir = $(mandir)/man6
 man7dir = $(mandir)/man7
 man8dir = $(mandir)/man8
 man9dir = $(mandir)/man9
-infodir = $(prefix)/info
-includedir = $(prefix)/include
-docdir = $(datadir)/doc
+infodir = @infodir@
+includedir = @includedir@
 
-VERSION=cygnus-2.5.3
+VERSION=cygnus-2.7.1
 
 SHELL = /bin/sh
 
 INSTALL = $${srcroot}/install.sh -c
-INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA = $(INSTALL)
-INSTALL_XFORM = $(INSTALL) -t='-e $(program_transform_name)'
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
 
 DISTSTUFF= make-gas.com m68k-parse.c
@@ -73,9 +73,17 @@ TEXI2DVI = texi2dvi
 RANLIB = ranlib
 CC = @CC@
 CFLAGS = -g
+LDFLAGS =
+HLDFLAGS = @HLDFLAGS@
+HLDENV = @HLDENV@
+RPATH_ENVVAR = @RPATH_ENVVAR@
 
 MAKEOVERRIDES=
 
+EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
+          echo $${rootme}/../expect/expect ; \
+          else echo expect ; fi`
+
 FLAGS_TO_PASS = \
        "prefix=$(prefix)" \
        "exec_prefix=$(exec_prefix)" \
@@ -94,13 +102,10 @@ FLAGS_TO_PASS = \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
 
-RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
-               echo ${srcdir}/../dejagnu/runtest ; else echo runtest; \
+RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
+               echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
           fi`
 RUNTESTFLAGS=
-CHECKFLAGS= \
-       "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
-       "RUNTEST=$(RUNTEST)"
 
 # Lists of files for various purposes.
 
@@ -163,6 +168,8 @@ LINKED_HEADERS = \
 
 HEADERS = $(LINKED_HEADERS) $(REAL_HEADERS)
 
+TE_OBJS=
+
 # @target_frag@
 
 OBJS = \
@@ -192,9 +199,17 @@ OBJS = \
        listing.o \
        ecoff.o \
        stabs.o \
+       sb.o \
+       macro.o \
        @extra_objects@ \
        $(TE_OBJS)
 
+GASPOBJS = \
+       gasp.o \
+       macro.o \
+       sb.o \
+       hash.o
+
 all: .gdbinit as.new gasp.new
        @srcroot=`cd $(srcroot); pwd`; export srcroot; \
        (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
@@ -212,11 +227,12 @@ stamp-mk.com: vmsconf.sh Makefile
 # Now figure out from those variables how to compile and link.
 
 # This is the variable actually used when we compile.
-ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
+ALL_CFLAGS = -D_GNU_SOURCE $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
 
 # How to link with both our special library facilities
 # and the system's installed libraries.
 
+LIBDEPS = @OPCODES_DEP@ @BFDDEP@ $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
 LIBS = @OPCODES_LIB@ @BFDLIB@ $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
 
 # Specify the directories to be searched for header files.
@@ -238,30 +254,66 @@ STAGESTUFF = *.o as.new gasp.new
 
 $(OBJS): @ALL_OBJ_DEPS@
 
-as.new: $(OBJS) $(LIBS)
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
+as.new: $(OBJS) $(LIBDEPS)
+       $(HLDENV) $(CC) $(HLDFLAGS) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(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
+       listing.h bignum.h $(srcdir)/../include/libiberty.h
 
-gasp.new: gasp.o
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
+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:
-       @(here=`pwd` ; export here ; \
-         cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $(CHECKFLAGS) check)
-
-config.status: configure
-       if [ -r config.status ]; then \
-         sh ./config.status --recheck ; \
+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}/testsuite                    >> ./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 \
-         echo You must configure gas.  Look at the INSTALL file for details. ; \
-         exit 1 ; \
+         mkdir testsuite; \
        fi
+       rm -f testsuite/site.exp
+       cp site.exp testsuite/site.exp
+       rootme=`pwd`; export rootme; \
+       srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
+       $(RPATH_ENVVAR)=$$rootme/../bfd:$$rootme/../opcodes:$$$(RPATH_ENVVAR); \
+       export $(RPATH_ENVVAR); \
+       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
+       $(SHELL) config.status --recheck
 
 config.h: config-stamp ; @true
 config-stamp: Makefile conf
@@ -278,37 +330,36 @@ config-stamp: Makefile conf
 # Compiling object files from source files.
 
 TARG_CPU_DEP_a29k    =
-TARG_CPU_DEP_alpha   =
+TARG_CPU_DEP_alpha   = $(srcdir)/../include/opcode/alpha.h subsegs.h
 # start-sanitize-arc
-TARG_CPU_DEP_arc     = $(srcdir)/../include/opcode/arc.h
+TARG_CPU_DEP_arc     = $(srcdir)/../include/opcode/arc.h subsegs.h
 # end-sanitize-arc
-TARG_CPU_DEP_arm     =
+TARG_CPU_DEP_arm     = subsegs.h
 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_h8500   = $(srcdir)/../opcodes/h8500-opc.h subsegs.h
+TARG_CPU_DEP_hppa    = subsegs.h
+TARG_CPU_DEP_i386    = $(srcdir)/../include/opcode/i386.h subsegs.h
 TARG_CPU_DEP_i860    =
 TARG_CPU_DEP_i960    =
 TARG_CPU_DEP_m68k    = $(srcdir)/../include/opcode/m68k.h \
-                       $(srcdir)/config/m68k-parse.h
-TARG_CPU_DEP_m88k    = $(srcdir)/config/m88k-opcode.h
-TARG_CPU_DEP_mips    = $(srcdir)/../include/opcode/mips.h
+                       $(srcdir)/config/m68k-parse.h subsegs.h
+TARG_CPU_DEP_m88k    = $(srcdir)/config/m88k-opcode.h subsegs.h
+TARG_CPU_DEP_mips    = $(srcdir)/../include/opcode/mips.h subsegs.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_ppc     = subsegs.h
+TARG_CPU_DEP_sh      = $(srcdir)/../opcodes/sh-opc.h subsegs.h
+TARG_CPU_DEP_sparc   = subsegs.h
 TARG_CPU_DEP_tahoe   =
 TARG_CPU_DEP_vax     =
-TARG_CPU_DEP_w65     = $(srcdir)/../opcodes/w65-opc.h
+TARG_CPU_DEP_w65     = $(srcdir)/../opcodes/w65-opc.h subsegs.h
 TARG_CPU_DEP_z8k     = $(srcdir)/../opcodes/z8k-opc.h
 
-gasp.o : gasp.c config.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
+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
@@ -320,12 +371,12 @@ 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
+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
+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
@@ -363,28 +414,32 @@ 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)
+diststuff: $(DISTSTUFF) info
 
 clean-here:
        -rm -f $(STAGESTUFF) core stamp-mk.com
+       -rm -f testsuite/*.o testsuite/*.out \
+               testsuite/gas.log testsuite/gas.sum testsuite/site.exp
 
 clean mostlyclean: clean-here
        @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
-       @if [ -d testsuite ] ; then \
-         cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
-       else true; fi
 
 # Like clean but also delete the links made to configure gas.
+
+DISTCLEAN_HERE = 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 conf config.log config.cache .gdbinit \
+       testsuite/Makefile testsuite/config.status
+
 distclean: clean-here
        @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
-       @if [ -d testsuite ] ; then \
-         cd testsuite ; $(MAKE) $(FLAGS_TO_PASS) $@ ; \
-       else true; fi
-       -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 conf config.log config.cache .gdbinit
-realclean: clean distclean
-       -rm -rf $(DISTSTUFF)
+       -rm -f $(DISTCLEAN_HERE)
+
+maintainer-clean realclean: clean-here
+       @echo "This command is intended for maintainers to use;"
+       @echo "it deletes files that may require special tools to rebuild."
+       @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
+       -rm -rf $(DISTCLEAN_HERE) $(DISTSTUFF)
 
 # Entry points `install', `includes' and `uninstall'.
 
@@ -393,22 +448,14 @@ install:
        srcroot=`cd $(srcroot); pwd`; export srcroot; \
        $(INSTALL_XFORM) as.new $(bindir)/as; \
        $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
+       test -d $(tooldir) || mkdir $(tooldir); \
+       test -d $(tooldir)/bin || mkdir $(tooldir)/bin; \
        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; \
-         ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
-          || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
-       else true; fi
+       rm -f $(tooldir)/bin/as; \
+       ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
+        || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as
        srcroot=`cd $(srcroot); pwd`; export srcroot; \
-       $(INSTALL_XFORM) gasp.new $(bindir)/gasp; \
-       n=`echo gasp | sed '$(program_transform_name)' `; \
-       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:
@@ -468,7 +515,7 @@ against=stage2
 # temporary assembly file names.
 comparison: force
        x=0 ; \
-       for file in $(STAGESTUFF) ; do \
+       for file in *.o ; do \
          tail +16c ./$$file > tmp-foo1; \
          if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
            if cmp tmp-foo1 tmp-foo2 ; then \
This page took 0.028219 seconds and 4 git commands to generate.