Mercurial > mplayer.hg
changeset 22584:a1b0a9880d58
Use versioned names explicitly instead of employed backwards-named variables.
author | diego |
---|---|
date | Thu, 15 Mar 2007 09:14:35 +0000 |
parents | 104d125600b2 |
children | 98a00e3b8a65 |
files | libdha/Makefile |
diffstat | 1 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libdha/Makefile Thu Mar 15 09:07:22 2007 +0000 +++ b/libdha/Makefile Thu Mar 15 09:14:35 2007 +0000 @@ -4,12 +4,9 @@ MINOR_VERSION = 0 VERSION = $(MAJOR_VERSION).$(MINOR_VERSION) -LIBNAME = libdha.so.$(VERSION) -SHORTNAME = libdha.so.$(MAJOR_VERSION) -VSHORTNAME = libdha.so +LIBNAME = libdha.so ifeq ($(TARGET_WIN32),yes) LIBNAME = libdha.a -SHORTNAME = libdha.a endif SRCS_MPLAYER = libdha.c \ @@ -41,8 +38,8 @@ $(AR) r $@ $^ else $(CC) -shared -Wl,-soname -Wl,$@ -o $@ $^ $(EXTRALIBS) - ln -sf $@ $(SHORTNAME) - ln -sf $@ $(VSHORTNAME) + ln -sf $@ $@.$(VERSION) + ln -sf $@ $@.$(MAJOR_VERSION) endif pci_names.c: oth/pci.db @@ -63,11 +60,11 @@ install: -mkdir -p $(LIBDIR) $(INSTALL) -m 755 $(INSTALLSTRIP) -p $(LIBNAME) $(LIBDIR)/$(LIBNAME) - ln -sf $(LIBNAME) $(LIBDIR)/$(SHORTNAME) + ln -sf $(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) -$(LDCONFIG) uninstall: - rm -f $(LIBDIR)/libdha.so $(LIBDIR)/$(SHORTNAME) $(LIBDIR)/$(LIBNAME) + rm -f $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME).$(MAJOR_VERSION) $(LIBDIR)/$(LIBNAME).$(VERSION) -$(LDCONFIG) -include .depend