Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ d90cc6af

History | View | Annotate | Download (1.72 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
REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
11

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

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

    
16
all: test test-server
17

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

    
21
# fast regression tests for all codecs
22
test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
23
	@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE)
24

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

    
29
# video generation
30

    
31
vsynth1/0.pgm: videogen
32
	@mkdir -p vsynth1
33
	./videogen 'vsynth1/'
34

    
35
videogen: videogen.c
36
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
37

    
38
# audio generation
39

    
40
asynth1.sw: audiogen
41
	./audiogen $@
42

    
43
audiogen: audiogen.c
44
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
45

    
46
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
47
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
48
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
49
 $(SRC_PATH)/libavcodec/i386/fdct_mmx.c \
50
 $(SRC_PATH)/libavcodec/i386/idct_mmx.c \
51
 $(SRC_PATH)/libavcodec/i386/motion_est_mmx.c \
52
 $(SRC_PATH)/libavcodec/i386/simple_idct_mmx.c \
53
 $(SRC_PATH)/libavcodec/dsputil.c \
54
 $(SRC_PATH)/libavcodec/dsputil.h \
55
 $(SRC_PATH)/libavcodec/simple_idct.c
56

    
57
dsptestpic: dsptest.c $(DSPDEPS)
58
	$(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
59
dsptest: dsptest.c $(DSPDEPS)
60
	$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
61

    
62
clean:
63
	rm -rf vsynth1 data
64
	rm -f asynth1.sw *~ audiogen videogen