## Process this file with automake to generate Makefile.in
|
## Process this file with automake to generate Makefile.in
|
|
|
AUTOMAKE_OPTIONS = 1.11 dejagnu foreign no-dist
|
AUTOMAKE_OPTIONS = 1.11 dejagnu foreign no-dist
|
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
|
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
|
|
|
SUBDIRS = doc po
|
SUBDIRS = doc po
|
|
|
tooldir = $(exec_prefix)/$(target_alias)
|
tooldir = $(exec_prefix)/$(target_alias)
|
|
|
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
|
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
|
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo @LEX@ ; fi`
|
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo @LEX@ ; fi`
|
|
|
# Automake 1.10+ disables lex and yacc output file regeneration if
|
# Automake 1.10+ disables lex and yacc output file regeneration if
|
# maintainer mode is disabled. Avoid this.
|
# maintainer mode is disabled. Avoid this.
|
am__skiplex =
|
am__skiplex =
|
am__skipyacc =
|
am__skipyacc =
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
WARN_CFLAGS = @WARN_CFLAGS@
|
NO_WERROR = @NO_WERROR@
|
NO_WERROR = @NO_WERROR@
|
AM_CFLAGS = $(WARN_CFLAGS)
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
TARG_CPU = @target_cpu_type@
|
TARG_CPU = @target_cpu_type@
|
TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
|
TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
|
TARG_CPU_O = tc-@target_cpu_type@.@OBJEXT@
|
TARG_CPU_O = tc-@target_cpu_type@.@OBJEXT@
|
TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
|
TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
|
OBJ_FORMAT_C = $(srcdir)/config/obj-@obj_format@.c
|
OBJ_FORMAT_C = $(srcdir)/config/obj-@obj_format@.c
|
OBJ_FORMAT_O = obj-@obj_format@.@OBJEXT@
|
OBJ_FORMAT_O = obj-@obj_format@.@OBJEXT@
|
OBJ_FORMAT_H = $(srcdir)/config/obj-@obj_format@.h
|
OBJ_FORMAT_H = $(srcdir)/config/obj-@obj_format@.h
|
TARG_ENV_H = $(srcdir)/config/te-@te_file@.h
|
TARG_ENV_H = $(srcdir)/config/te-@te_file@.h
|
ATOF_TARG_C = $(srcdir)/config/atof-@atof@.c
|
ATOF_TARG_C = $(srcdir)/config/atof-@atof@.c
|
ATOF_TARG_O = atof-@atof@.@OBJEXT@
|
ATOF_TARG_O = atof-@atof@.@OBJEXT@
|
|
|
# use @target_cpu_type@ for refering to configured target name
|
# use @target_cpu_type@ for refering to configured target name
|
IT_HDRS=itbl-parse.h $(srcdir)/itbl-ops.h
|
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.c $(srcdir)/itbl-ops.c
|
IT_DEPS=$(srcdir)/itbl-parse.y $(srcdir)/itbl-lex.l $(srcdir)/config/itbl-@target_cpu_type@.h
|
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@
|
IT_OBJS=itbl-parse.@OBJEXT@ itbl-lex.@OBJEXT@ itbl-ops.@OBJEXT@
|
|
|
|
|
# Regular source files.
|
# Regular source files.
|
|
|
GAS_CFILES = \
|
GAS_CFILES = \
|
app.c \
|
app.c \
|
as.c \
|
as.c \
|
atof-generic.c \
|
atof-generic.c \
|
compress-debug.c \
|
compress-debug.c \
|
cond.c \
|
cond.c \
|
depend.c \
|
depend.c \
|
dwarf2dbg.c \
|
dwarf2dbg.c \
|
dw2gencfi.c \
|
dw2gencfi.c \
|
ecoff.c \
|
ecoff.c \
|
ehopt.c \
|
ehopt.c \
|
expr.c \
|
expr.c \
|
flonum-copy.c \
|
flonum-copy.c \
|
flonum-konst.c \
|
flonum-konst.c \
|
flonum-mult.c \
|
flonum-mult.c \
|
frags.c \
|
frags.c \
|
hash.c \
|
hash.c \
|
input-file.c \
|
input-file.c \
|
input-scrub.c \
|
input-scrub.c \
|
listing.c \
|
listing.c \
|
literal.c \
|
literal.c \
|
macro.c \
|
macro.c \
|
messages.c \
|
messages.c \
|
output-file.c \
|
output-file.c \
|
read.c \
|
read.c \
|
remap.c \
|
remap.c \
|
sb.c \
|
sb.c \
|
stabs.c \
|
stabs.c \
|
subsegs.c \
|
subsegs.c \
|
symbols.c \
|
symbols.c \
|
write.c
|
write.c
|
|
|
CFILES = $(GAS_CFILES) itbl-ops.c cgen.c
|
CFILES = $(GAS_CFILES) itbl-ops.c cgen.c
|
|
|
HFILES = \
|
HFILES = \
|
as.h \
|
as.h \
|
asintl.h \
|
asintl.h \
|
bignum.h \
|
bignum.h \
|
bit_fix.h \
|
bit_fix.h \
|
cgen.h \
|
cgen.h \
|
compress-debug.h \
|
compress-debug.h \
|
dwarf2dbg.h \
|
dwarf2dbg.h \
|
dw2gencfi.h \
|
dw2gencfi.h \
|
ecoff.h \
|
ecoff.h \
|
emul-target.h \
|
emul-target.h \
|
emul.h \
|
emul.h \
|
expr.h \
|
expr.h \
|
flonum.h \
|
flonum.h \
|
frags.h \
|
frags.h \
|
hash.h \
|
hash.h \
|
input-file.h \
|
input-file.h \
|
itbl-lex.h \
|
itbl-lex.h \
|
itbl-ops.h \
|
itbl-ops.h \
|
listing.h \
|
listing.h \
|
macro.h \
|
macro.h \
|
obj.h \
|
obj.h \
|
output-file.h \
|
output-file.h \
|
read.h \
|
read.h \
|
sb.h \
|
sb.h \
|
struc-symbol.h \
|
struc-symbol.h \
|
subsegs.h \
|
subsegs.h \
|
symbols.h \
|
symbols.h \
|
tc.h \
|
tc.h \
|
write.h
|
write.h
|
|
|
# CPU files in config.
|
# CPU files in config.
|
|
|
TARGET_CPU_CFILES = \
|
TARGET_CPU_CFILES = \
|
config/tc-alpha.c \
|
config/tc-alpha.c \
|
config/tc-arc.c \
|
config/tc-arc.c \
|
config/tc-arm.c \
|
config/tc-arm.c \
|
config/tc-avr.c \
|
config/tc-avr.c \
|
config/tc-bfin.c \
|
config/tc-bfin.c \
|
config/tc-cr16.c \
|
config/tc-cr16.c \
|
config/tc-cris.c \
|
config/tc-cris.c \
|
config/tc-crx.c \
|
config/tc-crx.c \
|
config/tc-d10v.c \
|
config/tc-d10v.c \
|
config/tc-d30v.c \
|
config/tc-d30v.c \
|
config/tc-dlx.c \
|
config/tc-dlx.c \
|
|
config/tc-epiphany.c \
|
config/tc-fr30.c \
|
config/tc-fr30.c \
|
config/tc-frv.c \
|
config/tc-frv.c \
|
config/tc-h8300.c \
|
config/tc-h8300.c \
|
config/tc-hppa.c \
|
config/tc-hppa.c \
|
config/tc-ia64.c \
|
config/tc-ia64.c \
|
config/tc-i370.c \
|
config/tc-i370.c \
|
config/tc-i386.c \
|
config/tc-i386.c \
|
config/tc-i860.c \
|
config/tc-i860.c \
|
config/tc-i960.c \
|
config/tc-i960.c \
|
config/tc-ip2k.c \
|
config/tc-ip2k.c \
|
config/tc-iq2000.c \
|
config/tc-iq2000.c \
|
config/tc-lm32.c \
|
config/tc-lm32.c \
|
config/tc-m32c.c \
|
config/tc-m32c.c \
|
config/tc-m32r.c \
|
config/tc-m32r.c \
|
config/tc-m68hc11.c \
|
config/tc-m68hc11.c \
|
config/tc-m68k.c \
|
config/tc-m68k.c \
|
config/tc-mcore.c \
|
config/tc-mcore.c \
|
config/tc-mep.c \
|
config/tc-mep.c \
|
config/tc-microblaze.c \
|
config/tc-microblaze.c \
|
config/tc-mips.c \
|
config/tc-mips.c \
|
config/tc-mmix.c \
|
config/tc-mmix.c \
|
config/tc-mn10200.c \
|
config/tc-mn10200.c \
|
config/tc-mn10300.c \
|
config/tc-mn10300.c \
|
config/tc-moxie.c \
|
config/tc-moxie.c \
|
config/tc-msp430.c \
|
config/tc-msp430.c \
|
config/tc-mt.c \
|
config/tc-mt.c \
|
config/tc-ns32k.c \
|
config/tc-ns32k.c \
|
config/tc-open8.c \
|
config/tc-open8.c \
|
config/tc-openrisc.c \
|
config/tc-openrisc.c \
|
config/tc-or32.c \
|
config/tc-or32.c \
|
config/tc-pdp11.c \
|
config/tc-pdp11.c \
|
config/tc-pj.c \
|
config/tc-pj.c \
|
config/tc-ppc.c \
|
config/tc-ppc.c \
|
|
config/tc-rl78.c \
|
config/tc-rx.c \
|
config/tc-rx.c \
|
config/tc-s390.c \
|
config/tc-s390.c \
|
config/tc-score.c \
|
config/tc-score.c \
|
config/tc-sh.c \
|
config/tc-sh.c \
|
config/tc-sh64.c \
|
config/tc-sh64.c \
|
config/tc-sparc.c \
|
config/tc-sparc.c \
|
config/tc-spu.c \
|
config/tc-spu.c \
|
config/tc-tic30.c \
|
config/tc-tic30.c \
|
config/tc-tic4x.c \
|
config/tc-tic4x.c \
|
config/tc-tic54x.c \
|
config/tc-tic54x.c \
|
config/tc-tic6x.c \
|
config/tc-tic6x.c \
|
config/tc-tilegx.c \
|
config/tc-tilegx.c \
|
config/tc-tilepro.c \
|
config/tc-tilepro.c \
|
config/tc-vax.c \
|
config/tc-vax.c \
|
config/tc-v850.c \
|
config/tc-v850.c \
|
config/tc-xstormy16.c \
|
config/tc-xstormy16.c \
|
config/tc-xc16x.c \
|
config/tc-xc16x.c \
|
config/tc-xtensa.c \
|
config/tc-xtensa.c \
|
config/tc-z80.c \
|
config/tc-z80.c \
|
config/tc-z8k.c \
|
config/tc-z8k.c \
|
config/xtensa-relax.c
|
config/xtensa-relax.c
|
|
|
TARGET_CPU_HFILES = \
|
TARGET_CPU_HFILES = \
|
config/tc-alpha.h \
|
config/tc-alpha.h \
|
config/tc-arc.h \
|
config/tc-arc.h \
|
config/tc-arm.h \
|
config/tc-arm.h \
|
config/tc-avr.h \
|
config/tc-avr.h \
|
config/tc-bfin.h \
|
config/tc-bfin.h \
|
config/tc-cr16.h \
|
config/tc-cr16.h \
|
config/tc-cris.h \
|
config/tc-cris.h \
|
config/tc-crx.h \
|
config/tc-crx.h \
|
config/tc-d10v.h \
|
config/tc-d10v.h \
|
config/tc-d30v.h \
|
config/tc-d30v.h \
|
config/tc-dlx.h \
|
config/tc-dlx.h \
|
|
config/tc-epiphany.h \
|
config/tc-fr30.h \
|
config/tc-fr30.h \
|
config/tc-frv.h \
|
config/tc-frv.h \
|
config/tc-h8300.h \
|
config/tc-h8300.h \
|
config/tc-hppa.h \
|
config/tc-hppa.h \
|
config/tc-ia64.h \
|
config/tc-ia64.h \
|
config/tc-i370.h \
|
config/tc-i370.h \
|
config/tc-i386.h \
|
config/tc-i386.h \
|
config/tc-i860.h \
|
config/tc-i860.h \
|
config/tc-i960.h \
|
config/tc-i960.h \
|
config/tc-ip2k.h \
|
config/tc-ip2k.h \
|
config/tc-iq2000.h \
|
config/tc-iq2000.h \
|
config/tc-lm32.h \
|
config/tc-lm32.h \
|
config/tc-m32c.h \
|
config/tc-m32c.h \
|
config/tc-m32r.h \
|
config/tc-m32r.h \
|
config/tc-m68hc11.h \
|
config/tc-m68hc11.h \
|
config/tc-m68k.h \
|
config/tc-m68k.h \
|
config/tc-mcore.h \
|
config/tc-mcore.h \
|
config/tc-mep.h \
|
config/tc-mep.h \
|
config/tc-microblaze.h \
|
config/tc-microblaze.h \
|
config/tc-mips.h \
|
config/tc-mips.h \
|
config/tc-mmix.h \
|
config/tc-mmix.h \
|
config/tc-mn10200.h \
|
config/tc-mn10200.h \
|
config/tc-mn10300.h \
|
config/tc-mn10300.h \
|
config/tc-msp430.h \
|
config/tc-msp430.h \
|
config/tc-mt.h \
|
config/tc-mt.h \
|
config/tc-ns32k.h \
|
config/tc-ns32k.h \
|
config/tc-open8.h \
|
config/tc-open8.h \
|
config/tc-openrisc.h \
|
config/tc-openrisc.h \
|
config/tc-or32.h \
|
config/tc-or32.h \
|
config/tc-pdp11.h \
|
config/tc-pdp11.h \
|
config/tc-pj.h \
|
config/tc-pj.h \
|
config/tc-ppc.h \
|
config/tc-ppc.h \
|
|
config/tc-rl78.h \
|
config/tc-rx.h \
|
config/tc-rx.h \
|
config/tc-s390.h \
|
config/tc-s390.h \
|
config/tc-score.h \
|
config/tc-score.h \
|
config/tc-sh.h \
|
config/tc-sh.h \
|
config/tc-sh64.h \
|
config/tc-sh64.h \
|
config/tc-sparc.h \
|
config/tc-sparc.h \
|
config/tc-spu.h \
|
config/tc-spu.h \
|
config/tc-tic30.h \
|
config/tc-tic30.h \
|
config/tc-tic4x.h \
|
config/tc-tic4x.h \
|
config/tc-tic54x.h \
|
config/tc-tic54x.h \
|
config/tc-tic6x.h \
|
config/tc-tic6x.h \
|
config/tc-tilegx.h \
|
config/tc-tilegx.h \
|
config/tc-tilepro.h \
|
config/tc-tilepro.h \
|
config/tc-vax.h \
|
config/tc-vax.h \
|
config/tc-v850.h \
|
config/tc-v850.h \
|
config/tc-xstormy16.h \
|
config/tc-xstormy16.h \
|
config/tc-xc16x.h \
|
config/tc-xc16x.h \
|
config/tc-xtensa.h \
|
config/tc-xtensa.h \
|
config/tc-z80.h \
|
config/tc-z80.h \
|
config/tc-z8k.h \
|
config/tc-z8k.h \
|
config/xtensa-relax.h
|
config/xtensa-relax.h
|
|
|
# OBJ files in config
|
# OBJ files in config
|
|
|
OBJ_FORMAT_CFILES = \
|
OBJ_FORMAT_CFILES = \
|
config/obj-aout.c \
|
config/obj-aout.c \
|
config/obj-coff.c \
|
config/obj-coff.c \
|
config/obj-ecoff.c \
|
config/obj-ecoff.c \
|
config/obj-elf.c \
|
config/obj-elf.c \
|
config/obj-evax.c \
|
config/obj-evax.c \
|
config/obj-fdpicelf.c \
|
config/obj-fdpicelf.c \
|
config/obj-macho.c \
|
config/obj-macho.c \
|
config/obj-multi.c \
|
config/obj-multi.c \
|
config/obj-som.c
|
config/obj-som.c
|
|
|
OBJ_FORMAT_HFILES = \
|
OBJ_FORMAT_HFILES = \
|
config/obj-aout.h \
|
config/obj-aout.h \
|
config/obj-coff.h \
|
config/obj-coff.h \
|
config/obj-ecoff.h \
|
config/obj-ecoff.h \
|
config/obj-elf.h \
|
config/obj-elf.h \
|
config/obj-evax.h \
|
config/obj-evax.h \
|
config/obj-fdpicelf.h \
|
config/obj-fdpicelf.h \
|
config/obj-macho.h \
|
config/obj-macho.h \
|
config/obj-multi.h \
|
config/obj-multi.h \
|
config/obj-som.h
|
config/obj-som.h
|
|
|
# Emulation header files in config
|
# Emulation header files in config
|
|
|
TARG_ENV_HFILES = \
|
TARG_ENV_HFILES = \
|
config/te-386bsd.h \
|
config/te-386bsd.h \
|
config/te-aix5.h \
|
config/te-aix5.h \
|
config/te-armeabi.h \
|
config/te-armeabi.h \
|
config/te-armlinuxeabi.h \
|
config/te-armlinuxeabi.h \
|
config/te-dynix.h \
|
config/te-dynix.h \
|
config/te-epoc-pe.h \
|
config/te-epoc-pe.h \
|
config/te-freebsd.h \
|
config/te-freebsd.h \
|
config/te-generic.h \
|
config/te-generic.h \
|
config/te-gnu.h \
|
config/te-gnu.h \
|
config/te-go32.h \
|
config/te-go32.h \
|
config/te-hppa.h \
|
config/te-hppa.h \
|
config/te-hppa64.h \
|
config/te-hppa64.h \
|
config/te-hppalinux64.h \
|
config/te-hppalinux64.h \
|
config/te-i386aix.h \
|
config/te-i386aix.h \
|
config/te-ia64aix.h \
|
config/te-ia64aix.h \
|
config/te-interix.h \
|
config/te-interix.h \
|
config/te-lnews.h \
|
config/te-lnews.h \
|
config/te-lynx.h \
|
config/te-lynx.h \
|
config/te-mach.h \
|
config/te-mach.h \
|
config/te-macos.h \
|
config/te-macos.h \
|
config/te-nbsd.h \
|
config/te-nbsd.h \
|
config/te-nbsd532.h \
|
config/te-nbsd532.h \
|
config/te-netware.h \
|
config/te-netware.h \
|
config/te-pc532mach.h \
|
config/te-pc532mach.h \
|
config/te-pe.h \
|
config/te-pe.h \
|
config/te-psos.h \
|
config/te-psos.h \
|
config/te-riscix.h \
|
config/te-riscix.h \
|
config/te-solaris.h \
|
config/te-solaris.h \
|
config/te-sparcaout.h \
|
config/te-sparcaout.h \
|
config/te-sun3.h \
|
config/te-sun3.h \
|
config/te-svr4.h \
|
config/te-svr4.h \
|
config/te-symbian.h \
|
config/te-symbian.h \
|
config/te-tmips.h \
|
config/te-tmips.h \
|
config/te-vxworks.h \
|
config/te-vxworks.h \
|
config/te-wince-pe.h
|
config/te-wince-pe.h
|
|
|
TARG_ENV_CFILES = \
|
TARG_ENV_CFILES = \
|
config/te-vms.c
|
config/te-vms.c
|
|
|
# Multi files in config
|
# Multi files in config
|
|
|
MULTI_CFILES = \
|
MULTI_CFILES = \
|
config/e-crisaout.c \
|
config/e-crisaout.c \
|
config/e-criself.c \
|
config/e-criself.c \
|
config/e-i386aout.c \
|
config/e-i386aout.c \
|
config/e-i386coff.c \
|
config/e-i386coff.c \
|
config/e-i386elf.c \
|
config/e-i386elf.c \
|
config/e-mipsecoff.c \
|
config/e-mipsecoff.c \
|
config/e-mipself.c
|
config/e-mipself.c
|
|
|
CONFIG_ATOF_CFILES = \
|
CONFIG_ATOF_CFILES = \
|
config/atof-ieee.c \
|
config/atof-ieee.c \
|
config/atof-vax.c
|
config/atof-vax.c
|
|
|
POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) \
|
POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) \
|
$(TARG_ENV_HFILES) $(TARG_ENV_CFILES) $(OBJ_FORMAT_HFILES) \
|
$(TARG_ENV_HFILES) $(TARG_ENV_CFILES) $(OBJ_FORMAT_HFILES) \
|
$(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \
|
$(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \
|
$(HFILES) $(CFILES)
|
$(HFILES) $(CFILES)
|
po/POTFILES.in: @MAINT@ Makefile
|
po/POTFILES.in: @MAINT@ Makefile
|
for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
|
for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
|
|
# Note: GASP is now deprecated and has been removed. It is still
|
# Note: GASP is now deprecated and has been removed. It is still
|
# available in the CVS archive or older binutils releases if it is needed.
|
# available in the CVS archive or older binutils releases if it is needed.
|
noinst_PROGRAMS = as-new
|
noinst_PROGRAMS = as-new
|
noinst_SCRIPTS = $(GDBINIT)
|
noinst_SCRIPTS = $(GDBINIT)
|
EXTRA_SCRIPTS = .gdbinit
|
EXTRA_SCRIPTS = .gdbinit
|
|
|
EXTRA_DIST = m68k-parse.c itbl-parse.c itbl-parse.h itbl-lex.c \
|
EXTRA_DIST = m68k-parse.c itbl-parse.c itbl-parse.h itbl-lex.c \
|
bfin-parse.c bfin-parse.h bfin-lex.c \
|
bfin-parse.c bfin-parse.h bfin-lex.c \
|
|
rl78-parse.c rl78-parse.h \
|
rx-parse.c rx-parse.h
|
rx-parse.c rx-parse.h
|
|
|
diststuff: $(EXTRA_DIST) info
|
diststuff: $(EXTRA_DIST) info
|
|
|
DISTCLEANFILES = targ-cpu.h obj-format.h targ-env.h itbl-cpu.h cgen-desc.h
|
DISTCLEANFILES = targ-cpu.h obj-format.h targ-env.h itbl-cpu.h cgen-desc.h
|
|
|
# Now figure out from those variables how to compile and link.
|
# Now figure out from those variables how to compile and link.
|
|
|
BASEDIR = $(srcdir)/..
|
BASEDIR = $(srcdir)/..
|
BFDDIR = $(BASEDIR)/bfd
|
BFDDIR = $(BASEDIR)/bfd
|
INCDIR = $(BASEDIR)/include
|
INCDIR = $(BASEDIR)/include
|
|
|
# This is the variable actually used when we compile.
|
# This is the variable actually used when we compile.
|
# Specify the directories to be searched for header files.
|
# Specify the directories to be searched for header files.
|
# Both . and srcdir are used, in that order,
|
# Both . and srcdir are used, in that order,
|
# so that tm.h and config.h will be found in the compilation
|
# so that tm.h and config.h will be found in the compilation
|
# subdirectory rather than in the source directory.
|
# subdirectory rather than in the source directory.
|
AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \
|
AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \
|
-I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ \
|
-I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ \
|
-DLOCALEDIR="\"$(datadir)/locale\""
|
-DLOCALEDIR="\"$(datadir)/locale\""
|
|
|
# How to link with both our special library facilities
|
# How to link with both our special library facilities
|
# and the system's installed libraries.
|
# and the system's installed libraries.
|
|
|
GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a
|
GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a
|
|
|
# Files to be copied away after each stage in building.
|
# Files to be copied away after each stage in building.
|
STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS)
|
STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS)
|
|
|
as_new_SOURCES = $(GAS_CFILES)
|
as_new_SOURCES = $(GAS_CFILES)
|
as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
|
as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
|
$(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM)
|
$(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM)
|
as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
|
as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
|
$(extra_objects) $(GASLIBS) $(LIBINTL_DEP)
|
$(extra_objects) $(GASLIBS) $(LIBINTL_DEP)
|
EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
|
EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
|
$(TARGET_CPU_HFILES) $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES) \
|
$(TARGET_CPU_HFILES) $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES) \
|
$(TARG_ENV_CFILES) $(CONFIG_ATOF_CFILES) $(MULTI_CFILES)
|
$(TARG_ENV_CFILES) $(CONFIG_ATOF_CFILES) $(MULTI_CFILES)
|
|
|
EXPECT = expect
|
EXPECT = expect
|
RUNTEST = runtest
|
RUNTEST = runtest
|
RUNTESTFLAGS=
|
RUNTESTFLAGS=
|
|
|
check-DEJAGNU: site.exp
|
check-DEJAGNU: site.exp
|
if [ -d testsuite ]; then \
|
if [ -d testsuite ]; then \
|
true; \
|
true; \
|
else \
|
else \
|
mkdir testsuite; \
|
mkdir testsuite; \
|
fi
|
fi
|
rm -f testsuite/site.exp
|
rm -f testsuite/site.exp
|
cp site.exp testsuite/site.exp
|
cp site.exp testsuite/site.exp
|
rootme=`pwd`; export rootme; \
|
rootme=`pwd`; export rootme; \
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
EXPECT=${EXPECT} ; export EXPECT ; \
|
runtest=$(RUNTEST); \
|
runtest=$(RUNTEST); \
|
cd testsuite; \
|
cd testsuite; \
|
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
|
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
|
$$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
|
$$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
|
$(RUNTESTFLAGS); \
|
$(RUNTESTFLAGS); \
|
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
|
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
|
fi
|
fi
|
|
|
# The m68k operand parser.
|
# The m68k operand parser.
|
|
|
EXTRA_as_new_SOURCES += config/m68k-parse.y config/bfin-parse.y
|
EXTRA_as_new_SOURCES += config/m68k-parse.y config/bfin-parse.y
|
|
|
# If m68k-parse.y is in a different directory, then ylwrap will use an
|
# If m68k-parse.y is in a different directory, then ylwrap will use an
|
# absolute path when it invokes yacc, which will cause yacc to put the
|
# absolute path when it invokes yacc, which will cause yacc to put the
|
# absolute path into the generated file. That's a pain when it comes
|
# absolute path into the generated file. That's a pain when it comes
|
# to generating snapshots, because it introduces spurious diffs.
|
# to generating snapshots, because it introduces spurious diffs.
|
# Since when we make the snapshots $(srcdir) = ".", we check for that
|
# Since when we make the snapshots $(srcdir) = ".", we check for that
|
# case and handle it differently. This means that anybody who
|
# case and handle it differently. This means that anybody who
|
# configures with $(srcdir) = "." will have to set their path in the
|
# configures with $(srcdir) = "." will have to set their path in the
|
# debugger if they want to debug m68k-parse.y. This is bad, but on
|
# debugger if they want to debug m68k-parse.y. This is bad, but on
|
# the other hand it's good that people who use the prebuilt
|
# the other hand it's good that people who use the prebuilt
|
# m68k-parse.c don't get a spurious absolute path.
|
# m68k-parse.c don't get a spurious absolute path.
|
m68k-parse.c: $(srcdir)/config/m68k-parse.y
|
m68k-parse.c: $(srcdir)/config/m68k-parse.y
|
f=$(srcdir)/config/m68k-parse.y; \
|
f=$(srcdir)/config/m68k-parse.y; \
|
if [ $$f = "./config/m68k-parse.y" ]; then \
|
if [ $$f = "./config/m68k-parse.y" ]; then \
|
ln -s config/m68k-parse.y . > /dev/null 2>/dev/null || \
|
ln -s config/m68k-parse.y . > /dev/null 2>/dev/null || \
|
ln config/m68k-parse.y . > /dev/null 2>/dev/null || \
|
ln config/m68k-parse.y . > /dev/null 2>/dev/null || \
|
cp config/m68k-parse.y . >/dev/null 2>/dev/null; \
|
cp config/m68k-parse.y . >/dev/null 2>/dev/null; \
|
f=m68k-parse.y; \
|
f=m68k-parse.y; \
|
else true; fi; \
|
else true; fi; \
|
$(SHELL) $(YLWRAP) $$f y.tab.c m68k-parse.c -- $(YACCCOMPILE); \
|
$(SHELL) $(YLWRAP) $$f y.tab.c m68k-parse.c -- $(YACCCOMPILE); \
|
if [ $$f = "m68k-parse.y" ]; then \
|
if [ $$f = "m68k-parse.y" ]; then \
|
rm -f m68k-parse.y; \
|
rm -f m68k-parse.y; \
|
else true; fi
|
else true; fi
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
# yacc will produce working code which contain compile time warnings.
|
# yacc will produce working code which contain compile time warnings.
|
m68k-parse.@OBJEXT@: m68k-parse.c
|
m68k-parse.@OBJEXT@: m68k-parse.c
|
if am__fastdepCC
|
if am__fastdepCC
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR)
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR)
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
else
|
else
|
if AMDEP
|
if AMDEP
|
source='m68k-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
source='m68k-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
endif
|
endif
|
$(COMPILE) -c `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR)
|
$(COMPILE) -c `test -f m68k-parse.c || echo $(srcdir)/`m68k-parse.c $(NO_WERROR)
|
endif
|
endif
|
|
|
# Don't let the .y.h rule clobber m68k-parse.h.
|
# Don't let the .y.h rule clobber m68k-parse.h.
|
m68k-parse.h: ; @true
|
m68k-parse.h: ; @true
|
$(srcdir)/config/m68k-parse.h: ; @true
|
$(srcdir)/config/m68k-parse.h: ; @true
|
|
|
bfin-parse.c: $(srcdir)/config/bfin-parse.y
|
bfin-parse.c: $(srcdir)/config/bfin-parse.y
|
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ;
|
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c bfin-parse.c y.tab.h bfin-parse.h -- $(YACCCOMPILE) -d ;
|
bfin-parse.h: bfin-parse.c
|
bfin-parse.h: bfin-parse.c
|
bfin-parse.@OBJEXT@: bfin-parse.c \
|
bfin-parse.@OBJEXT@: bfin-parse.c \
|
$(srcdir)/config/bfin-aux.h $(srcdir)/config/bfin-defs.h \
|
$(srcdir)/config/bfin-aux.h $(srcdir)/config/bfin-defs.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/bfin.h $(BFDDIR)/libbfd.h
|
|
|
bfin-parse.h: ; @true
|
bfin-parse.h: ; @true
|
$(srcdir)/config/bfin-parse.h: ; @true
|
$(srcdir)/config/bfin-parse.h: ; @true
|
|
|
bfin-lex.c: $(srcdir)/config/bfin-lex.l
|
bfin-lex.c: $(srcdir)/config/bfin-lex.l
|
$(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c bfin-lex.c -- $(LEXCOMPILE)
|
$(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.@OBJEXT@: bfin-lex.c bfin-parse.h $(srcdir)/config/bfin-defs.h
|
if am__fastdepCC
|
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 $@ `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
else
|
else
|
if AMDEP
|
if AMDEP
|
source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
source='bfin-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
endif
|
endif
|
$(COMPILE) -c `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
$(COMPILE) -c `test -f bfin-lex.c || echo $(srcdir)/`bfin-lex.c $(NO_WERROR)
|
endif
|
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
|
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 ;
|
$(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
|
rx-parse.h: rx-parse.c
|
rx-parse.@OBJEXT@: rx-parse.c rx-parse.h $(srcdir)/config/rx-defs.h \
|
rx-parse.@OBJEXT@: rx-parse.c rx-parse.h $(srcdir)/config/rx-defs.h \
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/rx.h $(BFDDIR)/libbfd.h
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/rx.h $(BFDDIR)/libbfd.h
|
|
|
rx-defs.h: ; @true
|
rx-defs.h: ; @true
|
$(srcdir)/config/rx-defs.h: ; @true
|
$(srcdir)/config/rx-defs.h: ; @true
|
|
|
# The instruction table specification lexical analyzer and parser.
|
# The instruction table specification lexical analyzer and parser.
|
|
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
# yacc will produce working code which contain compile time warnings.
|
# yacc will produce working code which contain compile time warnings.
|
itbl-lex.@OBJEXT@: itbl-lex.c itbl-parse.h
|
itbl-lex.@OBJEXT@: itbl-lex.c itbl-parse.h
|
if am__fastdepCC
|
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 $@ `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
else
|
else
|
if AMDEP
|
if AMDEP
|
source='itbl-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
source='itbl-lex.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
endif
|
endif
|
$(COMPILE) -c `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
$(COMPILE) -c `test -f itbl-lex.c || echo $(srcdir)/`itbl-lex.c $(NO_WERROR)
|
endif
|
endif
|
|
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
# Disable -Werror, if it has been enabled, since old versions of bison/
|
# yacc will produce working code which contain compile time warnings.
|
# yacc will produce working code which contain compile time warnings.
|
itbl-parse.@OBJEXT@: itbl-parse.c
|
itbl-parse.@OBJEXT@: itbl-parse.c
|
if am__fastdepCC
|
if am__fastdepCC
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
else
|
else
|
if AMDEP
|
if AMDEP
|
source='itbl-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
source='itbl-parse.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
endif
|
endif
|
$(COMPILE) -c `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
|
$(COMPILE) -c `test -f itbl-parse.c || echo $(srcdir)/`itbl-parse.c $(NO_WERROR)
|
endif
|
endif
|
|
|
itbl-parse.c: $(srcdir)/itbl-parse.y
|
itbl-parse.c: $(srcdir)/itbl-parse.y
|
$(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d
|
$(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c itbl-parse.c y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d
|
|
|
itbl-parse.h: itbl-parse.c ; @true
|
itbl-parse.h: itbl-parse.c ; @true
|
|
|
itbl-ops.@OBJEXT@: itbl-parse.h
|
itbl-ops.@OBJEXT@: itbl-parse.h
|
|
|
# stand-alone itbl assembler & disassembler
|
# stand-alone itbl assembler & disassembler
|
|
|
EXTRA_PROGRAMS = itbl-test
|
EXTRA_PROGRAMS = itbl-test
|
itbl_test_SOURCES = itbl-parse.y itbl-lex.l
|
itbl_test_SOURCES = itbl-parse.y itbl-lex.l
|
itbl_test_LDADD = itbl-tops.@OBJEXT@ itbl-test.@OBJEXT@ $(GASLIBS) @LEXLIB@
|
itbl_test_LDADD = itbl-tops.@OBJEXT@ itbl-test.@OBJEXT@ $(GASLIBS) @LEXLIB@
|
|
|
itbl-tops.@OBJEXT@: itbl-ops.c itbl-parse.h
|
itbl-tops.@OBJEXT@: itbl-ops.c itbl-parse.h
|
if am__fastdepCC
|
if am__fastdepCC
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -o $@ -c -DSTAND_ALONE $(srcdir)/itbl-ops.c
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -o $@ -c -DSTAND_ALONE $(srcdir)/itbl-ops.c
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
else
|
else
|
if AMDEP
|
if AMDEP
|
source='itbl-ops.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
source='itbl-ops.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
endif
|
endif
|
$(COMPILE) -o $@ -DSTAND_ALONE -c $(srcdir)/itbl-ops.c
|
$(COMPILE) -o $@ -DSTAND_ALONE -c $(srcdir)/itbl-ops.c
|
endif
|
endif
|
|
|
itbl-test.@OBJEXT@: $(srcdir)/testsuite/gas/all/itbl-test.c
|
itbl-test.@OBJEXT@: $(srcdir)/testsuite/gas/all/itbl-test.c
|
if am__fastdepCC
|
if am__fastdepCC
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
|
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
else
|
else
|
if AMDEP
|
if AMDEP
|
source='itbl-test.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
source='itbl-test.c' object='$@' libtool=no @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
endif
|
endif
|
$(COMPILE) -c -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
|
$(COMPILE) -c -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
|
endif
|
endif
|
|
|
# CGEN interface.
|
# CGEN interface.
|
|
|
CGEN_CPU_PREFIX = @cgen_cpu_prefix@
|
CGEN_CPU_PREFIX = @cgen_cpu_prefix@
|
|
|
cgen.@OBJEXT@: cgen.c cgen.h cgen-desc.h subsegs.h \
|
cgen.@OBJEXT@: cgen.c cgen.h cgen-desc.h subsegs.h \
|
$(INCDIR)/obstack.h $(INCDIR)/opcode/cgen.h \
|
$(INCDIR)/obstack.h $(INCDIR)/opcode/cgen.h \
|
$(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-desc.h \
|
$(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-desc.h \
|
$(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-opc.h
|
$(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-opc.h
|
|
|
# Remake the info files.
|
# Remake the info files.
|
|
|
MOSTLYCLEANFILES = $(STAGESTUFF) core \
|
MOSTLYCLEANFILES = $(STAGESTUFF) core \
|
testsuite/*.@OBJEXT@ testsuite/*.out 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
|
testsuite/site.exp site.bak site.exp stage stage1 stage2
|
|
|
.PHONY: install-exec-local install-data-local
|
.PHONY: install-exec-local install-data-local
|
.PHONY: install-exec-bindir install-exec-tooldir
|
.PHONY: install-exec-bindir install-exec-tooldir
|
|
|
install-exec-local: install-exec-bindir @install_tooldir@
|
install-exec-local: install-exec-bindir @install_tooldir@
|
|
|
install-exec-bindir: $(noinst_PROGRAMS)
|
install-exec-bindir: $(noinst_PROGRAMS)
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
|
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
|
if test -f $$p; then \
|
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)/'`"; \
|
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)/'`; \
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
else :; fi; \
|
else :; fi; \
|
done
|
done
|
|
|
install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS)
|
install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS)
|
$(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
|
$(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
|
n=`echo as | sed '$(transform)'`; \
|
n=`echo as | sed '$(transform)'`; \
|
if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \
|
if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \
|
rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
|
rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
|
ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
|
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); \
|
|| $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
|
else \
|
else \
|
true ; \
|
true ; \
|
fi
|
fi
|
|
|
# These exist for maintenance purposes.
|
# These exist for maintenance purposes.
|
|
|
.PHONY: bootstrap bootstrap2 bootstrap3 stage1 stage2 stage3 comparison
|
.PHONY: bootstrap bootstrap2 bootstrap3 stage1 stage2 stage3 comparison
|
|
|
bootstrap: as-new
|
bootstrap: as-new
|
$(MAKE) stage1
|
$(MAKE) stage1
|
rm -f stage && ln -s stage1 stage
|
rm -f stage && ln -s stage1 stage
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) stage2
|
$(MAKE) stage2
|
rm -f stage && ln -s stage2 stage
|
rm -f stage && ln -s stage2 stage
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) comparison against=stage2
|
$(MAKE) comparison against=stage2
|
|
|
bootstrap2:
|
bootstrap2:
|
rm -f stage && ln -s stage1 stage
|
rm -f stage && ln -s stage1 stage
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) stage2
|
$(MAKE) stage2
|
rm -f stage && ln -s stage2 stage
|
rm -f stage && ln -s stage2 stage
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) comparison against=stage2
|
$(MAKE) comparison against=stage2
|
|
|
bootstrap3:
|
bootstrap3:
|
rm -f stage && ln -s stage2 stage
|
rm -f stage && ln -s stage2 stage
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
|
$(MAKE) comparison against=stage2
|
$(MAKE) comparison against=stage2
|
|
|
# Copy the object files from a particular stage into a subdirectory.
|
# Copy the object files from a particular stage into a subdirectory.
|
stage1:
|
stage1:
|
-mkdir stage1
|
-mkdir stage1
|
-mv $(STAGESTUFF) stage1
|
-mv $(STAGESTUFF) stage1
|
if [ -f stage1/as-new$(EXEEXT) -a ! -f stage1/as$(EXEEXT) ] ; then (cd stage1 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
|
if [ -f stage1/as-new$(EXEEXT) -a ! -f stage1/as$(EXEEXT) ] ; then (cd stage1 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
|
|
|
stage2:
|
stage2:
|
-mkdir stage2
|
-mkdir stage2
|
-mv $(STAGESTUFF) stage2
|
-mv $(STAGESTUFF) stage2
|
if [ -f stage2/as-new$(EXEEXT) -a ! -f stage2/as$(EXEEXT) ] ; then (cd stage2 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
|
if [ -f stage2/as-new$(EXEEXT) -a ! -f stage2/as$(EXEEXT) ] ; then (cd stage2 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
|
|
|
stage3:
|
stage3:
|
-mkdir stage3
|
-mkdir stage3
|
-mv $(STAGESTUFF) stage3
|
-mv $(STAGESTUFF) stage3
|
if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
|
if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
|
|
|
against=stage2
|
against=stage2
|
|
|
# This rule is derived from corresponding code in the Makefile.in for gcc.
|
# 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
|
# The "tail +16c" is to bypass headers which may include timestamps or
|
# temporary assembly file names.
|
# temporary assembly file names.
|
comparison:
|
comparison:
|
x=0 ; \
|
x=0 ; \
|
for file in *.@OBJEXT@ ; do \
|
for file in *.@OBJEXT@ ; do \
|
tail +16c ./$$file > tmp-foo1; \
|
tail +16c ./$$file > tmp-foo1; \
|
if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
|
if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \
|
if cmp tmp-foo1 tmp-foo2 ; then \
|
if cmp tmp-foo1 tmp-foo2 ; then \
|
true ; \
|
true ; \
|
else \
|
else \
|
echo $$file differs ; \
|
echo $$file differs ; \
|
x=1 ; \
|
x=1 ; \
|
fi ; \
|
fi ; \
|
else true; fi ; \
|
else true; fi ; \
|
done ; \
|
done ; \
|
exit $$x
|
exit $$x
|
-rm -f tmp-foo*
|
-rm -f tmp-foo*
|
|
|
.PHONY: de-stage1 de-stage2 de-stage3
|
.PHONY: de-stage1 de-stage2 de-stage3
|
|
|
de-stage1:
|
de-stage1:
|
- (cd stage1 ; rm -f as$(EXEEXT) ; mv -f * ..)
|
- (cd stage1 ; rm -f as$(EXEEXT) ; mv -f * ..)
|
- rmdir stage1
|
- rmdir stage1
|
|
|
de-stage2:
|
de-stage2:
|
- (cd stage2 ; rm -f as$(EXEEXT) ; mv -f * ..)
|
- (cd stage2 ; rm -f as$(EXEEXT) ; mv -f * ..)
|
- rmdir stage2
|
- rmdir stage2
|
|
|
de-stage3:
|
de-stage3:
|
- (cd stage3 ; rm -f as$(EXEEXT) ; mv -f * ..)
|
- (cd stage3 ; rm -f as$(EXEEXT) ; mv -f * ..)
|
- rmdir stage3
|
- rmdir stage3
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in $(srcdir)/configure.tgt
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in $(srcdir)/configure.tgt
|
|
|