I have multiple c source files. I would like to compile them via script. I know i can do this via makefile, but i prefer simple script instead.
I feel makefiles are too complex, so i'm looking for simple script to compile mulitple files and then create a shared library in Linux(GNU).
I know how to compile/build shared library using terminal so just want to run my command from simple script.
gcc -c -Wall tbl0.c tbl1.c tbl2.c
gcc -shared -Wall -o libtbl.so tbl.c -I.
-Wl,-z,defs -L. -lpthread -lm -ldl
Any help?