medit/cygwin-configure

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2005-06-22 11:20:32 -07:00
#!/bin/sh
if [ -z $CYGWIN_BIN_DIR ]; then
2005-11-05 05:12:50 -08:00
CYGWIN_BIN_DIR=/opt/cygwin/bin
2005-06-22 11:20:32 -07:00
fi
TARGET=i686-pc-cygwin
2005-11-05 05:12:50 -08:00
export PATH=/opt/cygwin/i686-pc-cygwin/bin:/opt/cygwin/bin:$PATH
2005-06-22 11:20:32 -07:00
export ADDR2LINE="$CYGWIN_BIN_DIR/$TARGET-addr2line"
export AR="$CYGWIN_BIN_DIR/$TARGET-ar"
export AS="$CYGWIN_BIN_DIR/$TARGET-as"
export CC="$CYGWIN_BIN_DIR/$TARGET-gcc"
export CPP="$CYGWIN_BIN_DIR/$TARGET-cpp"
export CPPFILT="$CYGWIN_BIN_DIR/$TARGET-c++filt"
export CXX="$CYGWIN_BIN_DIR/$TARGET-g++"
export DLLTOOL="$CYGWIN_BIN_DIR/$TARGET-dlltool"
export DLLWRAP="$CYGWIN_BIN_DIR/$TARGET-dllwrap"
export GCOV="$CYGWIN_BIN_DIR/$TARGET-gcov"
export LD="$CYGWIN_BIN_DIR/$TARGET-ld"
export NM="$CYGWIN_BIN_DIR/$TARGET-nm"
export OBJCOPY="$CYGWIN_BIN_DIR/$TARGET-objcopy"
export OBJDUMP="$CYGWIN_BIN_DIR/$TARGET-objdump"
export RANLIB="$CYGWIN_BIN_DIR/$TARGET-ranlib"
export READELF="$CYGWIN_BIN_DIR/$TARGET-readelf"
export SIZE="$CYGWIN_BIN_DIR/$TARGET-size"
export STRINGS="$CYGWIN_BIN_DIR/$TARGET-strings"
export STRIP="$CYGWIN_BIN_DIR/$TARGET-strip"
export WINDRES="$CYGWIN_BIN_DIR/$TARGET-windres"
export CFLAGS="-O3 -g0 -march=i686 -mms-bitfields"
export CXXFLAGS="-O3 -g0 -march=i686 -mms-bitfields"
if [ "x$CONFIGURE" = "x" ]; then
CONFIGURE="configure"
if [ ! -e $CONFIGURE ]; then
CONFIGURE=`dirname $0`/configure
fi
if [ ! -e $CONFIGURE ]; then
echo "Can't find configure script"
exit 1
fi
fi
sh $CONFIGURE --target=$TARGET --host=$TARGET $*
exit $?