help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: source and objfiles on different paths


From: Riccardo Manfrin
Subject: Re: source and objfiles on different paths
Date: Sat, 08 Jun 2013 00:46:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]