aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-10-28 00:51:48 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-10-28 00:51:48 +0000
commit6d2abd6b3e660108d337e838206623a291d88cad (patch)
tree8d4bebd72cbb46677fc7e41a18053be47e289c48
parentbc8d1857fbd8bd6af94ed8f164fa92cec51fb776 (diff)
downloadffmpeg-6d2abd6b3e660108d337e838206623a291d88cad.tar.gz
added new fft/mdct code - added fft-test program
Originally committed as revision 1091 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index db205ab067..731410af51 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -15,7 +15,8 @@ OBJS= common.o utils.o mem.o allcodecs.o \
mpegaudio.o ac3enc.o mjpeg.o resample.o dsputil.o \
motion_est.o imgconvert.o imgresample.o msmpeg4.o \
mpeg12.o h263dec.o svq1.o rv10.o mpegaudiodec.o pcm.o simple_idct.o \
- ratecontrol.o adpcm.o eval.o dv.o error_resilience.o
+ ratecontrol.o adpcm.o eval.o dv.o error_resilience.o \
+ wmadec.o fft.o mdct.o
ASM_OBJS=
# currently using liba52 for ac3 decoding
@@ -93,7 +94,7 @@ LIB= libavcodec.a
ifeq ($(BUILD_SHARED),yes)
SLIB= libavcodec.so
endif
-TESTS= imgresample-test dct-test motion-test
+TESTS= imgresample-test dct-test motion-test fft-test
all: $(LIB) $(SLIB)
@@ -109,6 +110,14 @@ $(SLIB): $(OBJS)
dsputil.o: dsputil.c dsputil.h
+# specific sse code
+%_sse.o : %_sse.c
+ $(CC) $(CFLAGS) -msse -c -o $@ $<
+
+# specific 3dnow code
+%_3dnow.o : %_3dnow.c
+ $(CC) $(CFLAGS) -m3dnow -c -o $@ $<
+
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
@@ -165,6 +174,9 @@ dct-test: dct-test.o jfdctfst.o jfdctint.o i386/fdct_mmx.o\
motion-test: motion_test.o $(LIB)
$(CC) -o $@ $^ -lm
+fft-test: fft-test.o fft.o mdct.o
+ $(CC) -o $@ $^ -lm
+
install: all
ifeq ($(BUILD_SHARED),yes)
install -d $(prefix)/lib