Commit | Line | Data |
---|---|---|
51133a7d FB |
1 | # |
2 | # Makefile for tests | |
d0c30ca5 | 3 | # (c) 2002 Fabrice Bellard |
51133a7d FB |
4 | # |
5 | include ../config.mak | |
6 | ||
7 | VPATH=$(SRC_PATH)/tests | |
8 | CFLAGS=-O2 -Wall -g | |
1b78558a | 9 | |
6afd3b92 MN |
10 | REFFILE1=$(SRC_PATH)/tests/ffmpeg.regression.ref |
11 | REFFILE2=$(SRC_PATH)/tests/rotozoom.regression.ref | |
1b78558a | 12 | |
e2b2851e PG |
13 | SERVER_REFFILE=$(SRC_PATH)/tests/ffserver.regression.ref |
14 | ||
89d5dfd5 | 15 | LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref |
51133a7d | 16 | |
e2b2851e PG |
17 | all: test test-server |
18 | ||
19 | test-server: vsynth1/0.pgm asynth1.sw | |
20 | @$(SRC_PATH)/tests/server-regression.sh $(SERVER_REFFILE) | |
51133a7d FB |
21 | |
22 | # fast regression tests for all codecs | |
6afd3b92 MN |
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 | |
51133a7d | 26 | |
89d5dfd5 FB |
27 | # fast regression for libav formats |
28 | libavtest: vsynth1/0.pgm asynth1.sw | |
6afd3b92 | 29 | @$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE) vsynth1 |
51133a7d | 30 | |
6fea8454 | 31 | # video generation |
51133a7d FB |
32 | |
33 | vsynth1/0.pgm: videogen | |
34 | @mkdir -p vsynth1 | |
35 | ./videogen 'vsynth1/' | |
36 | ||
6afd3b92 MN |
37 | vsynth2/0.pgm: rotozoom |
38 | @mkdir -p vsynth2 | |
39 | ./rotozoom 'vsynth2/' | |
40 | ||
51133a7d FB |
41 | videogen: videogen.c |
42 | $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< | |
43 | ||
6afd3b92 MN |
44 | rotozoom: rotozoom.c |
45 | $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< | |
46 | ||
51133a7d FB |
47 | # audio generation |
48 | ||
49 | asynth1.sw: audiogen | |
50 | ./audiogen $@ | |
51 | ||
52 | audiogen: audiogen.c | |
53 | $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< | |
54 | ||
67cbe681 MN |
55 | tiny_psnr: tiny_psnr.c |
56 | $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< | |
57 | ||
ec9a41f5 | 58 | DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \ |
6fea8454 | 59 | $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \ |
5845431a | 60 | $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \ |
6fea8454 ZK |
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 | |
ec9a41f5 | 68 | |
9e8098e7 | 69 | dsptestpic: dsptest.c $(DSPDEPS) |
6fea8454 | 70 | $(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm |
ec9a41f5 | 71 | dsptest: dsptest.c $(DSPDEPS) |
6fea8454 | 72 | $(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $< -lm |
ec9a41f5 | 73 | |
51133a7d | 74 | clean: |
6afd3b92 | 75 | rm -rf vsynth1 vsynth2 data |
51133a7d | 76 | rm -f asynth1.sw *~ audiogen videogen |