mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
Use versioned names explicitly instead of employed backwards-named variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22602 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b10bac0b6a
commit
5bf5aebe92
@ -4,12 +4,9 @@ MAJOR_VERSION = 1
|
||||
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 @@ ifeq ($(TARGET_WIN32),yes)
|
||||
$(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 @@ dep depend: pci_names.c
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user