diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-01-27 14:50:29 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-01-27 14:50:29 +0000 |
commit | f98869bcec94f5088c0a024792c1ba9611fcf139 (patch) | |
tree | 80dde4b15b795fb7e7a3896bd9be4d916e22ceac /libavcodec/Makefile | |
parent | 27215c6bf436f935a60523897ee11bebcda86728 (diff) | |
download | ffmpeg-f98869bcec94f5088c0a024792c1ba9611fcf139.tar.gz |
Add generic rule for all tests.
Originally committed as revision 11631 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/Makefile')
-rw-r--r-- | libavcodec/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile index b7b1c1f5b1..b74f8749d5 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -469,7 +469,7 @@ clean:: sparc/*.o sparc/*~ \ apiexample $(TESTS) -TESTS= imgresample-test fft-test dct-test +TESTS = $(addsuffix -test, cabac dct eval fft h264 imgresample rangecoder snow) ifeq ($(ARCH_X86),yes) TESTS+= cpuid-test motion-test endif @@ -479,15 +479,14 @@ tests: apiexample $(TESTS) apiexample: apiexample.o $(LIBNAME) cpuid-test: i386/cputest.c - $(CC) $(CFLAGS) -DTEST -o $@ $< dct-test: dct-test.o fdctref.o $(LIBNAME) fft-test: fft-test.o $(LIBNAME) -imgresample-test: imgresample.c $(LIBNAME) - $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) - motion-test: motion-test.o $(LIBNAME) +%-test: %.c $(LIBNAME) + $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) + .PHONY: tests |