build: make rule for linking ff* apply only to these targets
authorMans Rullgard <mans@mansr.com>
Mon, 6 Jun 2011 22:00:26 +0000 (23:00 +0100)
committerMans Rullgard <mans@mansr.com>
Tue, 7 Jun 2011 00:28:15 +0000 (01:28 +0100)
This ensures that the special link command using cmdutils.o
only applies to the targets it should.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Makefile

index f745a93..db1a9bd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ ffplay.o: CFLAGS += $(SDL_CFLAGS)
 ffplay$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
 ffserver$(EXESUF): FF_LDFLAGS += $(FFSERVERLDFLAGS)
 
-%$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
+$(PROGS): %$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
        $(LD) $(FF_LDFLAGS) -o $@ $< cmdutils.o $(FF_EXTRALIBS)
 
 alltools: $(TOOLS)