X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/517400b7934a39872ffa02370ac7aa1264bec114..a5ab34fe53b0dca6307703664c6a1bc5bab1bae8:/projects/sgconv/build diff --git a/projects/sgconv/build b/projects/sgconv/build index 601c0161..5084bd0d 100755 --- a/projects/sgconv/build +++ b/projects/sgconv/build @@ -16,11 +16,20 @@ DATA_MODE=0644 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