X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d49162286e811faacd7d7f3277da61efdfb635db..9324854ca8e3b5e09a16010e14860b530d68405f:/projects/sgconf/build diff --git a/projects/sgconf/build b/projects/sgconf/build index da81773a..a8a675be 100755 --- a/projects/sgconf/build +++ b/projects/sgconf/build @@ -16,21 +16,15 @@ DATA_MODE=0644 DIR_MODE=0755 OWNER=root -if [ -z $1 ] +if [ "$1" = "debug" ] then - MAKEOPTS="-j1" - DEBUG="no" + DEFS="$DEFS -DDEBUG" + MAKEOPTS="$MAKEOPTS -j1" + CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" + DEBUG="yes" else - if [ "$1" = "debug" ] - then - DEFS="-DDEBUG" - MAKEOPTS="-j1" - CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall" - DEBUG="yes" - else - MAKEOPTS="-j1" - DEBUG="no" - fi + DEFS="$DEFS -DNDEBUG" + DEBUG="no" fi CXXFLAGS="$CXXFLAGS -I/usr/local/include"