using only the fast int dct for regression tests
[ffmpeg.git] / tests / Makefile
1 #
2 # Makefile for tests
3 # (c) 2002 Fabrice Bellard
4 #
5 include ../config.mak
6
7 VPATH=$(SRC_PATH)/tests
8 CFLAGS=-O2 -Wall -g
9
10 REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
11
12 LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
13
14 all: test
15
16 # fast regression tests for all codecs
17 test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
18         @$(SRC_PATH)/tests/regression.sh $@ $(REFFILE)
19
20 # fast regression for libav formats
21 libavtest: vsynth1/0.pgm asynth1.sw
22         @$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
23
24 # video generation
25
26 vsynth1/0.pgm: videogen
27         @mkdir -p vsynth1
28         ./videogen 'vsynth1/'
29
30 videogen: videogen.c
31         $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
32
33 # audio generation
34
35 asynth1.sw: audiogen
36         ./audiogen $@
37
38 audiogen: audiogen.c
39         $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
40
41 DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
42  $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
43  $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
44  $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
45  $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
46  $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
47  $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
48  $(SRC_PATH)/libavcodec/dsputil.c \
49  $(SRC_PATH)/libavcodec/dsputil.h \
50  $(SRC_PATH)/libavcodec/simple_idct.c
51
52 dsptestpic: dsptest.c $(DSPDEPS)
53         $(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
54 dsptest: dsptest.c $(DSPDEPS)
55         $(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
56
57 clean:
58         rm -rf vsynth1 data
59         rm -f asynth1.sw *~ audiogen videogen