[FFmpeg-cvslog] r11475 - trunk/Makefile

Måns Rullgård mans
Tue Jan 15 00:27:36 CET 2008


Diego Biurrun <diego at biurrun.de> writes:

> On Thu, Jan 10, 2008 at 11:41:04AM +0100, Diego Biurrun wrote:
>> On Wed, Jan 09, 2008 at 01:24:41AM +0000, M?ns Rullg?rd wrote:
>> > Michael Niedermayer <michaelni at gmx.at> writes:
>> > 
>> > > On Wed, Jan 09, 2008 at 12:02:40AM +0100, diego wrote:
>> > >> 
>> > >> Log:
>> > >> Add compilation rule for tools/trasher.
>> > >> 
>> > >> --- trunk/Makefile	(original)
>> > >> +++ trunk/Makefile	Wed Jan  9 00:02:39 2008
>> > >> @@ -113,6 +113,9 @@ tools/qt-faststart$(EXESUF): tools/qt-fa
>> > >>  
>> > >> +tools/trasher$(EXESUF): tools/trasher.c
>> > >> +	$(CC) $(CFLAGS) $< -o $@
>> > >
>> > > may i protest against this ...
>> > > i did try
>> > > make tools/trasher before i svn added it and it did work without that
>> > 
>> > Yes, that is a builtin rule in make.
>> 
>> Mine is smaller ;-p
>
> Also, I don't think the builtin rule will take $(EXESUF) into account,

So write a new generic rule.  Something like this:

%$(EXESUF): %.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list