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 two process 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
42 fixincludes=fixinc.svr4
47 fixincludes=fixinc.interix
51 fixincludes=fixinc.wrap
56 fixincludes=fixinc.winnt
59 i?86-sequent-ptx* | i?86-sequent-sysv[34]*)
60 fixincludes=fixinc.ptx
82 mips-sgi-irix5cross64 | \
83 powerpc-*-eabiaix* | \
84 powerpc-*-eabisim* | \
87 powerpcle-*-eabisim* | \
89 powerpcle-*-winnt* | \
91 powerpcle-*-cygwin* | \
94 # Don't do any fixing.
100 # IF there is no include fixing,
101 # THEN create a no-op fixer and exit
103 if test -z "$fixincludes"
105 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
110 # IF the fixer is supplied in our source directory,
111 # THEN copy that into place
113 if test -f ${srcdir}/"${fixincludes}"
115 echo copying ${srcdir}/$fixincludes to ${target}
116 cp ${srcdir}/$fixincludes ${target}
121 # OK. We gotta make the thing.
122 # make and install either the binary or the default script
124 defs="SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
125 cmd="$MAKE ${defs} install-bin"