diff options
author | Stan Shebs <shebs@codesourcery.com> | 1995-09-29 03:07:08 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1995-09-29 03:07:08 +0000 |
commit | d1e46898ffce600fb1412190967ff04524d2153b (patch) | |
tree | e4cdea49d70e5b933e53a56eca3dae05ce21a778 /binutils/mpw-config.in | |
parent | 63c67f3c43ad7bac586d2aa553878fead11803d0 (diff) | |
download | gdb-d1e46898ffce600fb1412190967ff04524d2153b.zip gdb-d1e46898ffce600fb1412190967ff04524d2153b.tar.gz gdb-d1e46898ffce600fb1412190967ff04524d2153b.tar.bz2 |
* mpw-config.in: Calculate underscore and put into makefile
fragment, generate config.h.
* mpw-make.sed: New file, sed commands to edit Unix makefile
into MPW syntax.
* mpw-make.in: Remove.
* mac-binutils.r: New file, Mac resources.
Diffstat (limited to 'binutils/mpw-config.in')
-rw-r--r-- | binutils/mpw-config.in | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/binutils/mpw-config.in b/binutils/mpw-config.in index 50e22b8..90ea628 100644 --- a/binutils/mpw-config.in +++ b/binutils/mpw-config.in @@ -6,9 +6,18 @@ Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'` Set archname ARCH_{target_arch} -Echo '# From mpw-config.in' > "{o}"mk.tmp +Set underscore 0 -Echo "ARCHDEFS = -d" {archname} >> "{o}"mk.tmp -Echo "TDEFINES = " >> "{o}"mk.tmp +If "{target_canonical}" =~ /sh-hitachi-hms/ + Set underscore 1 +End If -Echo '# End from mpw-config.in' >> "{o}"mk.tmp +Echo '# From mpw-config.in' > "{o}"mk.tmp +Echo "ARCHDEFS = -d" {archname} >> "{o}"mk.tmp +Echo "UNDERSCORE = " {underscore} >> "{o}"mk.tmp +Echo '# End from mpw-config.in' >> "{o}"mk.tmp + +Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new +Echo '#include "mpw.h"' >> "{o}"config.new + +MoveIfChange "{o}"config.new "{o}"config.h |