diff Makefile @ 12053:aa0b01031adf libavcodec

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.
author flameeyes
date Fri, 02 Jul 2010 00:30:27 +0000
parents 1e89f78c8425
children 82d32c82289d
line wrap: on
line diff
--- a/Makefile	Fri Jul 02 00:20:26 2010 +0000
+++ b/Makefile	Fri Jul 02 00:30:27 2010 +0000
@@ -652,8 +652,8 @@
 $(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)./$< > $@