How to Build Object Files in a Separate Directory with GNU make
Summary Goal: Build object files that live in a different directory from the source files without duplicating rules. Solution: Use pattern rules together with vpath or explicit prerequisite lists that point to the source directory, and let GNU make automatically place the resulting .o files in the object directory. Root Cause The original Makefile mixed source … Read more