then
DEFS="-DDEBUG"
MAKEOPTS="-j1"
+ CFLAGS="$CFLAGS -ggdb3 -W -Wall"
CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
DEBUG="yes"
else
fi
fi
+CFLAGS="$CFLAGS -I/usr/local/include"
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
-LDFLAGS="$CXXFLAGS -L/usr/local/lib"
+LDFLAGS="$LDFLAGS -L/usr/local/lib"
if [ "$sys" = "Linux" ]
then
fi
if [ "$OS" = "unknown" ]
-then
+then
printf "################################################################################\n"
printf "# Sorry, but sgauthstress currently supported by Linux, FreeBSD 4.x-8.x #\n"
printf "################################################################################\n"
printf "#############################################################################\n"
STG_LIBS="logger.lib
- locker.lib
- crypto.lib
- common.lib
+ crypto.lib
+ common.lib
conffiles.lib
dotconfpp.lib"
printf "DATA_MODE=$DATA_MODE\n" >> $CONFFILE
printf "DIR_MODE=$DIR_MODE\n" >> $CONFFILE
printf "OWNER=$OWNER\n" >> $CONFFILE
-$MAKE $MAKEOPTS
+
+if [ "$1" != "debug" ]
+then
+ $MAKE $MAKEOPTS
+else
+ printf "\n\n\nDebug build. Type $MAKE explicitly\n"
+fi