2002-05-19 02:18:22 +03:00
|
|
|
#
|
|
|
|
# Makefile for tests
|
|
|
|
# (c) 2002 Gerard Lantau
|
|
|
|
#
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/tests
|
|
|
|
CFLAGS=-O2 -Wall -g
|
|
|
|
REFFILE=$(SRC_PATH)/tests/ffmpeg.regression.ref
|
2002-05-20 19:20:05 +03:00
|
|
|
LIBAV_REFFILE=$(SRC_PATH)/tests/libav.regression.ref
|
2002-05-19 02:18:22 +03:00
|
|
|
|
|
|
|
all: test
|
|
|
|
|
|
|
|
# fast regression tests for all codecs
|
|
|
|
test mpeg4 mpeg: vsynth1/0.pgm asynth1.sw
|
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(REFFILE)
|
|
|
|
|
2002-05-20 19:20:05 +03:00
|
|
|
# fast regression for libav formats
|
|
|
|
libavtest: vsynth1/0.pgm asynth1.sw
|
|
|
|
@$(SRC_PATH)/tests/regression.sh $@ $(LIBAV_REFFILE)
|
2002-05-19 02:18:22 +03:00
|
|
|
|
|
|
|
# video generation
|
|
|
|
|
|
|
|
vsynth1/0.pgm: videogen
|
|
|
|
@mkdir -p vsynth1
|
|
|
|
./videogen 'vsynth1/'
|
|
|
|
|
|
|
|
videogen: videogen.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
# audio generation
|
|
|
|
|
|
|
|
asynth1.sw: audiogen
|
|
|
|
./audiogen $@
|
|
|
|
|
|
|
|
audiogen: audiogen.c
|
|
|
|
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
|
|
|
|
|
2002-05-23 16:34:22 +03:00
|
|
|
DSPDEPS = $(SRC_PATH)/libavcodec/i386/dsputil_mmx.c \
|
|
|
|
$(SRC_PATH)/libavcodec/i386/dsputil_mmx_avg.h
|
|
|
|
|
2002-05-23 17:57:11 +03:00
|
|
|
dsptestpic: dsptest.c $(DSPDEPS)
|
|
|
|
$(CC) -fPIC -DPIC -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $<
|
2002-05-23 16:34:22 +03:00
|
|
|
dsptest: dsptest.c $(DSPDEPS)
|
|
|
|
$(CC) -O4 -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavcodec/i386 -I$(SRC_PATH)/libavcodec/ -o $@ $<
|
|
|
|
|
2002-05-19 02:18:22 +03:00
|
|
|
clean:
|
|
|
|
rm -rf vsynth1
|
|
|
|
rm -f asynth1.sw *~ audiogen videogen
|