yuv9 -> yv12 bugfixes
[ffmpeg.git] / tests / Makefile
index cb3b387c66c618c773ed48aa9a1192629e3777ed..6358b5c81f946b4bc3fb88b2227f57198cac92bd 100644 (file)
@@ -1,15 +1,22 @@
 #
 # Makefile for tests
-# (c) 2002 Gerard Lantau
+# (c) 2002 Fabrice Bellard
 #
 include ../config.mak
 
 VPATH=$(SRC_PATH)/tests
 CFLAGS=-O2 -Wall -g
+
 REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
+
+SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
+
 LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
 
-all: test
+all: test test-server
+
+test-server: vsynth1/0.pgm asynth1.sw
+       @$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE)
 
 # fast regression tests for all codecs
 test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
@@ -19,7 +26,7 @@ test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
 libavtest: vsynth1/0.pgm asynth1.sw
        @$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
 
-# video generation 
+# video generation
 
 vsynth1/0.pgm: videogen
        @mkdir -p vsynth1
@@ -37,11 +44,21 @@ audiogen: audiogen.c
        $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
 
 DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
- $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h 
+ $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
+ $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
+ $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
+ $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
+ $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
+ $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
+ $(SRC_PATH)/libavcodec/dsputil.c \
+ $(SRC_PATH)/libavcodec/dsputil.h \
+ $(SRC_PATH)/libavcodec/simple_idct.c
 
+dsptestpic: dsptest.c $(DSPDEPS)
+       $(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
 dsptest: dsptest.c $(DSPDEPS)
-       $(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $<
+       $(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
 
 clean:
-       rm -rf vsynth1
+       rm -rf vsynth1 data
        rm -f asynth1.sw *~ audiogen videogen