aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-make.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-12-13 03:52:01 +0000
committerStan Shebs <shebs@codesourcery.com>1994-12-13 03:52:01 +0000
commita23e2b7cdebb597ff654d1757fc580cce1120be3 (patch)
treebd9efe09883386f0180f4f51b5e73eb3f47fdfc6 /gas/mpw-make.in
parent4fd067b80d0226c8ee1a660e6badfd92a671c8aa (diff)
downloadgdb-a23e2b7cdebb597ff654d1757fc580cce1120be3.zip
gdb-a23e2b7cdebb597ff654d1757fc580cce1120be3.tar.gz
gdb-a23e2b7cdebb597ff654d1757fc580cce1120be3.tar.bz2
* mpw-config.in: Add mapping from configs to object file formats,
get VERSION from Makefile.in and add to mk.tmp. (mips-idt-ecoff) [TDEFINES]: Add TARGET_BYTES_BIG_ENDIAN. * mpw-make.in (VERSION, gC): Don't define. (ALL_CFLAGS): Remove -d flags. (config.h): Remove definition of MPW, add HAVE_STDARG_H, BFD_ASSEMBLER.
Diffstat (limited to 'gas/mpw-make.in')
-rw-r--r--gas/mpw-make.in20
1 files changed, 6 insertions, 14 deletions
diff --git a/gas/mpw-make.in b/gas/mpw-make.in
index ac50ac8..d568621 100644
--- a/gas/mpw-make.in
+++ b/gas/mpw-make.in
@@ -1,16 +1,12 @@
# Makefile fragment for GAS.
-VERSION = cygnus-2.3.1
-
-gC = gC1
-
s = "{srcdir}"
o = :
CROSS = -d CROSS_COMPILE
-ALL_CFLAGS = {CFLAGS} {CROSS} -d HAVE_STDARG_H -d TARGET_BYTES_BIG_ENDIAN -d BFD_ASSEMBLER -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::libiberty:,::bfd:,::extra-include,"{srcroot}"include:mpw:
+ALL_CFLAGS = {CFLAGS} {CROSS} {TDEFINES} -i "{topsrcdir}"include: -i "{topsrcdir}"bfd:,"{srcdir}",::libiberty:,::bfd:,::extra-include,"{srcroot}"include:mpw:
# debug options: -mbg on -sym on
"{o}" \Option-f : "{s}"
@@ -20,9 +16,6 @@ ALL_CFLAGS = {CFLAGS} {CROSS} -d HAVE_STDARG_H -d TARGET_BYTES_BIG_ENDIAN -d BFD
.c.o \Option-f .c
{CC} {DepDir}{Default}.c {ALL_CFLAGS} -s gas_{Default} -o {TargDir}{Default}.c.o
-.gc.o \Option-f .c
- {gC} {DepDir}{Default}.c {ALL_CFLAGS} -s gas_{Default} -o {TargDir}{Default}.gc.o
-
prefix = usr:local:
bindir = {prefix}bin:
@@ -65,7 +58,7 @@ INCLUDES =
CLIBS = ::libiberty:libiberty.o ::bfd:libbfd.o ::opcodes:libopcodes.o
-all \Option-f as.new
+all \Option-f "{o}"config.h as.new
as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
Link {LDFLAGS} -o as.new {OBJECTS} {TARG_OBJECTS} {CLIBS} {EXTRALIBS}
@@ -80,9 +73,6 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
Echo '#define TARGET_CPU "{target_cpu}"' >> "{o}"config.new
Echo '#define TARGET_ALIAS "{target_alias}"' >> "{o}"config.new
Echo '#define TARGET_CANONICAL "{target_canonical}"' >> "{o}"config.new
- Echo '#ifndef MPW' >> "{o}"config.new
- Echo '#define MPW' >> "{o}"config.new
- Echo '#endif' >> "{o}"config.new
Echo '#define bzero(a,b) memset(a,0,b)' >> "{o}"config.new
Echo '#define bcopy(a,b,c) memcpy(b,a,c)' >> "{o}"config.new
Echo '#define bcmp(a,b,c) memcmp(a,b,c)' >> "{o}"config.new
@@ -90,6 +80,7 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
Echo '#include <stdlib.h>' >> "{o}"config.new
Echo '#include <string.h>' >> "{o}"config.new
Echo '#include <memory.h>' >> "{o}"config.new
+ Echo '#include <spin.h>' >> "{o}"config.new
Echo 'char *strdup();' >> "{o}"config.new
Echo '#ifdef MPW_C' >> "{o}"config.new
Echo '#undef __PTR_TO_INT' >> "{o}"config.new
@@ -106,14 +97,15 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
Echo '#define fseek mpw_fseek' >> "{o}"config.new
Echo '#define abort mpw_abort' >> "{o}"config.new
Echo '#define TRUE_FALSE_ALREADY_DEFINED' >> "{o}"config.new
- Echo '/* <cr> is an end-of-line marker. */' >> "{o}"config.new
Echo '#define CR_EOL' >> "{o}"config.new
Echo '#define ABORT_ON_ERROR' >> "{o}"config.new
Echo '#define LOSING_COMPILER' >> "{o}"config.new
Echo '#define HOST_SPECIAL_INIT(argc,argv) mpw_special_init ((argv)[0]);' >> "{o}"config.new
Echo '#define WANT_FOPEN_BIN' >> "{o}"config.new
Echo '#define HAVE_ERRNO_H' >> "{o}"config.new
- Echo '#endif /* GAS_VERSION */' >> "{o}"config.new
+ Echo '#define HAVE_STDARG_H' >> "{o}"config.new
+ Echo '#define BFD_ASSEMBLER' >> "{o}"config.new
+ Echo '#endif /* GAS_VERSION */' >> "{o}"config.new
MoveIfChange "{o}"config.new "{o}"config.h
Echo ' ' >"{o}"config-stamp