Merge rules for tools/* into a generic rule.
authorDiego Biurrun <diego@biurrun.de>
Sat, 26 Jan 2008 18:41:20 +0000 (18:41 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 26 Jan 2008 18:41:20 +0000 (18:41 +0000)
Originally committed as revision 11620 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index a71cb6014958501ab21d2126bf0614ea6fb697dc..fea2760ea68c146934858ddbcbca80f8a271c40c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -107,17 +107,8 @@ version.h:
 output_example$(EXESUF): output_example.o .libs
        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(EXTRALIBS)
 
-tools/pktdumper$(EXESUF): tools/pktdumper.c
-       $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(EXTRALIBS)
-
-tools/qt-faststart$(EXESUF): tools/qt-faststart.c
-       $(CC) $(CFLAGS) $< -o $@
-
-tools/cws2fws$(EXESUF): tools/cws2fws.c
-       $(CC) $(CFLAGS) $< -o $@ -lz
-
-tools/trasher$(EXESUF): tools/trasher.c
-       $(CC) $(CFLAGS) $< -o $@
+tools/%$(EXESUF): tools/%.c
+       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(EXTRALIBS)
 
 ffplay.o: CFLAGS += $(SDL_CFLAGS)