Make .o withe the same rule for both C and C++ files (newbie question)

2005-10-05 Thread Stefan Karlsson
Hello all, I want to use the same rule for compiling both C and C++ files. Since I have a compiler with some peculiarities I cannot get away with just changing some variables and rely on the default rules. Basically, instead of writing %.o: %.c %.o: %.cpp I want to write some

Re: Make .o withe the same rule for both C and C++ files (newbie question)

2005-10-05 Thread Ken Smith
On Wed, Oct 05, 2005 at 09:44:07PM +0200, Stefan Karlsson wrote: > Hello all, > > I want to use the same rule for compiling both C and C++ files. Since I > have a compiler with some peculiarities I cannot get away with just > changing some variables and rely on the default rules. > > Basically,