1994-01-04 08:38:05 +08:00
|
|
|
# Configuration fragment for BFD.
|
|
|
|
|
1995-06-16 05:18:17 +08:00
|
|
|
# This is almost always correct.
|
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
Set selarchs "&bfd_{target_cpu}_arch"
|
1995-06-16 05:18:17 +08:00
|
|
|
Set defvec ""
|
|
|
|
Set selvecs ""
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set havevecs ""
|
1994-12-13 11:34:28 +08:00
|
|
|
|
|
|
|
If "{target_canonical}" =~ /m68k-apple-macos/
|
1995-06-16 05:18:17 +08:00
|
|
|
Set BFD_BACKENDS '"{o}"coff-m68k.c.o "{o}"cofflink.c.o'
|
|
|
|
Set defvec m68kcoff_vec
|
|
|
|
Set selvecs '&m68kcoff_vec'
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set havevecs '-d HAVE_m68kcoff_vec'
|
1995-12-14 02:54:24 +08:00
|
|
|
|
1995-06-16 05:18:17 +08:00
|
|
|
Else If "{target_canonical}" =~ /powerpc-apple-macos/
|
1995-10-25 08:54:55 +08:00
|
|
|
Set BFD_BACKENDS '"{o}"coff-pmac.c.o "{o}"xcofflink.c.o'
|
1995-09-29 10:14:51 +08:00
|
|
|
Set defvec pmac_xcoff_vec
|
|
|
|
Set selvecs '&pmac_xcoff_vec'
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set havevecs '-d HAVE_pmac_xcoff_vec'
|
1995-09-29 10:14:51 +08:00
|
|
|
Set selarchs "&bfd_powerpc_arch"
|
1995-12-14 02:54:24 +08:00
|
|
|
|
1996-07-19 02:42:06 +08:00
|
|
|
Else If "{target_canonical}" =~ /i386-\Option-x-go32/
|
1995-06-16 05:18:17 +08:00
|
|
|
Set BFD_BACKENDS '"{o}"coff-i386.c.o'
|
|
|
|
Set defvec i386coff_vec
|
|
|
|
Set selvecs '&i386coff_vec'
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set havevecs '-d HAVE_i386coff_vec'
|
1995-12-14 02:54:24 +08:00
|
|
|
|
|
|
|
Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/
|
1996-07-19 02:42:06 +08:00
|
|
|
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'
|
1995-06-16 05:18:17 +08:00
|
|
|
Set defvec ecoff_big_vec
|
1996-07-19 02:42:06 +08:00
|
|
|
Set selvecs '&ecoff_big_vec,&ecoff_little_vec,&bfd_elf32_bigmips_vec'
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set havevecs '-d HAVE_ecoff_big_vec -d HAVE_ecoff_little_vec -d HAVE_bfd_elf32_bigmips_vec'
|
1995-12-14 02:54:24 +08:00
|
|
|
|
1996-07-19 02:42:06 +08:00
|
|
|
Else If "{target_canonical}" =~ /sh-\Option-x-hms/
|
1995-06-16 05:18:17 +08:00
|
|
|
Set BFD_BACKENDS '"{o}"coff-sh.c.o "{o}"cofflink.c.o'
|
|
|
|
Set defvec shcoff_vec
|
|
|
|
Set selvecs '&shcoff_vec,&shlcoff_vec'
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set havevecs '-d HAVE_shcoff_vec -d HAVE_shlcoff_vec'
|
1994-06-27 07:00:20 +08:00
|
|
|
End If
|
1994-12-13 11:34:28 +08:00
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
Set ta `echo {selarchs} | sed -e 's/&bfd_/{o}cpu-/g' -e 's/_arch/.c.o/g'`
|
1995-06-16 05:18:17 +08:00
|
|
|
|
* 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.
1996-10-04 05:36:08 +08:00
|
|
|
Set tdefaults "-d DEFAULT_VECTOR={defvec} -d SELECT_VECS={selvecs} -d SELECT_ARCHITECTURES={selarchs} {havevecs}"
|
1995-06-16 05:18:17 +08:00
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
Echo '# From mpw-config.in' > "{o}"mk.tmp
|
|
|
|
Echo 'WORDSIZE = 32' >> "{o}"mk.tmp
|
|
|
|
Echo 'BFD_MACHINES = ' {ta} >> "{o}"mk.tmp
|
|
|
|
Echo 'BFD_BACKENDS = ' {BFD_BACKENDS} >> "{o}"mk.tmp
|
|
|
|
Echo 'TDEFAULTS = ' {tdefaults} >> "{o}"mk.tmp
|
|
|
|
Echo 'HDEPFILES = ' >> "{o}"mk.tmp
|
|
|
|
Echo 'TDEPFILES = ' >> "{o}"mk.tmp
|
|
|
|
Echo '# End from mpw-config.in' >> "{o}"mk.tmp
|
|
|
|
|
|
|
|
Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
|
|
|
|
Echo '#include "mpw.h"' >> "{o}"config.new
|
|
|
|
|
|
|
|
MoveIfChange "{o}"config.new "{o}"config.h
|
1995-06-16 05:18:17 +08:00
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
# We can only handle 32-bit targets right now.
|
|
|
|
|
|
|
|
sed -e 's/@WORDSIZE@/32/' \Option-d
|
1996-08-16 03:41:17 +08:00
|
|
|
-e 's/@wordsize@/32/' \Option-d
|
1995-09-29 10:14:51 +08:00
|
|
|
-e "s/@VERSION@/`Catenate {srcdir}VERSION`/" \Option-d
|
1996-08-16 03:41:17 +08:00
|
|
|
-e 's/@BFD_HOST_64_BIT_DEFINED@/0/' \Option-d
|
|
|
|
-e 's/@BFD_HOST_64_BIT@//' \Option-d
|
|
|
|
-e 's/@BFD_HOST_U_64_BIT@//' \Option-d
|
1995-09-29 10:14:51 +08:00
|
|
|
-e 's/@BFD_HOST_64BIT_LONG@/0/' \Option-d
|
|
|
|
"{srcdir}"bfd-in2.h >"{o}"bfd.h-new
|
1995-06-16 05:18:17 +08:00
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
MoveIfChange "{o}"bfd.h-new "{o}"bfd.h
|
1995-06-16 05:18:17 +08:00
|
|
|
|
1996-07-19 02:42:06 +08:00
|
|
|
sed -e 's/NN/32/g' "{srcdir}"elfxx-target.h >"{o}"elf32-target.h-new
|
|
|
|
MoveIfChange "{o}"elf32-target.h-new "{o}"elf32-target.h
|
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
# Pre-expand some macros in coffswap.h, so MPW C doesn't choke.
|
1995-06-16 05:18:17 +08:00
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
sed -e 's/^ PUT_AOUTHDR_TSIZE (/ bfd_h_put_32 (/' \Option-d
|
|
|
|
-e 's/^ PUT_AOUTHDR_DSIZE (/ bfd_h_put_32 (/' \Option-d
|
|
|
|
-e 's/^ PUT_AOUTHDR_BSIZE (/ bfd_h_put_32 (/' \Option-d
|
|
|
|
-e 's/^ PUT_AOUTHDR_ENTRY (/ bfd_h_put_32 (/' \Option-d
|
|
|
|
-e 's/^ PUT_AOUTHDR_TEXT_START (/ bfd_h_put_32 (/' \Option-d
|
|
|
|
-e 's/^ PUT_AOUTHDR_DATA_START (/ bfd_h_put_32 (/' \Option-d
|
|
|
|
"{srcdir}"coffswap.h >"{o}"coffswap.h-new
|
1995-06-16 05:18:17 +08:00
|
|
|
|
1995-09-29 10:14:51 +08:00
|
|
|
MoveIfChange "{o}"coffswap.h-new "{o}"coffswap.h
|