diff options
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 |