foo.o: foo.cpp
g++ -c foo.coo
you should instead write this:
foo.o: foo.cpp
$(COMPILE.cpp) foo.coo
COMPILE.cpp will have the default compiler you are supposed to use, and probably some helpful parameters as well. Likewise, LINK.cpp will have the linker you are supposed to use.
There are many useful predefined variables in make. Be sure to check them all by running "make -p" in a console.
No comments:
Post a Comment