Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ 57060f89

History | View | Annotate | Download (2.2 KB)

1 51133a7d Fabrice Bellard
#
2
# Makefile for tests
3 d0c30ca5 Fabrice Bellard
# (c) 2002 Fabrice Bellard
4 51133a7d Fabrice Bellard
#
5
include ../config.mak
6
7
VPATH=$(SRC_PATH)/tests
8
CFLAGS=-O2 -Wall -g
9 1b78558a Michael Niedermayer
10 a9f9cc7c Diego Biurrun
REFFILE1=$(VPATH)/ffmpeg.regression.ref
11
REFFILE2=$(VPATH)/rotozoom.regression.ref
12 1b78558a Michael Niedermayer
13 75fe1905 Diego Biurrun
SERVER_REFFILE=$(VPATH)/ffserver.regression.ref
14 e2b2851e Philip Gladstone
15 75fe1905 Diego Biurrun
LIBAV_REFFILE=$(VPATH)/libav.regression.ref
16 51133a7d Fabrice Bellard
17 2dd59ebd Michael Niedermayer
all fulltest: codectest libavtest test-server
18 ba85e70c Michael Niedermayer
test: codectest libavtest test-server
19 e2b2851e Philip Gladstone
20
test-server: vsynth1/0.pgm asynth1.sw
21 75fe1905 Diego Biurrun
	@$(VPATH)/server-regression.sh $(SERVER_REFFILE) $(VPATH)/test.conf
22 51133a7d Fabrice Bellard
23
# fast regression tests for all codecs
24 f5c85943 Víctor Paesa
codectest mpeg4 mpeg ac3 snow snowll: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr$(EXESUF)
25 75fe1905 Diego Biurrun
	@$(VPATH)/regression.sh $@ $(REFFILE1) vsynth1
26
	@$(VPATH)/regression.sh $@ $(REFFILE2) vsynth2
27 51133a7d Fabrice Bellard
28 89d5dfd5 Fabrice Bellard
# fast regression for libav formats
29
libavtest: vsynth1/0.pgm asynth1.sw
30 75fe1905 Diego Biurrun
	@$(VPATH)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
31 51133a7d Fabrice Bellard
32 6fea8454 Zdenek Kabelac
# video generation
33 51133a7d Fabrice Bellard
34 f5c85943 Víctor Paesa
vsynth1/0.pgm: videogen$(EXESUF)
35 51133a7d Fabrice Bellard
	@mkdir -p vsynth1
36
	./videogen 'vsynth1/'
37
38 f5c85943 Víctor Paesa
vsynth2/0.pgm: rotozoom$(EXESUF)
39 6afd3b92 Michael Niedermayer
	@mkdir -p vsynth2
40 75fe1905 Diego Biurrun
	./rotozoom 'vsynth2/' $(VPATH)/lena.pnm
41 6afd3b92 Michael Niedermayer
42 462f3c37 Víctor Paesa
videogen$(EXESUF): videogen.c
43 51133a7d Fabrice Bellard
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
44
45 462f3c37 Víctor Paesa
rotozoom$(EXESUF): rotozoom.c
46 6afd3b92 Michael Niedermayer
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
47
48 51133a7d Fabrice Bellard
# audio generation
49
50 f5c85943 Víctor Paesa
asynth1.sw: audiogen$(EXESUF)
51 51133a7d Fabrice Bellard
	./audiogen $@
52
53 462f3c37 Víctor Paesa
audiogen$(EXESUF): audiogen.c
54 51133a7d Fabrice Bellard
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
55
56 462f3c37 Víctor Paesa
tiny_psnr$(EXESUF): tiny_psnr.c
57 67cbe681 Michael Niedermayer
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
58 115329f1 Diego Biurrun
59 ec9a41f5 Zdenek Kabelac
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
60 6fea8454 Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
61 5845431a Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
62 6fea8454 Zdenek Kabelac
 $(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 ec9a41f5 Zdenek Kabelac
70 0e16a1fc Diego Biurrun
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 9e8098e7 Zdenek Kabelac
dsptestpic: dsptest.c $(DSPDEPS)
75 0e16a1fc Diego Biurrun
	$(CC) -fPIC -DPIC $(DSPCFLAGS) -o $@ $<
76 ec9a41f5 Zdenek Kabelac
dsptest: dsptest.c $(DSPDEPS)
77 0e16a1fc Diego Biurrun
	$(CC) $(DSPCFLAGS) -o $@ $<
78 ec9a41f5 Zdenek Kabelac
79 98013cc1 Diego Biurrun
distclean clean:
80 6afd3b92 Michael Niedermayer
	rm -rf vsynth1 vsynth2 data
81 462f3c37 Víctor Paesa
	rm -f asynth1.sw *~ audiogen$(EXESUF) videogen$(EXESUF) rotozoom$(EXESUF) tiny_psnr$(EXESUF)