help-make
[Top][All Lists]
Advanced

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

Re: Several source dirs, but one flat objdir


From: Boris Kolpackov
Subject: Re: Several source dirs, but one flat objdir
Date: Wed, 18 Aug 2004 15:39:58 +0000 (UTC)
User-agent: nn/6.6.5+RFC1522

address@hidden (Alexander Farber) writes:


> Is VPATH (or "vpath %.c") meant for this kind of problems?

Yes, vpath would probably be appropriate.


> I'm worried that if I use VPATH, then I'll have filenames
> clashes (ok, the current batch/perl system would have them too).

You get what you ask for.

 
> Is there maybe another way to solve it (by some string manipulations)?

The proper way of doing what you want would be to reproduce the same
directory structure under OBJDIR. But that's not easy in mainline GNU
make (see http://make.paulandlesley.org/multi-arch.html for example).

-boris





reply via email to

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