X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a89444b19b0ceb41db8db6cfa4e6fa77e26d7759..de7760b87ad8ca38954140a738d66a133f7021f0:/projects/sgauth/build?ds=sidebyside diff --git a/projects/sgauth/build b/projects/sgauth/build index 5ea022a2..82a3dcf6 100755 --- a/projects/sgauth/build +++ b/projects/sgauth/build @@ -20,6 +20,7 @@ if [ "$1" = "debug" ] then DEFS="$DEFS -DDEBUG" MAKEOPTS="$MAKEOPTS -j1" + CFLAGS="$CFLAGS -ggdb3 -W -Wall -Wextra" CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall -Wextra" DEBUG="yes" else @@ -27,8 +28,9 @@ else DEBUG="no" 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 @@ -44,15 +46,13 @@ then 5) OS=bsd5;; 6) OS=bsd5;; 7) OS=bsd7;; - 8) OS=bsd7;; - 9) OS=bsd7;; - *) OS=unknown;; + *) OS=bsd7;; esac MAKE="gmake" fi if [ "$OS" = "unknown" ] -then +then printf "#############################################################################\n" printf "# Sorry, but sgauth currently supported by Linux, FreeBSD 4.x, 5.x, 6.x #\n" printf "#############################################################################\n" @@ -63,10 +63,10 @@ printf "######################################################################## printf " Building sgauth for $sys $release\n" printf "#############################################################################\n" -STG_LIBS="crypto.lib - common.lib - conffiles.lib - ia.lib" +STG_LIBS="crypto.lib + common.lib + conffiles.lib + ia.lib" if [ "$OS" = "linux" ] then