8 echo No build system name given
14 echo No machine name given
20 echo constructing ${target} for $machine to run on $build
21 fixincludes="${machine}"
23 # Choose fix build method by build system
26 MAKE="${MAKE} -f ${srcdir}/Makefile.DOS srcdir=${srcdir}"
30 MAKE="${MAKE} -f ${srcdir}/Makefile.BEOS srcdir=${srcdir}"
31 # Remove the following line to enable fixincludes
32 # (Makefile.BEOS is empty until Monday 12/4/00 :)
37 MAKE="${MAKE} -f Makefile"
41 # Check for special fix rules for particular targets
46 fixincludes=fixinc.svr4
51 fixincludes=fixinc.interix
56 fixincludes=fixinc.wrap
61 fixincludes=fixinc.winnt
64 i?86-sequent-ptx* | i?86-sequent-sysv[34]*)
65 fixincludes=fixinc.ptx
69 arm-semi-aout | armel-semi-aout | \
70 arm-semi-aof | armel-semi-aof | \
79 i?86-moss-msdos* | i?86-*-moss* | \
82 i?86-*-pe | i?86-*-cygwin* | \
85 mips-sgi-irix5cross64 | \
86 powerpc-*-eabiaix* | \
87 powerpc-*-eabisim* | \
90 powerpcle-*-eabisim* | \
92 powerpcle-*-winnt* | \
93 powerpcle-*-pe | powerpcle-*-cygwin* | \
94 thumb-*-coff* | thumbel-*-coff* )
99 # IF there is no include fixing,
100 # THEN create a no-op fixer and exit
102 if test -z "$fixincludes"
104 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
109 # IF the fixer is supplied in our source directory,
110 # THEN copy that into place
112 if test -f ${srcdir}/"${fixincludes}"
114 echo copying ${srcdir}/$fixincludes to ${target}
115 cp ${srcdir}/$fixincludes ${target}
120 # OK. We gotta make the thing.
121 # make and install either the binary or the default script
123 defs="SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
124 cmd="$MAKE ${defs} install-bin"