changeset 12090:82d32c82289d libavcodec

Fix build with hardcoded tables The recently added dummy rule for missing headers took precedence over the tablegen rules. Listing the generated headers explicitly overrides this. A cleaner solution would be preferable.
author mru
date Sun, 04 Jul 2010 19:03:04 +0000
parents 5638941ec8ef
children c2a1bb63bd30
files Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Jul 04 18:33:47 2010 +0000
+++ b/Makefile	Sun Jul 04 19:03:04 2010 +0000
@@ -655,7 +655,12 @@
 $(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)
+GEN_HEADERS = cbrt_tables.h aacps_tables.h aac_tables.h dv_tables.h     \
+              mdct_tables.h mpegaudio_tables.h motionpixels_tables.h    \
+              pcm_tables.h qdm2_tables.h
+GEN_HEADERS := $(addprefix $(SUBDIR), $(GEN_HEADERS))
+
+$(GEN_HEADERS): $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF)
 	$(M)./$< > $@
 
 ifdef CONFIG_HARDCODED_TABLES