[Top][All Lists]

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

Re: Object Directory

From: Greg Chicares
Subject: Re: Object Directory
Date: Tue, 17 Mar 2009 19:03:41 +0000
User-agent: Thunderbird (Windows/20081209)

On 2009-03-17 17:36Z, rplogue wrote:
> Hello I am new to make and I am having some trouble finding information. I
> have searched the forums here and I can't seem to find a similar question,
> my apologizes if I have over looked a post that may be helpful.
> I want my Makefile to place the compiled .o files in a predefined directory,
> how is this done? I am assuming it would be an easy step of setting a
> variable or something but I can't seem to find the information. 

It'd be hard to guess good search keywords for this, but
if you try 'objdir' here:
you'll find lots of relevant discussions. For example:
| > OBJDIR = ../../obj/subproj1
| > OBJS :=  $(addprefix $(OBJDIR)/,$(OBJS))
| That's the way it's traditionally done.

reply via email to

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