DIR_MODE=0755
OWNER=root
VAR_DIR="./inst/var/stargazer"
-DEFS="-DDEBUG"
-MAKEOPTS="-j1"
+
+if [ "$1" = "debug" ]
+then
+ DEFS="$DEFS -DDEBUG"
+ MAKEOPTS="$MAKEOPTS -j1"
+ CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra"
+ DEBUG="yes"
+else
+ DEFS="$DEFS -DNDEBUG"
+ DEBUG="no"
+fi
+
CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
-DEBUG="yes"
if [ "$sys" = "Linux" ]
then
if [ "$OS" = "unknown" ]
then
echo "#############################################################################"
- echo "# Sorry, but convertor currently supported by Linux, FreeBSD 4.x, 5.x, 6.x #"
+ echo "# Sorry, but sgconv currently supported by Linux, FreeBSD 4.x, 5.x, 6.x #"
echo "#############################################################################"
exit 1
fi
echo "#############################################################################"
-echo " Building convertor for $sys $release"
+echo " Building sgconv for $sys $release"
echo "#############################################################################"
STG_LIBS="logger.lib