Mercurial > libavcodec.hg
comparison Makefile @ 6182:45b44718ff31 libavcodec
Add generic rule for all tests.
author | diego |
---|---|
date | Sun, 27 Jan 2008 14:50:29 +0000 |
parents | de96bd7409ad |
children | b65c4378ecfe |
comparison
equal
deleted
inserted
replaced
6181:f3da7b2592aa | 6182:45b44718ff31 |
---|---|
467 ps2/*.o ps2/*~ \ | 467 ps2/*.o ps2/*~ \ |
468 sh4/*.o sh4/*~ \ | 468 sh4/*.o sh4/*~ \ |
469 sparc/*.o sparc/*~ \ | 469 sparc/*.o sparc/*~ \ |
470 apiexample $(TESTS) | 470 apiexample $(TESTS) |
471 | 471 |
472 TESTS= imgresample-test fft-test dct-test | 472 TESTS = $(addsuffix -test, cabac dct eval fft h264 imgresample rangecoder snow) |
473 ifeq ($(ARCH_X86),yes) | 473 ifeq ($(ARCH_X86),yes) |
474 TESTS+= cpuid-test motion-test | 474 TESTS+= cpuid-test motion-test |
475 endif | 475 endif |
476 | 476 |
477 tests: apiexample $(TESTS) | 477 tests: apiexample $(TESTS) |
478 | 478 |
479 apiexample: apiexample.o $(LIBNAME) | 479 apiexample: apiexample.o $(LIBNAME) |
480 | 480 |
481 cpuid-test: i386/cputest.c | 481 cpuid-test: i386/cputest.c |
482 $(CC) $(CFLAGS) -DTEST -o $@ $< | |
483 | 482 |
484 dct-test: dct-test.o fdctref.o $(LIBNAME) | 483 dct-test: dct-test.o fdctref.o $(LIBNAME) |
485 | 484 |
486 fft-test: fft-test.o $(LIBNAME) | 485 fft-test: fft-test.o $(LIBNAME) |
487 | 486 |
488 imgresample-test: imgresample.c $(LIBNAME) | |
489 $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) | |
490 | |
491 motion-test: motion-test.o $(LIBNAME) | 487 motion-test: motion-test.o $(LIBNAME) |
492 | 488 |
489 %-test: %.c $(LIBNAME) | |
490 $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) | |
491 | |
493 .PHONY: tests | 492 .PHONY: tests |