changeset 10474:fc71d28c94bf libavcodec

Generate mpegaudio tables only when CONFIG_HARDCODED_TABLES is set Having mpegaudiodec.o unconditionally depend on mpegaudio_tables.h forces the latter to be generated even when it will not be used.
author mru
date Wed, 28 Oct 2009 19:49:16 +0000
parents 36a16fb5c497
children 26d367865bda
files Makefile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Oct 28 19:38:31 2009 +0000
+++ b/Makefile	Wed Oct 28 19:49:16 2009 +0000
@@ -710,6 +710,9 @@
 $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c
 	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS)
 
-$(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h
 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF)
 	./$< > $@
+
+ifdef CONFIG_HARDCODED_TABLES
+$(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h
+endif