diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-14 21:41:24 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-14 21:41:24 +0000 |
commit | 16aec74761c2a0e6d782135083e570b8358593e1 (patch) | |
tree | aeca6a3459ee41e0f3d1d1b7d39365c5ac25ab17 /libavcodec/Makefile | |
parent | 6d924b5a5f39e33a02c4b39cc5892911bb508d4e (diff) | |
download | ffmpeg-16aec74761c2a0e6d782135083e570b8358593e1.tar.gz |
Use hardcoded instead of runtime-calculated ff_cos_* tables if
--enable-hardcoded-tables was used.
Due to the size, the code for the tables is generated at compile time.
Originally committed as revision 20232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/Makefile')
-rw-r--r-- | libavcodec/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 2724fbd468..390d11e5d8 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -27,7 +27,8 @@ OBJS = allcodecs.o \ # parts needed for many different codecs OBJS-$(CONFIG_AANDCT) += aandcttab.o OBJS-$(CONFIG_ENCODERS) += faandct.o jfdctfst.o jfdctint.o -OBJS-$(CONFIG_FFT) += fft.o +FFT-OBJS-$(CONFIG_HARDCODED_TABLES) += cos_tables.o +OBJS-$(CONFIG_FFT) += fft.o $(FFT-OBJS-yes) OBJS-$(CONFIG_GOLOMB) += golomb.o OBJS-$(CONFIG_MDCT) += mdct.o OBJS-$(CONFIG_RDFT) += rdft.o @@ -571,6 +572,14 @@ TESTPROGS-$(HAVE_MMX) += motion DIRS = alpha arm bfin mlib ppc ps2 sh4 sparc x86 +CLEANFILES = cos_tables.c costablegen$(HOSTEXESUF) + include $(SUBDIR)../subdir.mak $(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o + +$(SUBDIR)costablegen$(HOSTEXESUF): $(SUBDIR)costablegen.c + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS) + +$(SUBDIR)cos_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF) + ./$< > $@ |