From b1b184812c12151067743f94c374ec813c9bc4a3 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 15 Mar 2008 19:57:09 +0000 Subject: [PATCH] Merge binary generation rules. Originally committed as revision 12455 to svn://svn.ffmpeg.org/ffmpeg/trunk --- Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index bb5aa5180b..f2b6142bbf 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ endif MAKE-yes = $(MAKE) MAKE- = : $(MAKE) -all: lib $(PROGS) $(ALL_TARGETS-yes) +all: lib $(PROGS_G) $(PROGS) $(ALL_TARGETS-yes) lib: $(MAKE) -C libavutil all @@ -92,14 +92,11 @@ lib: $(MAKE-$(CONFIG_SWSCALE)) -C libswscale all $(MAKE-$(CONFIG_AVFILTER)) -C libavfilter all -ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs - $(CC) $(LDFLAGS) -o $@ $< cmdutils.o $(EXTRALIBS) - -ffserver_g$(EXESUF): ffserver.o cmdutils.o .libs - $(CC) $(LDFLAGS) $(FFSERVERLDFLAGS) -o $@ $< cmdutils.o $(EXTRALIBS) +ffplay_g$(EXESUF): EXTRALIBS += $(SDL_LIBS) +ffserver_g$(EXESUF): LDFLAGS += $(FFSERVERLDFLAGS) -ffplay_g$(EXESUF): ffplay.o cmdutils.o .libs - $(CC) $(LDFLAGS) -o $@ $< cmdutils.o $(EXTRALIBS) $(SDL_LIBS) +%_g$(EXESUF): %.o cmdutils.o .libs + $(CC) $(LDFLAGS) -o $@ $< cmdutils.o $(EXTRALIBS) %$(EXESUF): %_g$(EXESUF) cp -p $< $@