On 7/20/06, Greg Chicares <[EMAIL PROTECTED]> wrote:
> 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.

But use it correctly:
   http://make.paulandlesley.org/vpath.html

Philip Guenther


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

Reply via email to