Mercurial > libavcodec.hg
comparison Makefile @ 3040:6a388c616fa3 libavcodec
Create symbolic links for all library sonames and clean up Makefiles.
based on a patch by Luca Barbato < lu_zero -- at -- gentoo -- dot -- org >
author | diego |
---|---|
date | Sat, 14 Jan 2006 03:39:02 +0000 |
parents | 0c38dcd33ac3 |
children | ed98beb48872 |
comparison
equal
deleted
inserted
replaced
3039:0d08717a0156 | 3040:6a388c616fa3 |
---|---|
397 OBJS := $(OBJS) $(ASM_OBJS) | 397 OBJS := $(OBJS) $(ASM_OBJS) |
398 | 398 |
399 LIB= $(LIBPREF)avcodec$(LIBSUF) | 399 LIB= $(LIBPREF)avcodec$(LIBSUF) |
400 LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF) | 400 LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF) |
401 ifeq ($(BUILD_SHARED),yes) | 401 ifeq ($(BUILD_SHARED),yes) |
402 LIBVERSION=$(LAVCVERSION) | |
403 LIBMAJOR=$(LAVCMAJOR) | |
404 NAME=avcodec | |
402 SLIBNAME= $(SLIBPREF)avcodec$(SLIBSUF) | 405 SLIBNAME= $(SLIBPREF)avcodec$(SLIBSUF) |
403 endif | 406 endif |
404 TESTS= imgresample-test dct-test motion-test fft-test | 407 TESTS= imgresample-test dct-test motion-test fft-test |
405 | 408 |
406 all: $(LIB) $(SLIBNAME) | 409 all: $(LIB) $(SLIBNAME) |
488 | 491 |
489 fft-test: fft-test.o $(LIB) | 492 fft-test: fft-test.o $(LIB) |
490 $(CC) -o $@ $^ $(LIBAVUTIL) -lm | 493 $(CC) -o $@ $^ $(LIBAVUTIL) -lm |
491 | 494 |
492 ifeq ($(BUILD_SHARED),yes) | 495 ifeq ($(BUILD_SHARED),yes) |
493 LIBVERSION=$(LAVCMAJOR) | |
494 install: all install-headers | 496 install: all install-headers |
495 ifeq ($(CONFIG_WIN32),yes) | 497 ifeq ($(CONFIG_WIN32),yes) |
496 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" | 498 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)" |
497 else | 499 else |
498 install -d $(libdir) | 500 install -d $(libdir) |
499 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavcodec-$(VERSION)$(SLIBSUF) | 501 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \ |
500 ln -sf $(SLIBPREF)avcodec-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME) | 502 $(libdir)/$(SLIBNAME_WITH_VERSION) |
503 ln -sf $(SLIBNAME_WITH_VERSION) \ | |
504 $(libdir)/$(SLIBNAME_WITH_MAJOR) | |
505 ln -sf $(SLIBNAME_WITH_VERSION) \ | |
506 $(libdir)/$(SLIBNAME) | |
501 $(LDCONFIG) || true | 507 $(LDCONFIG) || true |
502 endif | 508 endif |
503 ifeq ($(CONFIG_PP),yes) | 509 ifeq ($(CONFIG_PP),yes) |
504 $(MAKE) -C libpostproc $@ | 510 $(MAKE) -C libpostproc $@ |
505 endif | 511 endif |