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
+2 -1
View File
@@ -8,8 +8,9 @@ if [ ! -d "bin/static" ]; then
echo "created bin/static directory"
fi
gcc -c src/test.c -Iinclude -o bin/static/test.o
gcc -c src/test.c -Iinclude -o -std=gnu99 bin/static/test.o
# For shared libraries.
# gcc -fPIC src/test.c -Iinclude -o bin/shared/test.o
ar rcs bin/static/libtestlibrary.a bin/static/test.o