summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJuan Manuel Tomas <jtomas1815@gmail.com>2022-01-20 04:56:45 -0300
committerJuan Manuel Tomas <jtomas1815@gmail.com>2022-01-20 04:56:45 -0300
commit9384448fd3e54d9d787d7c35bc1069487ab07d88 (patch)
tree9e77f745047ab62b320a87befb818798989f3f11 /build.sh
parent53ab36dc7b21f6bb5ebed3130fb026b0779122fe (diff)
downloadcannons-9384448fd3e54d9d787d7c35bc1069487ab07d88.tar.gz
cannons-9384448fd3e54d9d787d7c35bc1069487ab07d88.zip
Separate most platform code into separate file
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 850e2a2..287fd6c 100755
--- a/build.sh
+++ b/build.sh
@@ -1,3 +1,4 @@
-gcc -Wall -pedantic -O0 -c main.c -o main.o && \
+flags=-Wall -pedantic -O0
+gcc $flags -O0 -c main.c -o main.o && \
gcc main.o -lSDL2 -o main && \
./main