aboutsummaryrefslogtreecommitdiff
path: root/bfd/mpw-config.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-03 21:36:08 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-03 21:36:08 +0000
commitdee9979493130df7a1cc1cf7b53d5ca2229f6105 (patch)
treed9fd8dcc7f43ca8702847ebb3c8500079f88ae06 /bfd/mpw-config.in
parent6c9370db2abfc53aadaf7b97409fb5a2ea391d80 (diff)
downloadgdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.zip
gdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.tar.gz
gdb-dee9979493130df7a1cc1cf7b53d5ca2229f6105.tar.bz2
* configure.in: Add havevecs, and put it in tdefaults.
* mpw-config.in: Likewise. * configure: Rebuild. * targmatch.sed: New file; a sed script to build targmatch.h from config.bfd. * config.bfd: Add #if, #endif, and comments for targmatch.h. * targets.c: Include "fnmatch.h". (struct targmatch): Define. (bfd_target_match): Define by including targmatch.h. (bfd_find_target): If the target is not found by name, search for it as a configuration triplet. * Makefile.in: Rebuild dependencies. (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, i386dynix.o, m68k4knetbsd.o, and riscix.o. (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. (HFILES): Add targmatch.h. Also, alphabetize and reindent. (CFILES): Remove i386dynix.c and hp300bsd.c. (targmatch.h): New target. (do_clean): Remove targmatch.h. * configure.in: Add BFD_NEED_DECLARATION(getenv). * acconfig.h: Add NEED_DECLARATION_GETENV. * configure, config.in: Rebuild. * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
Diffstat (limited to 'bfd/mpw-config.in')
-rw-r--r--bfd/mpw-config.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/bfd/mpw-config.in b/bfd/mpw-config.in
index cbd13db..31addee 100644
--- a/bfd/mpw-config.in
+++ b/bfd/mpw-config.in
@@ -5,37 +5,43 @@
Set selarchs "&bfd_{target_cpu}_arch"
Set defvec ""
Set selvecs ""
+Set havevecs ""
If "{target_canonical}" =~ /m68k-apple-macos/
Set BFD_BACKENDS '"{o}"coff-m68k.c.o "{o}"cofflink.c.o'
Set defvec m68kcoff_vec
Set selvecs '&m68kcoff_vec'
+ Set havevecs '-d HAVE_m68kcoff_vec'
Else If "{target_canonical}" =~ /powerpc-apple-macos/
Set BFD_BACKENDS '"{o}"coff-pmac.c.o "{o}"xcofflink.c.o'
Set defvec pmac_xcoff_vec
Set selvecs '&pmac_xcoff_vec'
+ Set havevecs '-d HAVE_pmac_xcoff_vec'
Set selarchs "&bfd_powerpc_arch"
Else If "{target_canonical}" =~ /i386-\Option-x-go32/
Set BFD_BACKENDS '"{o}"coff-i386.c.o'
Set defvec i386coff_vec
Set selvecs '&i386coff_vec'
+ Set havevecs '-d HAVE_i386coff_vec'
Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/
Set BFD_BACKENDS '"{o}"coff-mips.c.o "{o}"ecoff.c.o "{o}"ecofflink.c.o "{o}"elf32.c.o "{o}"elf32-mips.c.o "{o}"elflink.c.o'
Set defvec ecoff_big_vec
Set selvecs '&ecoff_big_vec,&ecoff_little_vec,&bfd_elf32_bigmips_vec'
+ Set havevecs '-d HAVE_ecoff_big_vec -d HAVE_ecoff_little_vec -d HAVE_bfd_elf32_bigmips_vec'
Else If "{target_canonical}" =~ /sh-\Option-x-hms/
Set BFD_BACKENDS '"{o}"coff-sh.c.o "{o}"cofflink.c.o'
Set defvec shcoff_vec
Set selvecs '&shcoff_vec,&shlcoff_vec'
+ Set havevecs '-d HAVE_shcoff_vec -d HAVE_shlcoff_vec'
End If
Set ta `echo {selarchs} | sed -e 's/&bfd_/{o}cpu-/g' -e 's/_arch/.c.o/g'`
-Set tdefaults "-d DEFAULT_VECTOR={defvec} -d SELECT_VECS={selvecs} -d SELECT_ARCHITECTURES={selarchs}"
+Set tdefaults "-d DEFAULT_VECTOR={defvec} -d SELECT_VECS={selvecs} -d SELECT_ARCHITECTURES={selarchs} {havevecs}"
Echo '# From mpw-config.in' > "{o}"mk.tmp
Echo 'WORDSIZE = 32' >> "{o}"mk.tmp