diff --git a/make.sh b/make.sh index 80f69c5..db0cb65 100755 --- a/make.sh +++ b/make.sh @@ -1,10 +1,12 @@ #!/bin/bash +FLAGS="-std=c99 -lm" + if [[ $1 == "preview" ]]; then [[ $2 ]] || set -- "$1" "build" if [[ $2 == "build" ]]; then mkdir -p out - gcc src/mnist/preview.c -o out/preview_mnist + gcc src/mnist/preview.c -o out/preview_mnist $FLAGS exit elif [[ $2 == "train" ]]; then [[ -f out/preview_mnist ]] || $0 preview build