mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 23:26:25 +01:00
Add compile flags
This commit is contained in:
parent
77911169e7
commit
0fc6271828
4
make.sh
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user