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: http://lists.gnu.org/archive/html/help-make/ you'll find lots of relevant discussions. For example: http://lists.gnu.org/archive/html/help-make/2006-03/msg00159.html | > OBJDIR = ../../obj/subproj1 | > OBJS := $(addprefix $(OBJDIR)/,$(OBJS)) | | That's the way it's traditionally done. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
