Relative Content

Tag Archive for makefilegnu-make

Makefile: implicit rule with sub dirs

How to write an implicit rule to cover all sources in a sub directory with more sub directories and build objects in the current directory? Here is an example:

Serialize specific build targets during build process

I am facing fatal error C1060: compiler is out of heap space issue on Windows OS while compiling specific .c files in my project. Those .c files are huge and they eat memory when i run the build in -j%NUMBER_OF_PROCESSORS% which will consume all available cpu cores (i.e 20) and results to memory issues. I try to reduce no of cores to -j10, But still i face heap space issues intermittently.