Use a proper project file. Add:
for Languages use ("Ada", "C");
gprbuild knows how to compile C files. That is all.