From: Stan Shebs Date: Tue, 4 Jan 1994 21:14:04 +0000 (+0000) Subject: Mon Jan 3 10:47:37 1994 Stan Shebs (shebs@andros.cygnus.com) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea838f998abb3976fee8294dc34a1fa3c19338f4;p=binutils-gdb.git Mon Jan 3 10:47:37 1994 Stan Shebs (shebs@andros.cygnus.com) * config.sub: Add MPW-related aliases. * mpw-configure: New file, MPW version of configure. * mpw-config.in: New file, MPW version of configure.in. * mpw-xconfig.in: New file, addon to configure.in. Mon Jan 3 12:42:45 1994 Stan Shebs (shebs@andros.cygnus.com) * mpw-xconfig.in: New file, mpw x mips configuration bits. --- diff --git a/gas/ChangeLog.mpw b/gas/ChangeLog.mpw new file mode 100644 index 00000000000..5eeff2ffa9d --- /dev/null +++ b/gas/ChangeLog.mpw @@ -0,0 +1,6 @@ +Tue Jan 4 12:25:35 1994 Stan Shebs (shebs@andros.cygnus.com) + + * mpw-config.in: New file, MPW version of configure.in. + * mpw-make.in: New file, MPW version of Makefile.in. + * config/ho-mpw.h: New file, MPW host definitions. + diff --git a/gas/config/ho-mpw.h b/gas/config/ho-mpw.h new file mode 100644 index 00000000000..caac6da8b0c --- /dev/null +++ b/gas/config/ho-mpw.h @@ -0,0 +1,76 @@ +/* ho-mpw.h Host-specific header file for MPW. + Copyright (C) 1993 Free Software Foundation, Inc. + + This file is part of GAS, the GNU Assembler. + + GAS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + GAS is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#ifndef MPW +#define MPW +#endif + +#define bzero(a,b) memset(a,0,b) +#define bcopy(a,b,c) memcpy(b,a,c) +#define bcmp(a,b,c) memcmp(a,b,c) + +#if 0 /* this doesn't work, sigh */ +#ifndef __STDC__ +#define __STDC__ +#endif +#endif + +#define M_ANSI 1 + +#include +#include + +#ifndef false +#define false ffalse +#endif +#ifndef true +#define true ttrue +#endif + +#include + +char *strdup(); + +#ifdef MPW_C + +#undef __PTR_TO_INT +#define __PTR_TO_INT(P) ((int)(P)) +#undef __INT_TO_PTR +#define __INT_TO_PTR(P) ((char *)(P)) + +#endif + +#define sys_nerr _sys_nerr +#define sys_errlist _sys_errlist + +#ifdef __STDIO__ +FILE *mpw_fopen(); +#endif + +#define fopen mpw_fopen +#define fseek mpw_fseek +#define abort mpw_abort + +/* is an end-of-line marker. */ + +#define CR_EOL + +#define ABORT_ON_ERROR + +/* end of ho-mpw.h */ diff --git a/gas/mpw-config.in b/gas/mpw-config.in new file mode 100644 index 00000000000..d598d17229d --- /dev/null +++ b/gas/mpw-config.in @@ -0,0 +1,18 @@ +# Configuration fragment for GAS. + +DupIfChange {srcdir}config:ho-mpw.h host.h + +echo '/* empty */' >'sys/file.h' +echo '/* empty */' >'sys/resource.h' +echo '/* empty */' >'sys/stat.h' +echo '#include ' >'sys/time.h' +echo '#include ' >'sys/types.h' + +Echo "#ifndef __va_list__" >varargs.h +Echo "#define __va_list__" >>varargs.h +Echo "typedef char *va_list;" >>varargs.h +Echo "#endif" >>varargs.h +Echo "#define va_dcl int va_alist;" >>varargs.h +Echo "#define va_start(list) list = (char *) &va_alist" >>varargs.h +Echo "#define va_end(list)" >>varargs.h +Echo "#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]" >>varargs.h diff --git a/gas/mpw-make.in b/gas/mpw-make.in new file mode 100644 index 00000000000..9b5c7aac895 --- /dev/null +++ b/gas/mpw-make.in @@ -0,0 +1,95 @@ +# Makefile fragment for GAS. + +s = "{srcdir}" + +o = : + +C = C -d MPW_C + +CROSS = -d CROSS_COMPILE + +CFLAGS = -mc68020 -mc68881 -model far {CROSS} -d MPW -d TARGET_BYTES_BIG_ENDIAN -d BFD_ASSEMBLER -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::bfd: +# debug options: -mbg on -sym on + +"{o}" Ä : "{s}" + +# Default rule that puts each file into separate segment. + +.c.o Ä .c + {C} {DepDir}{Default}.c {CFLAGS} {SymOptions} -s gas-{Default} -o {TargDir}{Default}.c.o + +OBJECTS = ¶ + "{o}"app.c.o ¶ + "{o}"as.c.o ¶ + "{o}"atof-generic.c.o ¶ + "{o}"bignum-copy.c.o ¶ + "{o}"cond.c.o ¶ + "{o}"expr.c.o ¶ + "{o}"flonum-konst.c.o ¶ + "{o}"flonum-copy.c.o ¶ + "{o}"flonum-mult.c.o ¶ + "{o}"frags.c.o ¶ + "{o}"hash.c.o ¶ + "{o}"hex-value.c.o ¶ + "{o}"input-file.c.o ¶ + "{o}"input-scrub.c.o ¶ + "{o}"listing.c.o ¶ + "{o}"messages.c.o ¶ + "{o}"output-file.c.o ¶ + "{o}"read.c.o ¶ + "{o}"stabs.c.o ¶ + "{o}"subsegs.c.o ¶ + "{o}"symbols.c.o ¶ + "{o}"write.c.o ¶ + "{o}"ecoff.c.o ¶ + "{o}"xmalloc.c.o ¶ + +INCLUDES = +# host.h +#"{s}".h + +all Ä as.new + +as.new ÄÄ {OBJECTS} "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o ¶ + ::libiberty:libiberty.o ¶ + ::bfd:libbfd.o ¶ + ::opcodes:libopcodes.o + Link -d -model far -c 'MPS ' -t MPST ¶ + {OBJECTS} ¶ + "{o}"obj-format.c.o "{o}"targ-cpu.c.o "{o}"atof-targ.c.o ¶ + ::libiberty:libiberty.o ¶ + ::bfd:libbfd.o ¶ + ::opcodes:libopcodes.o ¶ + #"{CLibraries}"CSANELib.o ¶ + #"{CLibraries}"Math.o ¶ + #"{CLibraries}"Complex.o ¶ + "{CLibraries}"StdClib.o ¶ + "{Libraries}"Stubs.o ¶ + "{Libraries}"Runtime.o ¶ + "{Libraries}"Interface.o ¶ + #"{Libraries}"ToolLibs.o ¶ + -o as.new + +"{o}"app.c.o Ä "{s}"app.c {INCLUDES} +"{o}"as.c.o Ä "{s}"as.c {INCLUDES} +"{o}"atof-generic.c.o Ä "{s}"atof-generic.c {INCLUDES} +"{o}"bifnum-copy.c.o Ä "{s}"bignum-copy.c {INCLUDES} +"{o}"cond.c.o Ä "{s}"cond.c {INCLUDES} +"{o}"expr.c.o Ä "{s}"expr.c {INCLUDES} +"{o}"flonum-konst.c.o Ä "{s}"flonum-konst.c {INCLUDES} +"{o}"flonum-copy.c.o Ä "{s}"flonum-copy.c {INCLUDES} +"{o}"flonum-mult.c.o Ä "{s}"flonum-mult.c {INCLUDES} +"{o}"frags.c.o Ä "{s}"frags.c {INCLUDES} +"{o}"hash.c.o Ä "{s}"hash.c {INCLUDES} +"{o}"hex-value.c.o Ä "{s}"hex-value.c {INCLUDES} +"{o}"input-file.c.o Ä "{s}"input-file.c {INCLUDES} +"{o}"input-scrub.c.o Ä "{s}"input-scrub.c {INCLUDES} +"{o}"listing.c.o Ä "{s}"listing.c {INCLUDES} +"{o}"messages.c.o Ä "{s}"messages.c {INCLUDES} +"{o}"output-file.c.o Ä "{s}"output-file.c {INCLUDES} +"{o}"read.c.o Ä "{s}"read.c {INCLUDES} +"{o}"subsegs.c.o Ä "{s}"subsegs.c {INCLUDES} +"{o}"symbols.c.o Ä "{s}"symbols.c {INCLUDES} +"{o}"write.c.o Ä "{s}"write.c {INCLUDES} +"{o}"ecoff.c.o Ä "{s}"ecoff.c {INCLUDES} +"{o}"xmalloc.c.o Ä "{s}"xmalloc.c {INCLUDES} diff --git a/gas/mpw-xconfig.in b/gas/mpw-xconfig.in new file mode 100644 index 00000000000..957993825ea --- /dev/null +++ b/gas/mpw-xconfig.in @@ -0,0 +1,31 @@ +# Extra configuration fragment for GAS. + +DupIfChange {srcdir}config:atof-ieee.c atof-targ.c +DupIfChange {srcdir}config:obj-ecoff.c obj-format.c +DupIfChange {srcdir}config:obj-ecoff.h obj-format.h +DupIfChange {srcdir}config:tc-mips.c targ-cpu.c +DupIfChange {srcdir}config:tc-mips.h targ-cpu.h +DupIfChange {srcdir}config:te-generic.h targ-env.h + +echo '#include ":aout:stab.def"' >'aout/stab.def' +echo '#include ":aout:stab_gnu.h"' >'aout/stab_gnu.h' +echo '#include ":coff:ecoff.h"' >'coff/ecoff.h' +echo '#include ":coff:internal.h"' >'coff/internal.h' +echo '#include ":coff:mips.h"' >'coff/mips.h' +echo '#include ":coff:sym.h"' >'coff/sym.h' +echo '#include ":coff:symconst.h"' >'coff/symconst.h' +echo '#include "libcoff.h"' >'bfd/libcoff.h' +echo '#include "libecoff.h"' >'bfd/libecoff.h' + +echo '#include ":opcode:mips.h"' >'opcode/mips.h' + +echo '#define TARGET_CPU "mips"' >config.new +echo '#define TARGET_ALIAS "mips-idt-ecoff"' >>config.new +echo '#define TARGET_CANONICAL "mips-idt-ecoff"' >>config.new +echo '#define GAS_VERSION "cygnus-2.2.1"' >>config.new + +DupIfChange config.new config.h + +Delete -i config.new + +