3
if [ -z "$CWINSTALL" ] ; then
4
echo "ERROR: You need to source 'mwvars' to set CWINSTALL and other variables"
8
if [ `expr "$MWMacOSXPPCLibraryFiles" : ".*BSD.*"` = 0 ] ; then
9
echo "ERROR: You need to source 'mwvars' with the 'bsd' argument"
13
# ==============================================================================
15
# Extra options that don't change
17
PREOPTS="-D__SCHAR_MAX__=127 -D__CHAR_BIT__=8 -ext o -gccinc"
18
PREOPTS="$PREOPTS -wchar_t on -bool on -relax_pointers -align power_gcc"
19
PREOPTS="$PREOPTS -stabs all -fno-handle-exceptions -Cpp_exceptions off"
21
# ==============================================================================
23
# We want the "PPC Specific" directory to be last, before the source
24
# file. It is to work around a CodeWarrior/Apple bug, that we need a
25
# Metrowersk header even though we have configured CodeWarrior to use
26
# the BSD headers. But not to conflict, the directory has to be last.
28
# FIXME this will probably break if one path contains space characters
34
# This is a flag some version of libtool adds, when the host
35
# is "*darwin*". It doesn't check that it is gcc.
36
# FIXME add some flag?!
47
#echo "mwcc $PREOPTS $PREARGS -I\"$CWINSTALL/MacOS X Support/Headers/PPC Specific\" $*"
48
exec mwcc $PREOPTS $PREARGS -I"$CWINSTALL/MacOS X Support/Headers/PPC Specific" $*