Tue Aug 8 23:41:25 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
[deliverable/binutils-gdb.git] / gas / Makefile.in
index 29b0b2581b2078073b79bb432fedee46f177d4a5..1aaf8f24a8d0f09c5d0ad679a0cfde7d817b1bef 100644 (file)
@@ -1,4 +1,3 @@
-## @configure_input@
 # Makefile for GNU Assembler
 #   Copyright (C) 1987-1992, 1993 Free Software Foundation, Inc.
 
@@ -16,7 +15,7 @@
 
 # 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,
@@ -63,11 +62,12 @@ INSTALL_DATA = $(INSTALL)
 INSTALL_XFORM = $(INSTALL) -t='-e $(program_transform_name)'
 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
 
-DISTSTUFF= make-gas.com
+DISTSTUFF= make-gas.com m68k-parse.c
 
 AR = ar
 AR_FLAGS = qv
-BISON = bison -y
+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
@@ -94,7 +94,10 @@ FLAGS_TO_PASS = \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)"
 
-RUNTEST=runtest
+RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
+               echo ${srcdir}/../dejagnu/runtest ; else echo runtest; \
+          fi`
+RUNTESTFLAGS=
 CHECKFLAGS= \
        "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
        "RUNTEST=$(RUNTEST)"
@@ -113,7 +116,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 \
@@ -178,7 +180,6 @@ OBJS = \
        flonum-mult.o \
        frags.o \
        hash.o \
-       hex-value.o \
        input-file.o \
        input-scrub.o \
        literal.o \
@@ -191,21 +192,9 @@ OBJS = \
        listing.o \
        ecoff.o \
        stabs.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/xmalloc.o \
-       ../libiberty/xexit.o \
-       ../libiberty/obstack.o \
-       ../libiberty/strdup.o \
-       ../libiberty/strncasecmp.o \
-       ../libiberty/concat.o \
-       ../libiberty/getopt.o \
-       ../libiberty/getopt1.o \
-       ../libiberty/getruntime.o
-
 all: .gdbinit as.new gasp.new
        @srcroot=`cd $(srcroot); pwd`; export srcroot; \
        (cd doc ; $(MAKE) $(FLAGS_TO_PASS) all)
@@ -216,7 +205,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
 
@@ -234,7 +223,7 @@ LIBS = @OPCODES_LIB@ @BFDLIB@ $(LOCAL_LOADLIBES) ../libiberty/libiberty.a
 # 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)/..
+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:
@@ -252,7 +241,9 @@ $(OBJS): @ALL_OBJ_DEPS@
 as.new: $(OBJS) $(LIBS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o as.new $(OBJS) $(LIBS) $(LOADLIBES)
 
-$(OBJS): config.h
+$(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: gasp.o
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o gasp.new gasp.o $(LIBS) $(LOADLIBES)
@@ -286,105 +277,84 @@ config-stamp: Makefile conf
 
 # Compiling object files from source files.
 
+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
+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 config.h
-app.o : app.c as.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 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 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 \
-  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 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 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 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 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 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 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 \
-   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 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 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 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 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 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 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 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 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 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 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 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
-atof-targ.o : atof-targ.c as.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 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)
+app.o : app.c write.h
+as.o : as.c output-file.h write.h subsegs.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
+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
+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.y
 
 # Remake the info files.
 
@@ -531,7 +501,7 @@ de-stage3: force
 force:
 
 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) \
-               $(srcdir)/configure.in config.status
+               $(srcdir)/configure.in config.status conf.in
        $(SHELL) ./config.status
 .gdbinit: $(srcdir)/gdbinit.in config.status
        $(SHELL) ./config.status
This page took 0.02639 seconds and 4 git commands to generate.