X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8569ecdc2c9368dc0fe650b901cce7b37337ffec..8e4f33741f54f48c28f04e74f1f3c0757723c111:/projects/sgauthstress/build?ds=sidebyside diff --git a/projects/sgauthstress/build b/projects/sgauthstress/build index 2b145659..29b10675 100755 --- a/projects/sgauthstress/build +++ b/projects/sgauthstress/build @@ -25,6 +25,7 @@ else then DEFS="-DDEBUG" MAKEOPTS="-j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall" DEBUG="yes" else @@ -33,8 +34,9 @@ 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 @@ -58,7 +60,7 @@ 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" @@ -70,9 +72,8 @@ printf " Building sgauthstress for $sys $release\n" printf "#############################################################################\n" STG_LIBS="logger.lib - locker.lib - crypto.lib - common.lib + crypto.lib + common.lib conffiles.lib dotconfpp.lib" @@ -297,4 +298,10 @@ printf "BIN_MODE=$BIN_MODE\n" >> $CONFFILE 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