]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/build
Pass debug flags to CFLAGS.
[stg.git] / projects / sgauthstress / build
index 2b1456593dc88da9a43e861ce87358c9f8831e94..825f00b5cde4b0ef7f933f1205ecf9344e4e1a7b 100755 (executable)
@@ -25,6 +25,7 @@ else
     then
         DEFS="-DDEBUG"
         MAKEOPTS="-j1"
     then
         DEFS="-DDEBUG"
         MAKEOPTS="-j1"
+        CFLAGS="$CFLAGS -ggdb3 -W -Wall"
         CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
         DEBUG="yes"
     else
         CXXFLAGS="$CXXFLAGS -ggdb3 -W -Wall"
         DEBUG="yes"
     else
@@ -33,8 +34,9 @@ else
     fi
 fi
 
     fi
 fi
 
+CFLAGS="$CFLAGS -I/usr/local/include"
 CXXFLAGS="$CXXFLAGS -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
 
 if [ "$sys" = "Linux" ]
 then