Finished exercise 3.5

This commit is contained in:
kdeng00
2020-10-31 23:04:13 -04:00
parent 9639c6453e
commit 14318bbebd
6 changed files with 131 additions and 28 deletions
+3 -3
View File
@@ -19,13 +19,13 @@ fi
if [ "$compile_type" = "debug" ]; then
echo "Compiling for debug version"
gcc -c src/hex.c -Iinclude -o bin/static/hex.o -O0
gcc -c src/hex.c -Iinclude -std=gnu99 -o bin/static/hex.o -O0
elif [ "$compile_type" = "release" ]; then
echo "Compiling for release version"
gcc -c src/hex.c -Iinclude -o bin/static/hex.o -O3
gcc -c src/hex.c -Iinclude -std=gnu99 -o bin/static/hex.o -O3
else
echo "Compiling for debug by default"
gcc -c src/hex.c -Iinclude -o bin/static/hex.o -O0
gcc -c src/hex.c -Iinclude -std=gnu99 -o bin/static/hex.o -O0
fi
ar rcs bin/static/libhexoctalconv.a bin/static/hex.o