X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/611e9aeab755acbfbccd42006c2b769d5843cbe5..55e291c991d3132ad4e5b5513a04bbce779e2b6c:/projects/sgconv/build diff --git a/projects/sgconv/build b/projects/sgconv/build index 471ee62c..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 @@ -46,13 +55,13 @@ fi 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