Usually, make with makefile used for this.
Using this method, you can create your own rules for building code, including bypassing the compilation of a large number of source files, if you only need what you need.
For example, makefile :
prog: main.o other.o makefile gcc -o prog main.o other.o main.o: main.c makefile gcc -c -o main.o main.c other.o: other.c makefile gcc -c -o other.o other.c
will not recompile main.c unless the file you changed was other.c . He simply compiled other.c to do other.o , and then link other.o and main.o together to create a prog .
This is typically done in the command line world. This is probably also how it is done behind the curtains in many IDEs, and is also hidden from you.
What you need to find out is why dependency checking does not work as expected. Without additional information on how your project is set up, itβs a little difficult to decide.
source share