Commit f98869bc authored by Diego Biurrun's avatar Diego Biurrun

Add generic rule for all tests.

Originally committed as revision 11631 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 27215c6b
...@@ -469,7 +469,7 @@ clean:: ...@@ -469,7 +469,7 @@ clean::
sparc/*.o sparc/*~ \ sparc/*.o sparc/*~ \
apiexample $(TESTS) apiexample $(TESTS)
TESTS= imgresample-test fft-test dct-test TESTS = $(addsuffix -test, cabac dct eval fft h264 imgresample rangecoder snow)
ifeq ($(ARCH_X86),yes) ifeq ($(ARCH_X86),yes)
TESTS+= cpuid-test motion-test TESTS+= cpuid-test motion-test
endif endif
...@@ -479,15 +479,14 @@ tests: apiexample $(TESTS) ...@@ -479,15 +479,14 @@ tests: apiexample $(TESTS)
apiexample: apiexample.o $(LIBNAME) apiexample: apiexample.o $(LIBNAME)
cpuid-test: i386/cputest.c cpuid-test: i386/cputest.c
$(CC) $(CFLAGS) -DTEST -o $@ $<
dct-test: dct-test.o fdctref.o $(LIBNAME) dct-test: dct-test.o fdctref.o $(LIBNAME)
fft-test: fft-test.o $(LIBNAME) fft-test: fft-test.o $(LIBNAME)
imgresample-test: imgresample.c $(LIBNAME)
$(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
motion-test: motion-test.o $(LIBNAME) motion-test: motion-test.o $(LIBNAME)
%-test: %.c $(LIBNAME)
$(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
.PHONY: tests .PHONY: tests
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment