X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b3139bf3f37b3b0244efea8b4b5e5a7d0bc90095..e3cdee36859207bc21ab469aff0d8846a738f6ed:/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