# 2011 kameda[at]iit.tsukuba.ac.jp
# for Introduction to Computing 2, ESYS, U-Tsukuba.

# ubuntu@ubuntu: $ bash ./AutoLibBuilder1.bash

# Making my own library 

echo Compiling source files ...

gcc -Wall -c ic2wk1-MyFuncLib-Input.c
gcc -Wall -c ic2wk1-MyFuncLib-Square-And-Double.c
gcc -Wall -c ic2wk1-MyFuncLib-Divide3.c
gcc -Wall -c ic2wk1-MyFuncLib-RepeatTwice.c

echo Merging all the object files and make my library ...

# Library name is lib*.a, and it will be refered as -l*
ar -rc libMyFunc.a ic2wk1-MyFuncLib-Input.o ic2wk1-MyFuncLib-Square-And-Double.o ic2wk1-MyFuncLib-Divide3.o ic2wk1-MyFuncLib-RepeatTwice.o

echo done.

exit 0
