[FFmpeg-cvslog] r11631 - trunk/libavcodec/Makefile
diego
subversion
Sun Jan 27 15:50:29 CET 2008
Author: diego
Date: Sun Jan 27 15:50:29 2008
New Revision: 11631
Log:
Add generic rule for all tests.
Modified:
trunk/libavcodec/Makefile
Modified: trunk/libavcodec/Makefile
==============================================================================
--- trunk/libavcodec/Makefile (original)
+++ trunk/libavcodec/Makefile Sun Jan 27 15:50:29 2008
@@ -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
More information about the ffmpeg-cvslog
mailing list