From c71f57835c64be2ce0bd3ae48a98b285f2600c40 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Sun, 26 Jun 1994 23:00:20 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog.mpw | 8 ++++++++ bfd/mpw-config.in | 10 +++++++++- bfd/mpw-make.in | 18 ++++++++++-------- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/bfd/ChangeLog.mpw b/bfd/ChangeLog.mpw index 408c168c865..68cfe16a6ef 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 88403fdf1e2..b70c2f7e594 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 78805a2a715..ad1b0879ac7 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 -- 2.30.2