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 CFLAGS
="${CFLAGS} -Dexit=xexit -Datexit=xatexit"
28 MAKE
="${MAKE} TARGETS=oneprocess"
32 MAKE
="${MAKE} TARGETS=oneprocess"
36 # Check for special fix rules for particular targets
39 fixincludes
=fixinc.svr4
44 fixincludes
=fixinc.interix
48 fixincludes
=fixinc.wrap
53 fixincludes
=fixinc.winnt
56 i?
86-sequent-ptx* | i?
86-sequent-sysv[34]*)
57 fixincludes
=fixinc.
ptx
61 arm-semi-aout | armel-semi-aout | \
62 arm-semi-aof | armel-semi-aof | \
69 i?
86-moss-msdos* | i?
86-*-moss* | \
72 i?
86-*-pe | i?
86-*-cygwin* | \
75 mips-sgi-irix5cross64 | \
76 powerpc-
*-eabiaix* | \
77 powerpc-
*-eabisim* | \
80 powerpcle-
*-eabisim* | \
82 powerpcle-
*-winnt* | \
83 powerpcle-
*-pe | powerpcle-
*-cygwin* | \
84 thumb-
*-coff* | thumbel-
*-coff* )
89 # IF there is no include fixing,
90 # THEN create a no-op fixer and exit
92 if test -z "$fixincludes"
94 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
99 # IF the fixer is supplied in our source directory,
100 # THEN copy that into place
102 if test -f ${srcdir}/"${fixincludes}"
104 echo copying
${srcdir}/$fixincludes to
${target}
105 cp ${srcdir}/$fixincludes ${target}
110 # OK. We gotta make the thing.
111 # make and install either the binary or the default script
113 defs
="SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
114 cmd
="$MAKE ${defs} install-bin"