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 i370-
*-openedition | \
50 powerpc-
*-eabiaix* | \
51 powerpc-
*-eabisim* | \
54 powerpcle-
*-eabisim* | \
56 # Don't do any fixing.
62 # IF there is no include fixing,
63 # THEN create a no-op fixer and exit
65 if test -z "$fixincludes"
67 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
72 # OK. We gotta make the thing.
73 # make and install either the binary or the default script
75 defs
="SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBERTY=\"$LIBERTY\""
76 cmd
="$MAKE ${defs} install-bin"