2005-05-07 07:53:03 -04:00
|
|
|
#----------------------------------------------------------------------------------------------------------------
|
|
|
|
# Basic File extensions
|
|
|
|
export BINEXT="" # Executable Extension
|
|
|
|
export LIBEXT=".a" # Static Library Extension
|
2007-02-27 06:15:25 -05:00
|
|
|
export DLLEXT=".so" # Dynamic Library Extension
|
2005-05-07 07:53:03 -04:00
|
|
|
export OBJEXT=".o" # Object Extension
|
|
|
|
export LIBPREFIX="lib" # Standard Library Prefix
|
2007-02-27 06:15:25 -05:00
|
|
|
export LIBDIR="lib" # Name of the library directory
|
2005-05-07 07:53:03 -04:00
|
|
|
|
|
|
|
# Compiler and Linker
|
|
|
|
export CC="gcc" # C Compiler
|
|
|
|
export CXX="g++" # C++ Compiler
|
|
|
|
export LINK=$CXX # Executable Linker
|
|
|
|
export DLLLINK="$CXX -shared" # Dynamic Library Linker
|
|
|
|
export LIBLINK="ar cru" # Static Library Linker
|
|
|
|
export DLLRPATH="-Wl,-rpath " # Search Path for Dynamic Libs
|
|
|
|
|
|
|
|
# Compiler and Linker Flags
|
|
|
|
export OUTPUTOBJ="-o" # Compiler flag to specify output object filename
|
|
|
|
export OUTPUTBIN="-o " # Compiler flag to specify output executable filename
|
|
|
|
export PICFLAG="" # Compiler flag to generate position independent code
|
|
|
|
|
2007-02-27 06:15:25 -05:00
|
|
|
if [ $DEFS == "-DDEBUG" ] ; then
|
|
|
|
export CFLAGS="${CFLAGS:--Wall -g -pipe }"
|
|
|
|
export CXXFLAGS="${CXXFLAGS:--Wall -g -pipe}"
|
|
|
|
export LDFLAGS=""
|
|
|
|
elif [ $DEFS == "-DNDEBUG" ] ; then
|
|
|
|
export CFLAGS="${CFLAGS:--Wall -O3 -pipe}"
|
|
|
|
export CXXFLAGS="${CXXFLAGS:--Wall -O3 -pipe}"
|
|
|
|
export LDFLAGS="-s"
|
|
|
|
else
|
|
|
|
export CFLAGS="${CFLAGS:--Wall -pipe}"
|
|
|
|
export CXXFLAGS="${CXXFLAGS:--Wall -pipe}"
|
|
|
|
export LDFLAGS=""
|
|
|
|
fi
|
2005-05-07 07:53:03 -04:00
|
|
|
|
2007-02-27 06:15:25 -05:00
|
|
|
export CPPFLAGS="-I./include -I${LOCALBASE}/include -I${X11BASE}/include ${CPPFLAGS}"
|
2005-05-07 07:53:03 -04:00
|
|
|
export LIBS=""
|
2007-02-27 06:15:25 -05:00
|
|
|
export DEFS="${DEFS}"
|
2005-05-07 07:53:03 -04:00
|
|
|
#----------------------------------------------------------------------------------------------------------------
|
2007-02-27 06:15:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|