Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpcc05!hpsciz!masa From: masa@hpsciz.sc.hp.com (Masayoshi Habu) Newsgroups: comp.lang.c++ Subject: Re: Wisdom for handling C++ files with suffix .cc Message-ID: <1410007@hpsciz.sc.hp.com> Date: 14 Jun 91 16:33:54 GMT References: <1991Jun13.200637.16078@watson.ibm.com> Organization: Hewlett-Packard, Santa Clara, CA Lines: 17 In comp.lang.c++, oasis@watson.ibm.com (GA.Hoffman) writes: I just received a bunch of c++ files with suffix .cc, CC wants .C or some such ... is there conventional wisdom on handling this in makefiles? I'm currently making a link during the compile, file by file to a file with the desired suffix. Just an idea. How about this ? .SUFFIXES: $(SUFFIXES) .cc .cc.C: mv $*.cc $*.C .C.o: $(CXX) -c $(CXXFLAGS) $< Masa