Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ 6afd3b92

History | View | Annotate | Download (2.08 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: test test-server
18

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

    
22
# fast regression tests for all codecs
23
test mpeg4 mpeg: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr
24
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE1) vsynth1 || true
25
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE2) vsynth2 || true
26

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

    
31
# video generation
32

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

    
37
vsynth2/0.pgm: rotozoom
38
	@mkdir -p vsynth2
39
	./rotozoom 'vsynth2/'
40

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

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

    
47
# audio generation
48

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

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

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

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

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