I have tried to install and use ccache to speed up compilation of big project (compilation time ~45 seconds). However I can't quite figure out how is it supposed to work. In the manual it states that it is working only when compiling single file, but when I change my gcc command from *.cpp to main.cpp then linker instantly starts complaining and the only fix I have found is including *.cpp back. But then ccache won't cache anything because it is compiling multiple files. So how are you supposed to actually use ccache in project divided in multiple files?