##############################################################################
# File...: /armedslack/source/armslack-utils/arm-c-make-envs
# Purpose: Set environment variables for make & gcc for ARM.
# Author : Stuart Winter <stuart@polplex.co.uk>
# Date...: 26-Apr-2003
##############################################################################

# You WILL need to have done
#    source arm-baseenvs.sh 
# before you can use this.

export PS1="\W $CROSSPREFIX> "
export CC=${CROSSPREFIX}gcc
export GCC=${CROSSPREFIX}gcc
#export CPP="${CROSSPREFIX}gcc -E"
export CXX=${CROSSPREFIX}c++
export GXX=${CROSSPREFIX}g++
export LD=${CROSSPREFIX}gcc
export AS=${CROSSPREFIX}as
# setting AR is causing problems.  zlib is one of them and I think gawk too.
export AR=${CROSSPREFIX}ar
export RANLIB=${CROSSPREFIX}ranlib
export STRIP=${CROSSPREFIX}strip
export IMAKECPP=${CROSSPREFIX}cpp
arch=arm-linux

# You'll probably *never* want to set the below! 
#export MAKEFLAGS="CC=$CC GCC=$GCC CXX=$CXX GXX=$GXX LD=$LD AS=$AS AR=$AR RANLIB=$RANLIB STRIP=$STRIP IMAKECPP=$IMAKECPP"

# You should consider setting some of these on a per 'blah.build' basis
# otherwise you'll probably find that configure scripts will break or
# makes will fail.  The minimum CFLAGS you want are
# -below:
#export CFLAGS="-O2 ${ARMCFLAGS} -I${ARMSLACKBINHOME}/usr/include/ -I${ARMCROSSINCLUDE2}/"
#export CPPFLAGS="-O2 -I${ARMSLACKBINHOME}/usr/include/ -I${ARMCROSSINCLUDE2} -I${ARMKERNELPATH}/include/"
#export CXXFLAGS="-O2 -I${ARMSLACKBINHOME}/usr/include/ -I${ARMCROSSINCLUDE2} -I${ARMKERNELPATH}/include/"
#export LDFLAGS="-L${ARMSLACKBINHOME}/usr/lib/ -L${ARMSLACKBINHOME}/lib/"
#export LDFLAGS="-L${ARMSLACKBINHOME}/usr/lib/"

#EOF
