Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ 57060f89

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

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

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

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

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

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

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

    
32
# video generation
33

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

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

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

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

    
48
# audio generation
49

    
50
asynth1.sw: audiogen$(EXESUF)
51
	./audiogen $@
52

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

    
56
tiny_psnr$(EXESUF): 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
DSPCFLAGS = -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. \
71
 -I$(SRC_PATH)/libavutil/ -I$(SRC_PATH)/libavcodec/i386 \
72
 -I$(SRC_PATH)/libavcodec/ -lm
73

    
74
dsptestpic: dsptest.c $(DSPDEPS)
75
	$(CC) -fPIC -DPIC $(DSPCFLAGS) -o $@ $<
76
dsptest: dsptest.c $(DSPDEPS)
77
	$(CC) $(DSPCFLAGS) -o $@ $<
78

    
79
distclean clean:
80
	rm -rf vsynth1 vsynth2 data
81
	rm -f asynth1.sw *~ audiogen$(EXESUF) videogen$(EXESUF) rotozoom$(EXESUF) tiny_psnr$(EXESUF)