Hello there,
Sorry for the stupid question but I'm a little desperate.
I'm trying to compile a target with sources in two directories.
This should be simple and I'm using:
# rule #1
all: $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) -o $(PROGRAM)
#rule #2
%.o : %.cpp
$(CC) $(CFLAGS) -c $< -o $@
I have set the VPATH to point to my sources and I'm building from the
objects directory.
However, each time rule #2 is invoked the implicit 'co' rule is also
invoked and I'm getting:
co /afs/cs.wisc.edu/u/s/h/shai/locality/hot/forge/src/malloc_trace.cpp,v
malloc_trace.cpp
/afs/cs.wisc.edu/u/s/h/shai/locality/hot/forge/src/malloc_trace.cpp,v -->
malloc_trace.cpp
revision 1.3
done
g++ -I/afs/cs.wisc.edu/u/s/h/shai/locality/hot/forge/include
-I/afs/cs.wisc.edu/u/s/h/shai/locality/hot/forge/analyzetrace -D__alpha__
-DLITTLE -O2 -c malloc_trace.cpp -o malloc_trace.o
make takes my RCS version (which is also in my source directories) of the
file and check it out into my objects directory.
This drives me crazy!
Thanks
Shai
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make