help-make
[Top][All Lists]
Advanced

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

RE: Object Generation in different directory using implicit rules


From: Prasad, Jagadish
Subject: RE: Object Generation in different directory using implicit rules
Date: Thu, 20 Jul 2006 17:38:26 -0500

Thanks Greg, it works like a charm.

-Jagdish

-----Original Message-----
From: Greg Chicares [mailto:address@hidden 
Sent: Thursday, July 20, 2006 2:13 PM
To: Prasad, Jagadish
Cc: address@hidden
Subject: Re: Object Generation in different directory using implicit
rules

> I am currently trying to create objects in a different directory other
> than source and using implicit rules. I am having some trouble with
it.
> Wondering if you can help me on this. Please note I can compile
objects
> in the same directory as sources fine. Thanks in Advance.
[...]
> #.c.obj:  <= This works fine if the objects and sources are in same
> directory
>
> $(OBJ_DIR)/%.o: %.c
>             $(CC) ....

Try using 'vpath'. The manual explains this feature.





reply via email to

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