Compile all C files in all of the children directories

308 Views Asked by At

So, I'm making a game with raylib and I need to compile all the .c files at once.

The files are in separate folder inside the 1st one(Like "MainFolder/PlayerFiles").

I know how that gcc -o game *.c -L/usr/local/lib -lraylib compiles all the files inside the directory and creates a exec.

How can I compile all the .c files in all of the children folders.

Thanks in advance!!!

0

There are 0 best solutions below