Mercurial > libavcodec.hg
comparison Makefile @ 6185:b9d115ed13fa libavcodec
Add $(EXESUF) where necessary.
author | diego |
---|---|
date | Sun, 27 Jan 2008 17:50:59 +0000 |
parents | b65c4378ecfe |
children | 0bc5338a2e33 |
comparison
equal
deleted
inserted
replaced
6184:4ba171d6d84a | 6185:b9d115ed13fa |
---|---|
465 mlib/*.o mlib/*~ \ | 465 mlib/*.o mlib/*~ \ |
466 ppc/*.o ppc/*~ \ | 466 ppc/*.o ppc/*~ \ |
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$(EXESUF) $(TESTS) |
471 | 471 |
472 TESTS = $(addsuffix -test, cabac dct eval fft h264 imgresample rangecoder snow) | 472 TESTS = $(addsuffix -test$(EXESUF), 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$(EXESUF) motion-test$(EXESUF) |
475 endif | 475 endif |
476 | 476 |
477 tests: apiexample $(TESTS) | 477 tests: apiexample$(EXESUF) $(TESTS) |
478 | 478 |
479 cpuid-test: i386/cputest.c | 479 cpuid-test$(EXESUF): i386/cputest.c |
480 apiexample: apiexample.o $(LIBNAME) | 480 apiexample$(EXESUF): apiexample.o $(LIBNAME) |
481 dct-test: dct-test.o fdctref.o $(LIBNAME) | 481 dct-test$(EXESUF): dct-test.o fdctref.o $(LIBNAME) |
482 fft-test: fft-test.o $(LIBNAME) | 482 fft-test$(EXESUF): fft-test.o $(LIBNAME) |
483 motion-test: motion-test.o $(LIBNAME) | 483 motion-test$(EXESUF): motion-test.o $(LIBNAME) |
484 | 484 |
485 %-test: %.c $(LIBNAME) | 485 %-test$(EXESUF): %.c $(LIBNAME) |
486 $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) | 486 $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) |
487 | 487 |
488 .PHONY: tests | 488 .PHONY: tests |