[FFmpeg-devel] [PATCH] tablegen: the executable depends on tablegen headers as well

Diego Elio 'Flameeyes' Pettenò flameeyes
Fri Jul 2 01:30:26 CEST 2010


Make sure that the *_tablegen.h header is listed in the dependencies, but
filter it out in the compile line.
---
 libavcodec/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 8184e18..c1cb1e0 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -652,8 +652,8 @@ else
 $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=0
 endif
 
-$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c
-	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS)
+$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)%_tablegen.h $(SUBDIR)tableprint.c
+	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(filter %.c,$^) $(HOSTLIBS)
 
 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF)
 	$(M)./$< > $@
-- 
1.7.1.1




More information about the ffmpeg-devel mailing list