Hello everyone,
I want to use g++ $(CFLAGS) to compile any .cpp files
into .o files. For example, using g++ $(CFLAGS)
foo.cpp to generate foo.o, using g++ $(CFLAGS) goo.cpp
to generate goo.o. CFLAGS is a variale which I defined
before. I write a rule in Makefile as,
%.o :
g++ $(CFLAGS) %.cpp
But when executing the Makefile, it reports error
message "g++: %.cpp: No such file or directory".
How to fix it?
thanks in advance,
George
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make