Tyler asked: > When I compile my .o dependencies, I use something like: > @echo Compiling $...@. > This ends up being file.o, etc. > Is there a way to change the .o to .cpp while I'm showing > that message?
$@ is the name of the target file and $< is the name of the first prerequisite file; is that what you're after? And $? is a list of all the prerequisites if there are more than one. Or there are various ways of subsituting .o with .cpp. See the GNU make manual, it's well worth studying. Merry Christmas everyone! (Not so merry for me, my main PC wouldn't boot, first time this has happened. I did get it going eventually. I think it might be the CMOS backup battery, as there was a message about CMOS corruption. But would a bad battery disable the whole motherboard?) David