On 2006-3-20 16:45 UTC, EXT-Pennington, Dale K wrote: > > Base -------- src----subproj1 > | +-subproj2 > | > -----obj-----subproj1 > +subproj2 > > Currently each subproj builds in its source directory
I'd build everything in the 'obj' directories. For example, cd to obj/subproj1/ and then do make -f ../../Makefile subproj1.exe using vpath to tell the makefile where to find the sources. > I tried the vpath directory, but that only works if the .o already > exists. If it does not, they make the .o in the src directory, which is > not desired. vpath can reach back from the object dir to find sources, but it it can't reach forward from the source dir to say where to place objects. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
