Finished exercise 3.5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user