Mercurial > libavcodec.hg
comparison Makefile @ 3933:ed92e541db41 libavcodec
Simplify EXTRALIBS handling.
author | diego |
---|---|
date | Thu, 05 Oct 2006 00:32:56 +0000 |
parents | d13da74a26f5 |
children | f2f03d25e58c |
comparison
equal
deleted
inserted
replaced
3932:d13da74a26f5 | 3933:ed92e541db41 |
---|---|
398 CFLAGS += $(CFLAGS-yes) | 398 CFLAGS += $(CFLAGS-yes) |
399 OBJS += $(OBJS-yes) | 399 OBJS += $(OBJS-yes) |
400 ASM_OBJS += $(ASM_OBJS-yes) | 400 ASM_OBJS += $(ASM_OBJS-yes) |
401 | 401 |
402 NAME=avcodec | 402 NAME=avcodec |
403 LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF) | |
404 ifeq ($(BUILD_SHARED),yes) | 403 ifeq ($(BUILD_SHARED),yes) |
405 LIBVERSION=$(LAVCVERSION) | 404 LIBVERSION=$(LAVCVERSION) |
406 LIBMAJOR=$(LAVCMAJOR) | 405 LIBMAJOR=$(LAVCMAJOR) |
407 endif | 406 endif |
408 TESTS= cpuid_test imgresample-test dct-test motion-test fft-test | 407 TESTS= cpuid_test imgresample-test dct-test motion-test fft-test |
430 -$(MAKE) -C amr clean | 429 -$(MAKE) -C amr clean |
431 -$(MAKE) -C amrwb_float -f makefile.gcc clean | 430 -$(MAKE) -C amrwb_float -f makefile.gcc clean |
432 | 431 |
433 # api example program | 432 # api example program |
434 apiexample: apiexample.c $(LIB) | 433 apiexample: apiexample.c $(LIB) |
435 $(CC) $(CFLAGS) -o $@ $^ $(LIBAVUTIL) $(EXTRALIBS) | 434 $(CC) $(CFLAGS) -o $@ $^ $(EXTRALIBS) |
436 | 435 |
437 # cpuid test | 436 # cpuid test |
438 cpuid_test: i386/cputest.c | 437 cpuid_test: i386/cputest.c |
439 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< | 438 $(CC) $(CFLAGS) -D__TEST__ -o $@ $< |
440 | 439 |
442 | 441 |
443 imgresample-test: imgresample.c | 442 imgresample-test: imgresample.c |
444 $(CC) $(CFLAGS) -DTEST -o $@ $^ -lm | 443 $(CC) $(CFLAGS) -DTEST -o $@ $^ -lm |
445 | 444 |
446 dct-test: dct-test.o fdctref.o $(LIB) | 445 dct-test: dct-test.o fdctref.o $(LIB) |
447 $(CC) -o $@ $^ -lm $(LIBAVUTIL) | 446 $(CC) -o $@ $^ $(EXTRALIBS) |
448 | 447 |
449 motion-test: motion_test.o $(LIB) | 448 motion-test: motion_test.o $(LIB) |
450 $(CC) -o $@ $^ -lm | 449 $(CC) -o $@ $^ -lm |
451 | 450 |
452 fft-test: fft-test.o $(LIB) | 451 fft-test: fft-test.o $(LIB) |
453 $(CC) -o $@ $^ $(LIBAVUTIL) -lm | 452 $(CC) -o $@ $^ $(EXTRALIBS) |
454 | 453 |
455 .PHONY: amrlibs tests | 454 .PHONY: amrlibs tests |