On 06/07/2013 03:15 PM, Jed Brown wrote:
Your solution is cool but will recreate the source's directory structure
in my build path (plus needs secondexpansion).
If I wanted to keep all obj code in the same folder what would I need to do?
You can use VPATH to locate the source files (combined with a
$(OBJDIR)/%.o rule), but be careful of object file name collisions.
Great (I hadn't documented on VPATH at the time you first wrote the answer).
For completeness I'd like to cite this other post I found around:

http://stackoverflow.com/questions/9732068/makefile-remove-from-path

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to