Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ 47805d21

History | View | Annotate | Download (2.2 KB)

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
REFFILE1=$(SRC_PATH)/tests/ffmpeg.regression.ref
11
REFFILE2=$(SRC_PATH)/tests/rotozoom.regression.ref
12

    
13
SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
14

    
15
LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
16

    
17
all fulltest: codectest libavtest test-server
18
test: codectest libavtest
19

    
20
test-server: vsynth1/0.pgm asynth1.sw
21
	@$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE) $(SRC_PATH)/tests/test.conf
22

    
23
# fast regression tests for all codecs
24
codectest mpeg4 mpeg ac3 snow: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr
25
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE1) vsynth1
26
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE2) vsynth2
27

    
28
# fast regression for libav formats
29
libavtest: vsynth1/0.pgm asynth1.sw
30
	@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE) vsynth1
31

    
32
# video generation
33

    
34
vsynth1/0.pgm: videogen
35
	@mkdir -p vsynth1
36
	./videogen 'vsynth1/'
37

    
38
vsynth2/0.pgm: rotozoom
39
	@mkdir -p vsynth2
40
	./rotozoom 'vsynth2/' $(SRC_PATH)/tests/lena.pnm
41

    
42
videogen: videogen.c
43
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
44

    
45
rotozoom: rotozoom.c
46
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
47

    
48
# audio generation
49

    
50
asynth1.sw: audiogen
51
	./audiogen $@
52

    
53
audiogen: audiogen.c
54
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
55

    
56
tiny_psnr: tiny_psnr.c
57
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
58
        
59
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
60
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
61
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
62
 $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
63
 $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
64
 $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
65
 $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
66
 $(SRC_PATH)/libavcodec/dsputil.c \
67
 $(SRC_PATH)/libavcodec/dsputil.h \
68
 $(SRC_PATH)/libavcodec/simple_idct.c
69

    
70
dsptestpic: dsptest.c $(DSPDEPS)
71
	$(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
72
dsptest: dsptest.c $(DSPDEPS)
73
	$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
74

    
75
clean:
76
	rm -rf vsynth1 vsynth2 data
77
	rm -f asynth1.sw *~ audiogen videogen rotozoom tiny_psnr