Statistics
| Branch: | Revision:

ffmpeg / tests / Makefile @ bc15b8ef

History | View | Annotate | Download (1.72 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 51133a7d Fabrice Bellard
REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
11 1b78558a Michael Niedermayer
12 e2b2851e Philip Gladstone
SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref
13
14 89d5dfd5 Fabrice Bellard
LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
15 51133a7d Fabrice Bellard
16 e2b2851e Philip Gladstone
all: test test-server
17
18
test-server: vsynth1/0.pgm asynth1.sw
19
	@$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE)
20 51133a7d Fabrice Bellard
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 89d5dfd5 Fabrice Bellard
# fast regression for libav formats
26
libavtest: vsynth1/0.pgm asynth1.sw
27
	@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
28 51133a7d Fabrice Bellard
29 6fea8454 Zdenek Kabelac
# video generation
30 51133a7d Fabrice Bellard
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 ec9a41f5 Zdenek Kabelac
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
47 6fea8454 Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
48 5845431a Zdenek Kabelac
 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
49 6fea8454 Zdenek Kabelac
 $(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 ec9a41f5 Zdenek Kabelac
57 9e8098e7 Zdenek Kabelac
dsptestpic: dsptest.c $(DSPDEPS)
58 6fea8454 Zdenek Kabelac
	$(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
59 ec9a41f5 Zdenek Kabelac
dsptest: dsptest.c $(DSPDEPS)
60 6fea8454 Zdenek Kabelac
	$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm
61 ec9a41f5 Zdenek Kabelac
62 51133a7d Fabrice Bellard
clean:
63 5bcfd1ad Fabrice Bellard
	rm -rf vsynth1 data
64 51133a7d Fabrice Bellard
	rm -f asynth1.sw *~ audiogen videogen