# 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.
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
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
RANLIB = ranlib
CC = @CC@
CFLAGS = -g
+LDFLAGS =
+HLDFLAGS = @HLDFLAGS@
+HLDENV = @HLDENV@
+RPATH_ENVVAR = @RPATH_ENVVAR@
MAKEOVERRIDES=
"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=
# 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.
$(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 \
@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 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
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 \
$(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
+ $(SHELL) config.status --recheck
config.h: config-stamp ; @true
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 subsegs.h
-TARG_CPU_DEP_m88k = $(srcdir)/config/m88k-opcode.h
-TARG_CPU_DEP_mips = $(srcdir)/../include/opcode/mips.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 sb.h macro.h config.h
$(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 -rf testsuite
+ -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) $@
# 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) $@
- -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
-maintainer-clean realclean: clean distclean
+ -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."
- -rm -rf $(DISTSTUFF)
+ @cd doc ; $(MAKE) $(FLAGS_TO_PASS) $@
+ -rm -rf $(DISTCLEAN_HERE) $(DISTSTUFF)
# Entry points `install', `includes' and `uninstall'.
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