I need to compile various different tiny programs. (One program per .c file.) Currently I wrote a simple shell script that finds all the .c files and runs gcc on each of them. Is it possible to run gcc once and feed it the .c files, instead of running and stopping gcc again and again like this shell script does ?
find "/home/myuser/myfolder" -name "*.c" -type f |
while read filename
do
case $filename in
*.c) gcc $filename -o $var ;;
esac
done
No. You can only compile one program/module at a time.