Message-Id: <199605201008.GAA03171@delorie.com> Date: Mon, 20 May 96 12:54:10 LIT From: Martynas Kunigelis Subject: 'make' problem To: DJGPP mailing list I encountered a problem with 'make', but it could be just my ignorance... The thing is, I wrote a generic makefile for my small C++ project, like this: objs = file1.o file2.o file3.o .cc.o: gcc -x c++ -c ›< main.exe: ›(objs) gcc -o ›@ ›^ file1.o: file1.cc file1.h file2.o: file2.cc file2.h file3.o: file3.cc file3.h Everything worked ok. But when I renamed all .cc files to .cpp and changed all appearances of .cc in the makefile to .cpp (including .cc.o: ), make always goes to the link step, even when there are no .o files at all. Just now some idea struck me -- this must have something to do with .SUFFIXES, but I thought .cpp was confirmed to be a valid C++ source file extension, thus make should recognize it. GCC itself recognizes it, though dumps .cc extension to cc1plus. Anyway, I'll read more make docs and try the .SUFFIXES stuff at home, but right now if the problem is different and someone knows the solution, please let me know. Martynas