The Basics: VPATH and vpath

[article]

$(COMPILE.c) $(OUTPUT_OPTION) $<

This Makefile is much simpler than the equivalent vpath version and it's easy to debug.  The locations of sources and objects is easy to find and change, and there's no risk of a vpath search doing the wrong thing.


 

About the author

AgileConnection is one of the growing communities of the TechWell network.

Featuring fresh, insightful stories, TechWell.com is the place to go for what is happening in software development and delivery.  Join the conversation now!