summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-10-28 19:49:16 +0000
committerMåns Rullgård <mans@mansr.com>2009-10-28 19:49:16 +0000
commitdf4fe41df48efd5f494a794f52dde2bc69bf5cc0 (patch)
tree98b0142e99109552448278cd8fc1aa752f04378c /libavcodec
parent52a4a077788a02a97cdfb8ce2f3a3107615c4d7b (diff)
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. Originally committed as revision 20405 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index e36305ff33..40c16818d5 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -710,6 +710,9 @@ endif
$(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