You can't really do that, safely at least...
Changing headers can trigger the need to recompile a bunch of files all over the place.
Note that GCS and firmware compilation is incremental. Only changed files are recompiled.
A full "compile" of GCS with no files changed takes about 30s on my PC. A bit slow but acceptable.
There are a few trick though:
- you can speed up compilation by enabling parallelism (with -j3 for example)
- if you work only on GCS or firmware you can do "make gcs" or "make all_flight" respectively
- if you really now what you are doing, you can specify to compile only a specific GCS directory with the MAKE_DIR option (type "make" and look at the [GCS] section for an example). But this will not work well if you change headers that impact other directories or if you change *.pro file. But still useful when you want to iron out all the compilation errors after a coding stint.
For GCS I use this alias:
alias makegcs='time mingw32-make -j3 --quiet gcs GCS_BUILD_CONF=release'