Compile all C files in all of the children directories

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!!!

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum