tags:

views:

136

answers:

1

Hello,

I have a question related to VPATH. I'm playing around with make files and the VPATH variable. Basically, I'm grabbing source files from a few different places (specified by the VPATH), and trying to compile them into the another directory ( $CURDIR/OBJ/ ) using simply a list of .o-files that I want.

Can I create .o's in any another directory other than current dir when using VPATH??

+1  A: 
Beta
I was trying your second suggestion. However I could not get that to work. How would I use the FULLOBJECTS? 'make FULLOBJECTS'?
Thomas Nilsson
Ah, I see that I made a mistake in my answer: the target should be `$(FULLOBJECTS)`, not `FULLOBJECTS`. I will correct that. If you still have trouble, post your makefile.
Beta