Is this makefile rule possible?
Here is the makefile. Is it possible to write a rule which
first search every file in same directory and then compile and link those files which end with .cpp extension. Requirement is that it have to pass linking rule which is in makefile ( ie. execute @echo command during linking phase ) Dummy rule can be erased if it is required to make it work. This is just an artificial test and there is no real world requirements to make this work. I am just curious how to do it if it is possible. One last requirement. Have to be possible by single make command. I get a working version for two make commands already. Code:
CXXFLAGS= -ansi -Wall -pedantic |
I do it like this:
Code:
# --------------------------------- |
All times are GMT -5. The time now is 07:17 AM. |