| 1 | # Configuration fragment for binutils. |
| 2 | |
| 3 | Set target_arch `echo {target_canonical} | sed -e 's/-.*-.*//'` |
| 4 | |
| 5 | # (should canonicalize arch name) */ |
| 6 | |
| 7 | Set archname ARCH_{target_arch} |
| 8 | |
| 9 | Set underscore 0 |
| 10 | |
| 11 | If "{target_canonical}" =~ /sh-hitachi-hms/ |
| 12 | Set underscore 1 |
| 13 | End If |
| 14 | |
| 15 | Echo '# From mpw-config.in' > "{o}"mk.tmp |
| 16 | Echo "ARCHDEFS = -d" {archname} >> "{o}"mk.tmp |
| 17 | Echo "UNDERSCORE = " {underscore} >> "{o}"mk.tmp |
| 18 | Echo "BUILD_NLMCONV = " >> "{o}"mk.tmp |
| 19 | Echo "BUILD_SRCONV = " >> "{o}"mk.tmp |
| 20 | Echo "SYSINFO_PROG = " >> "{o}"mk.tmp |
| 21 | Echo "BUILD_DLLTOOL = " >> "{o}"mk.tmp |
| 22 | Echo '# End from mpw-config.in' >> "{o}"mk.tmp |
| 23 | |
| 24 | Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new |
| 25 | Echo '#include "mpw.h"' >> "{o}"config.new |
| 26 | |
| 27 | MoveIfChange "{o}"config.new "{o}"config.h |