VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/tests/Makefile@ 8459

最後變更 在這個檔案從8459是 5776,由 vboxsync 提交於 17 年 前

ffmpeg: exported to OSE

檔案大小: 2.2 KB
 
1#
2# Makefile for tests
3# (c) 2002 Fabrice Bellard
4#
5include ../config.mak
6
7VPATH=$(SRC_PATH)/tests
8CFLAGS=-O2 -Wall -g
9
10REFFILE1=$(SRC_PATH)/tests/ffmpeg.regression.ref
11REFFILE2=$(SRC_PATH)/tests/rotozoom.regression.ref
12
13SERVER_REFFILE=$(VPATH)/ffserver.regression.ref
14
15LIBAV_REFFILE=$(VPATH)/libav.regression.ref
16
17all fulltest: codectest libavtest test-server
18test: codectest libavtest test-server
19
20test-server: vsynth1/0.pgm asynth1.sw
21 @$(VPATH)/server-regression.sh $(SERVER_REFFILE) $(VPATH)/test.conf
22
23# fast regression tests for all codecs
24codectest mpeg4 mpeg ac3 snow snowll: vsynth1/0.pgm vsynth2/0.pgm asynth1.sw tiny_psnr
25 @$(VPATH)/regression.sh $@ $(REFFILE1) vsynth1
26 @$(VPATH)/regression.sh $@ $(REFFILE2) vsynth2
27
28# fast regression for libav formats
29libavtest: vsynth1/0.pgm asynth1.sw
30 @$(VPATH)/regression.sh $@ $(LIBAV_REFFILE) vsynth1
31
32# video generation
33
34vsynth1/0.pgm: videogen
35 @mkdir -p vsynth1
36 ./videogen 'vsynth1/'
37
38vsynth2/0.pgm: rotozoom
39 @mkdir -p vsynth2
40 ./rotozoom 'vsynth2/' $(VPATH)/lena.pnm
41
42videogen: videogen.c
43 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
44
45rotozoom: rotozoom.c
46 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
47
48# audio generation
49
50asynth1.sw: audiogen
51 ./audiogen $@
52
53audiogen: audiogen.c
54 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
55
56tiny_psnr: tiny_psnr.c
57 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
58
59DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
60 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h \
61 $(SRC_PATH)/libavcodec/i386/dsputil_mmx_rnd.h \
62 $(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
70dsptestpic: dsptest.c $(DSPDEPS)
71 $(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. \
72 -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ \
73 -o $@ $< -lm
74dsptest: dsptest.c $(DSPDEPS)
75 $(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. \
76 -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ \
77 -o $@ $< -lm
78
79distclean clean:
80 rm -rf vsynth1 vsynth2 data
81 rm -f asynth1.sw *~ audiogen videogen rotozoom tiny_psnr
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette