Date: Sun, 25 Jun 2000 10:20:00 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Jason Green cc: djgpp AT delorie DOT com Subject: Re: Make file wildcards In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 24 Jun 2000, Jason Green wrote: > Ok, slight technicality. ;-) This rule: > > %.o : %.c %.cpp %.h > $(CC) $(CFLAGS) -c $< > > will produce test.o given test.c *and* test.cpp *and* test.h > > Since test.c does not exist, make prefers the built-in rule: > > %.o: %.cpp > $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< That is true, but it is irrelevant to the point I wanted to make: that implicit rules do not *override* one another. Instead, Make remembers them all and will use the first one it sees fit.