diff options
author | Måns Rullgård <mans@mansr.com> | 2009-10-28 19:49:16 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-10-28 19:49:16 +0000 |
commit | df4fe41df48efd5f494a794f52dde2bc69bf5cc0 (patch) | |
tree | 98b0142e99109552448278cd8fc1aa752f04378c /libavcodec/Makefile | |
parent | 52a4a077788a02a97cdfb8ce2f3a3107615c4d7b (diff) | |
download | ffmpeg-df4fe41df48efd5f494a794f52dde2bc69bf5cc0.tar.gz |
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/Makefile')
-rw-r--r-- | libavcodec/Makefile | 5 |
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 |