# HG changeset patch # User diego # Date 1201445429 0 # Node ID 45b44718ff313c120885d1d199a97e13f13bda0a # Parent f3da7b2592aab26e8e5c9ece6595e860f3092f50 Add generic rule for all tests. diff -r f3da7b2592aa -r 45b44718ff31 Makefile --- a/Makefile Sun Jan 27 14:46:56 2008 +0000 +++ b/Makefile Sun Jan 27 14:50:29 2008 +0000 @@ -469,7 +469,7 @@ 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 @@ 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