aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-make.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-09-21 00:45:25 +0000
committerStan Shebs <shebs@codesourcery.com>1994-09-21 00:45:25 +0000
commitbaf6f14970fdc2461dc03d1d8e3a7df98182a442 (patch)
tree596a8ccaa7e0f1f12030f8266088aad8fcb34ee6 /gas/mpw-make.in
parent40e4117a028fa359567060d058ca135ce9db8801 (diff)
downloadgdb-baf6f14970fdc2461dc03d1d8e3a7df98182a442.zip
gdb-baf6f14970fdc2461dc03d1d8e3a7df98182a442.tar.gz
gdb-baf6f14970fdc2461dc03d1d8e3a7df98182a442.tar.bz2
* mpw-config.in: Don't create host.h.
* mpw-make.in (config.h): Add in contents of ho-mpw.h. * config/ho-mpw.h (TRUE_FALSE_ALREADY_DEFINED, WANT_FOPEN_BIN, HAVE_ERRNO_H): Define.
Diffstat (limited to 'gas/mpw-make.in')
-rw-r--r--gas/mpw-make.in22
1 files changed, 8 insertions, 14 deletions
diff --git a/gas/mpw-make.in b/gas/mpw-make.in
index 185b66a..0de0208 100644
--- a/gas/mpw-make.in
+++ b/gas/mpw-make.in
@@ -73,21 +73,15 @@ as.new \Option-f\Option-f {OBJECTS} {TARG_OBJECTS} {CLIBS}
"{o}"config.h \Option-f "{o}"config-stamp
-"{o}"config-stamp \Option-f Makefile
+"{o}"config-stamp \Option-f Makefile "{s}"config:ho-mpw.h
Delete -i -y "{o}"config.new "{o}"config-stamp
- echo '#ifndef GAS_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
- echo '#define GAS_VERSION "{VERSION}"' >> "{o}"config.new
-# if [ "$(defs)" != "" ]; then \
-# for d in .. $(defs) ; do \
-# if [ "$$d" != ".." ]; then \
-# echo "#define $$d" >> "{o}"config.new ; \
-# else true; fi; \
-# done ; \
-# else true; fi
- echo '#endif /* GAS_VERSION */' >> "{o}"config.new
+ 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
MoveIfChange "{o}"config.new "{o}"config.h
Echo ' ' >"{o}"config-stamp