8 echo No target system name given
12 # If we don't get two arguments, then assume both arguments
22 echo constructing ${target} for $machine to run on $build
23 fixincludes="${machine}"
25 # Choose fix build method by build system
28 MAKE="${MAKE} -f ${srcdir}/Makefile.DOS srcdir=${srcdir}"
32 MAKE="${MAKE} -f ${srcdir}/Makefile.BEOS srcdir=${srcdir}"
33 # Remove the following line to enable fixincludes
34 # (Makefile.BEOS is empty until Monday 12/4/00 :)
39 MAKE="${MAKE} -f Makefile"
43 # Check for special fix rules for particular targets
48 fixincludes=fixinc.svr4
53 fixincludes=fixinc.interix
58 fixincludes=fixinc.wrap
63 fixincludes=fixinc.winnt
66 i?86-sequent-ptx* | i?86-sequent-sysv[34]*)
67 fixincludes=fixinc.ptx
71 arm-semi-aout | armel-semi-aout | \
72 arm-semi-aof | armel-semi-aof | \
81 i?86-moss-msdos* | i?86-*-moss* | \
84 i?86-*-pe | i?86-*-cygwin* | \
87 mips-sgi-irix5cross64 | \
88 powerpc-*-eabiaix* | \
89 powerpc-*-eabisim* | \
92 powerpcle-*-eabisim* | \
94 powerpcle-*-winnt* | \
95 powerpcle-*-pe | powerpcle-*-cygwin* | \
96 thumb-*-coff* | thumbel-*-coff* )
101 # IF there is no include fixing,
102 # THEN create a no-op fixer and exit
104 if test -z "$fixincludes"
106 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
111 # IF the fixer is supplied in our source directory,
112 # THEN copy that into place
114 if test -f ${srcdir}/"${fixincludes}"
116 echo copying ${srcdir}/$fixincludes to ${target}
117 cp ${srcdir}/$fixincludes ${target}
122 # OK. We gotta make the thing.
123 # make and install either the binary or the default script
125 defs="SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
126 cmd="$MAKE ${defs} install-bin"