aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-09-24 21:27:44 +0000
committerStan Shebs <shebs@codesourcery.com>1994-09-24 21:27:44 +0000
commit4c8b1e07747e2c68ae59a94af4c66277c346d794 (patch)
tree001dee4fd9e0fe33afe45f5a7525ee393a47382f /gas
parent80913b279692fe974b99e2a5fd2d56b75216848b (diff)
downloadgdb-4c8b1e07747e2c68ae59a94af4c66277c346d794.zip
gdb-4c8b1e07747e2c68ae59a94af4c66277c346d794.tar.gz
gdb-4c8b1e07747e2c68ae59a94af4c66277c346d794.tar.bz2
* mpw-make.in (config.h): Add defines from ho-mpw.h directly.
* config/ho-mpw.h: Remove.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog.mpw5
-rw-r--r--gas/mpw-make.in38
2 files changed, 40 insertions, 3 deletions
diff --git a/gas/ChangeLog.mpw b/gas/ChangeLog.mpw
index 59d5f94..f616bdb 100644
--- a/gas/ChangeLog.mpw
+++ b/gas/ChangeLog.mpw
@@ -1,3 +1,8 @@
+Sat Sep 24 14:24:48 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * mpw-make.in (config.h): Add defines from ho-mpw.h directly.
+ * config/ho-mpw.h: Remove.
+
Tue Sep 20 17:32:03 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-config.in: Don't create host.h.
diff --git a/gas/mpw-make.in b/gas/mpw-make.in
index 0de0208..ac50ac8 100644
--- a/gas/mpw-make.in
+++ b/gas/mpw-make.in
@@ -73,15 +73,47 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
"{o}"config.h \Option-f "{o}"config-stamp
-"{o}"config-stamp \Option-f Makefile "{s}"config:ho-mpw.h
+"{o}"config-stamp \Option-f Makefile
Delete -i -y "{o}"config.new "{o}"config-stamp
Echo '#ifndef GAS_VERSION' > "{o}"config.new
Echo '#define GAS_VERSION "{VERSION}"' >> "{o}"config.new
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
- Catenate "{s}"config:ho-mpw.h >> "{o}"config.new
- Echo '#endif /* GAS_VERSION */' >> "{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
+ Echo '#define M_ANSI 1' >> "{o}"config.new
+ Echo '#include <stdlib.h>' >> "{o}"config.new
+ Echo '#include <string.h>' >> "{o}"config.new
+ Echo '#include <memory.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
+ Echo '#define __PTR_TO_INT(P) ((int)(P))' >> "{o}"config.new
+ Echo '#undef __INT_TO_PTR' >> "{o}"config.new
+ Echo '#define __INT_TO_PTR(P) ((char *)(P))' >> "{o}"config.new
+ Echo '#endif' >> "{o}"config.new
+ Echo '#define sys_nerr _sys_nerr' >> "{o}"config.new
+ Echo '#define sys_errlist _sys_errlist' >> "{o}"config.new
+ Echo '#ifdef __STDIO__' >> "{o}"config.new
+ Echo 'FILE *mpw_fopen();' >> "{o}"config.new
+ Echo '#endif' >> "{o}"config.new
+ Echo '#define fopen mpw_fopen' >> "{o}"config.new
+ 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
MoveIfChange "{o}"config.new "{o}"config.h
Echo ' ' >"{o}"config-stamp