5 echo "Usage: $0 <build-mach-triplet> <target-mach-triplet>"
13 echo constructing
${target} for $machine to run on
$build
14 fixincludes
="${machine}"
16 # Choose one or two-process fix methodology. Systems that cannot handle
17 # bi-directional pipes must use the twoprocess method.
20 i?
86-*-msdosdjgpp* | \
22 MAKE
="${MAKE} TARGETS=twoprocess"
23 CFLAGS
="${CFLAGS} -DSEPARATE_FIX_PROC"
27 MAKE
="${MAKE} TARGETS=oneprocess"
31 # Check for special fix rules for particular targets
36 fixincludes
=fixinc.svr4
41 fixincludes
=fixinc.interix
45 fixincludes
=fixinc.wrap
50 fixincludes
=fixinc.winnt
53 i?
86-sequent-ptx* | i?
86-sequent-sysv[34]*)
54 fixincludes
=fixinc.
ptx
58 arm-semi-aout | armel-semi-aout | \
59 arm-semi-aof | armel-semi-aof | \
66 i?
86-moss-msdos* | i?
86-*-moss* | \
69 i?
86-*-pe | i?
86-*-cygwin* | \
72 mips-sgi-irix5cross64 | \
73 powerpc-
*-eabiaix* | \
74 powerpc-
*-eabisim* | \
77 powerpcle-
*-eabisim* | \
79 powerpcle-
*-winnt* | \
80 powerpcle-
*-pe | powerpcle-
*-cygwin* | \
81 thumb-
*-coff* | thumbel-
*-coff* )
86 # IF there is no include fixing,
87 # THEN create a no-op fixer and exit
89 if test -z "$fixincludes"
91 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
96 # IF the fixer is supplied in our source directory,
97 # THEN copy that into place
99 if test -f ${srcdir}/"${fixincludes}"
101 echo copying
${srcdir}/$fixincludes to
${target}
102 cp ${srcdir}/$fixincludes ${target}
107 # OK. We gotta make the thing.
108 # make and install either the binary or the default script
110 defs
="SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
111 cmd
="$MAKE ${defs} install-bin"