2003-03-04 05:04:36 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
2006-09-22 17:43:05 +02:00
|
|
|
if test ! -r ./sql/mysqld.cc
|
|
|
|
then
|
|
|
|
echo "you must start from the top source directory"
|
|
|
|
exit 1
|
|
|
|
fi
|
2003-03-04 05:04:36 +01:00
|
|
|
|
2006-09-22 17:43:05 +02:00
|
|
|
# The base path(in wineformat) where compilers, includes and
|
|
|
|
# libraries are installed
|
|
|
|
if test -z $MYDEV
|
|
|
|
then
|
|
|
|
# the default is "F:/mydev"
|
|
|
|
export MYDEV="F:/mydev"
|
|
|
|
fi
|
|
|
|
echo "MYDEV: $MYDEV"
|
2003-03-04 05:04:36 +01:00
|
|
|
|
2006-09-22 17:43:05 +02:00
|
|
|
# Get current dir
|
|
|
|
BUILD_DIR=`pwd`
|
|
|
|
echo "BUILD_DIR: $BUILD_DIR"
|
|
|
|
|
|
|
|
# Get current dir in wine format
|
|
|
|
base=`echo $MYDEV |sed 's/\/.*//'`
|
|
|
|
base_unix_part=`winepath -- -u $base`
|
|
|
|
WINE_BUILD_DIR=`echo "$BUILD_DIR" | sed 's_'$base_unix_part'/__'`
|
|
|
|
WINE_BUILD_DIR="$base$WINE_BUILD_DIR"
|
|
|
|
echo "WINE_BUILD_DIR: $WINE_BUILD_DIR"
|
|
|
|
|
2006-09-26 16:25:01 +02:00
|
|
|
export MWCNWx86Includes="$MYDEV/libc/include;$MYDEV/fs64/headers;$MYDEV/zlib-1.2.3;$WINE_BUILD_DIR/include;$MYDEV"
|
|
|
|
export MWNWx86Libraries="$MYDEV/libc/imports;$MYDEV/mw/lib;$MYDEV/fs64/imports;$MYDEV/zlib-1.2.3;$MYDEV/openssl;$WINE_BUILD_DIR/netware/BUILD"
|
2004-05-25 21:54:00 +02:00
|
|
|
export MWNWx86LibraryFiles="libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib;libz.a;neb.imp;zPublics.imp;knetware.imp"
|
2003-03-04 05:04:36 +01:00
|
|
|
|
|
|
|
export WINEPATH="$MYDEV/mw/bin"
|
|
|
|
|
2006-09-22 17:43:05 +02:00
|
|
|
# the default added path is "$BUILD_DIR/netware/BUILD"
|
|
|
|
export PATH="$PATH:$BUILD_DIR/netware/BUILD"
|
2003-03-04 05:04:36 +01:00
|
|
|
|
|
|
|
export AR='mwldnlm'
|
|
|
|
export AR_FLAGS='-type library -o'
|
|
|
|
export AS='mwasmnlm'
|
|
|
|
export CC='mwccnlm -gccincludes'
|
2005-10-13 17:23:53 +02:00
|
|
|
export CFLAGS='-enum int -align 8 -proc 686 -relax_pointers -dialect c'
|
2003-03-04 05:04:36 +01:00
|
|
|
export CXX='mwccnlm -gccincludes'
|
2005-10-13 17:23:53 +02:00
|
|
|
export CXXFLAGS='-enum int -align 8 -proc 686 -relax_pointers -dialect c++ -bool on -wchar_t on -D_WCHAR_T'
|
2003-03-04 05:04:36 +01:00
|
|
|
export LD='mwldnlm'
|
2004-01-12 23:15:49 +01:00
|
|
|
export LDFLAGS='-entry _LibCPrelude -exit _LibCPostlude -map -flags pseudopreemption'
|
2003-03-04 05:04:36 +01:00
|
|
|
export RANLIB=:
|
|
|
|
export STRIP=:
|