[FFmpeg-cvslog] r23963 - trunk/libavcodec/Makefile

flameeyes subversion
Fri Jul 2 02:30:27 CEST 2010


Author: flameeyes
Date: Fri Jul  2 02:30:27 2010
New Revision: 23963

Log:
tablegen: the executable depends on tablegen headers as well

Make sure that the *_tablegen.h header is listed in the dependencies, but
filter it out in the compile line.

Modified:
   trunk/libavcodec/Makefile

Modified: trunk/libavcodec/Makefile
==============================================================================
--- trunk/libavcodec/Makefile	Fri Jul  2 02:20:26 2010	(r23962)
+++ trunk/libavcodec/Makefile	Fri Jul  2 02:30:27 2010	(r23963)
@@ -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)./$< > $@



More information about the ffmpeg-cvslog mailing list