Building C-program “out of source tree” with GNU make
问题 I would like to build a C-project for my microcontroller with the GNU make tool. I would like to do it in a clean way, such that my source code is not cluttered with object files and other stuff after the build. So imagine that I have a project folder, called \"myProject\" with two folders in it: - myProject | |---+ source | \'---+ build The build folder only contains a makefile. The figure below shows what should happen when I run the GNU make tool: So GNU make should create an object file