summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-22 16:14:59 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-22 16:14:59 +0000
commit2dfa305438bdfd80ec4db46248338189351f5eaa (patch)
tree355744eb137a9fc6bd0ba1a243ce0c20b8ca2fdd /Makefile
parentfa0912fe50e59df72b7bf81f8838d2c6d9780343 (diff)
Fix building of tools/*
Fixes issue 1282 Originally committed as revision 19486 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8a0ad1e145..514db6624e 100644
--- a/Makefile
+++ b/Makefile
@@ -67,8 +67,11 @@ ffserver_g$(EXESUF): FF_LDFLAGS += $(FFSERVERLDFLAGS)
%_g$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
$(LD) $(FF_LDFLAGS) -o $@ $< cmdutils.o $(FF_EXTRALIBS)
-tools/%$(EXESUF): tools/%.c
- $(LD) $(CFLAGS) $(FF_LDFLAGS) -o $@ $< $(FF_EXTRALIBS)
+tools/%$(EXESUF): tools/%.o
+ $(LD) $(FF_LDFLAGS) -o $@ $< $(FF_EXTRALIBS)
+
+tools/%.o: tools.%.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(CC_O) $<
ffplay.o ffplay.d: CFLAGS += $(SDL_CFLAGS)