Working on exercise 3-5 but I'm creating some libraries

This commit is contained in:
kdeng00
2020-10-25 22:51:28 -04:00
parent 32a77a1e93
commit 72906bac35
8 changed files with 269 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
if [ ! -d "bin" ]; then
mkdir bin
echo "created bin directory"
fi
if [ ! -d "bin/static" ]; then
mkdir bin/static
echo "created bin/static directory"
fi
gcc -c src/test.c -Iinclude -o bin/static/test.o
# gcc -fPIC src/test.c -Iinclude -o bin/shared/test.o
ar rcs bin/static/libtestlibrary.a bin/static/test.o