aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-06-26 23:00:20 +0000
committerStan Shebs <shebs@codesourcery.com>1994-06-26 23:00:20 +0000
commitc71f57835c64be2ce0bd3ae48a98b285f2600c40 (patch)
tree9ed0e486b9386df2efdfcb51a5c7ddc867e6ecc8 /bfd
parent941af9ce950e1cfda0ffbde8cd60d6d5aaf3a102 (diff)
downloadgdb-c71f57835c64be2ce0bd3ae48a98b285f2600c40.zip
gdb-c71f57835c64be2ce0bd3ae48a98b285f2600c40.tar.gz
gdb-c71f57835c64be2ce0bd3ae48a98b285f2600c40.tar.bz2
* mpw-config.in: Use sed instead of StreamEdit, add definitions
for mips target. * mpw-make.in: Remove mips targets definitions, add rule to compile with GCC, remove ecoff.c.o and ecofflink.c.o from list of required object files.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog.mpw8
-rw-r--r--bfd/mpw-config.in10
-rw-r--r--bfd/mpw-make.in18
3 files changed, 27 insertions, 9 deletions
diff --git a/bfd/ChangeLog.mpw b/bfd/ChangeLog.mpw
index 408c168..68cfe16 100644
--- a/bfd/ChangeLog.mpw
+++ b/bfd/ChangeLog.mpw
@@ -1,3 +1,11 @@
+Sun Jun 26 15:55:53 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * mpw-config.in: Use sed instead of StreamEdit, add definitions
+ for mips target.
+ * mpw-make.in: Remove mips targets definitions, add rule to
+ compile with GCC, remove ecoff.c.o and ecofflink.c.o from list of
+ required object files.
+
Tue Apr 5 17:54:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* hosts/mpw.h (CLOSE_BEFORE_UNLINK): Define.
diff --git a/bfd/mpw-config.in b/bfd/mpw-config.in
index 88403fd..b70c2f7 100644
--- a/bfd/mpw-config.in
+++ b/bfd/mpw-config.in
@@ -2,5 +2,13 @@
forward-include "{srcdir}"hosts:mpw.h sysdep.h
-StreamEdit -e '/@WORDSIZE@/ Replace /@WORDSIZE@/ "32"' {srcdir}bfd-in2.h >bfd.h-new
+sed -e 's/@WORDSIZE@/32/' {srcdir}bfd-in2.h >bfd.h-new
MoveIfChange bfd.h-new bfd.h
+
+If "{target_canonical}" =~ /m68k-aout/
+Else If "{target_canonical}" =~ /mips-idt-ecoff/
+ Echo 'WORDSIZE = 32' >"{objdir}"mk.tmp
+ Echo 'BFD_BACKENDS = "{o}"coff-mips.c.o "{o}"ecoff.c.o "{o}"ecofflink.c.o' >>"{objdir}"mk.tmp
+ Echo 'BFD_MACHINES = "{o}"cpu-mips.c.o' >>"{objdir}"mk.tmp
+ Echo 'TDEFAULTS = -d DEFAULT_VECTOR=ecoff_big_vec -d SELECT_VECS=&ecoff_big_vec,&ecoff_little_vec -d SELECT_ARCHITECTURES=bfd_mips_arch' >>"{objdir}"mk.tmp
+End If
diff --git a/bfd/mpw-make.in b/bfd/mpw-make.in
index 78805a2..ad1b087 100644
--- a/bfd/mpw-make.in
+++ b/bfd/mpw-make.in
@@ -18,6 +18,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+DebugOptions = -d DEBUG_BFD_SEND
+
+gC = gC1
+
s = "{srcdir}"
o = :
@@ -27,7 +31,10 @@ o = :
# Default rule that puts each file into separate segment.
.c.o \Option-f .c
- {CC} {DepDir}{Default}.c {ALL_CFLAGS} -d DEBUG_BFD_SEND {SymOptions} -s {Default} -o {TargDir}{Default}.c.o
+ {CC} {DepDir}{Default}.c {ALL_CFLAGS} -s bfd_{Default} -o {TargDir}{Default}.c.o
+
+.gc.o \Option-f .c
+ {gC} {DepDir}{Default}.c {ALL_CFLAGS} -s bfd_{Default} -o {TargDir}{Default}.gc.o
HDEFINES =
TDEFINES =
@@ -101,7 +108,7 @@ BFD_LIBS = \Option-d
"{o}"archive.c.o "{o}"archures.c.o "{o}"bfd.c.o "{o}"cache.c.o "{o}"coffgen.c.o "{o}"core.c.o "{o}"ctor.c.o \Option-d
"{o}"format.c.o "{o}"init.c.o "{o}"libbfd.c.o "{o}"opncls.c.o "{o}"reloc.c.o \Option-d
"{o}"section.c.o "{o}"syms.c.o "{o}"targets.c.o "{o}"hash.c.o "{o}"linker.c.o \Option-d
- "{o}"ecoff.c.o "{o}"ecofflink.c.o "{o}"elf.c.o "{o}"srec.c.o
+ "{o}"elf.c.o "{o}"srec.c.o
# This list is alphabetized to make it easier to keep in sync
# with the decls and initializer in archures.c.
@@ -200,11 +207,6 @@ OPTIONAL_BACKENDS = \Option-d
"{o}"trad-core.c.o
# These are defined by configure.in\Option-f
-WORDSIZE=32
-BFD_BACKENDS = "{o}"coff-mips.c.o
-BFD_MACHINES = "{o}"cpu-mips.c.o
-TDEFAULTS = -d DEFAULT_VECTOR=ecoff_big_vec -d SELECT_VECS='&ecoff_big_vec,&ecoff_little_vec' -d SELECT_ARCHITECTURES='bfd_mips_arch'
-
all \Option-f libbfd.o
@@ -227,7 +229,7 @@ FLAGS_TO_PASS = \Option-d
"INSTALL_PROGRAM={INSTALL_PROGRAM}" \Option-d
"BISON={BISON}"
-ALL_CFLAGS={CFLAGS} {HDEFINES} {TDEFINES} {CSEARCH} {CSWITCHES}
+ALL_CFLAGS={CFLAGS} {HDEFINES} {TDEFINES} {CSEARCH} {CSWITCHES} {DebugOptions}
# C source files that correspond to .o's.
CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \Option-d