Commit 539442c7 authored by Alexandre Julliard's avatar Alexandre Julliard

libwine: Add a minor number to the library filename for future extensions.

parent fdfc24ca
*.dylib *.dylib
*.so.1 *.so.*
...@@ -9,6 +9,7 @@ VERSCRIPT = $(SRCDIR)/wine.map ...@@ -9,6 +9,7 @@ VERSCRIPT = $(SRCDIR)/wine.map
EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@ EXTRALIBS = $(LIBPORT) @DLLIBS@ @CRTLIBS@
DEFS = -D__WINESRC__ -DWINE_UNICODE_API="" DEFS = -D__WINESRC__ -DWINE_UNICODE_API=""
VERSION = 1.0
SOVERSION = 1 SOVERSION = 1
SONAME = libwine.so.$(SOVERSION) SONAME = libwine.so.$(SOVERSION)
DYNAME = libwine.$(SOVERSION).dylib DYNAME = libwine.$(SOVERSION).dylib
...@@ -113,9 +114,12 @@ config.o: config.c $(RELPATH) ...@@ -113,9 +114,12 @@ config.o: config.c $(RELPATH)
# Linking rules # Linking rules
libwine.so.$(SOVERSION): $(OBJS) $(VERSCRIPT) Makefile.in libwine.so.$(VERSION): $(OBJS) $(VERSCRIPT) Makefile.in
$(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@ $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
libwine.so.$(SOVERSION): libwine.so.$(VERSION)
$(RM) $@ && $(LN_S) libwine.so.$(VERSION) $@
libwine.so: libwine.so.$(SOVERSION) libwine.so: libwine.so.$(SOVERSION)
$(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@ $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
...@@ -125,9 +129,12 @@ libwine.a: wine.def ...@@ -125,9 +129,12 @@ libwine.a: wine.def
libwine.dll: $(OBJS) wine.def Makefile.in libwine.dll: $(OBJS) wine.def Makefile.in
$(DLLWRAP) --def $(SRCDIR)/wine.def -o $@ $(OBJS) $(EXTRALIBS) $(DLLWRAP) --def $(SRCDIR)/wine.def -o $@ $(OBJS) $(EXTRALIBS)
libwine.$(SOVERSION).dylib: $(OBJS) $(RELPATH) Makefile.in libwine.$(VERSION).dylib: $(OBJS) $(RELPATH) Makefile.in
$(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@ $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
libwine.$(SOVERSION).dylib: libwine.$(VERSION).dylib
$(RM) $@ && $(LN_S) libwine.$(VERSION).dylib $@
libwine.dylib: libwine.$(SOVERSION).dylib libwine.dylib: libwine.$(SOVERSION).dylib
$(RM) $@ && $(LN_S) libwine.$(SOVERSION).dylib $@ $(RM) $@ && $(LN_S) libwine.$(SOVERSION).dylib $@
...@@ -135,21 +142,23 @@ libwine.dylib: libwine.$(SOVERSION).dylib ...@@ -135,21 +142,23 @@ libwine.dylib: libwine.$(SOVERSION).dylib
.PHONY: install-lib-so install-lib-dll install-lib-dylib install-dev-so install-dev-dll install-dev-dylib .PHONY: install-lib-so install-lib-dll install-lib-dylib install-dev-so install-dev-dll install-dev-dylib
install-lib-so: libwine.so.$(SOVERSION) dummy install-lib-so: libwine.so.$(VERSION) dummy
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(DESTDIR)$(libdir)/libwine.so.$(SOVERSION) $(INSTALL_PROGRAM) libwine.so.$(VERSION) $(DESTDIR)$(libdir)/libwine.so.$(VERSION)
cd $(DESTDIR)$(libdir) && $(RM) libwine.so.$(SOVERSION) && $(LN_S) libwine.so.$(VERSION) libwine.so.$(SOVERSION)
install-lib-dll: libwine.dll dummy install-lib-dll: libwine.dll dummy
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(INSTALL_DATA) libwine.dll $(DESTDIR)$(libdir)/libwine.dll $(INSTALL_DATA) libwine.dll $(DESTDIR)$(libdir)/libwine.dll
install-lib-dylib: libwine.$(SOVERSION).dylib dummy install-lib-dylib: libwine.$(VERSION).dylib dummy
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(INSTALL_PROGRAM) libwine.$(SOVERSION).dylib $(DESTDIR)$(libdir)/libwine.$(SOVERSION).dylib $(INSTALL_PROGRAM) libwine.$(VERSION).dylib $(DESTDIR)$(libdir)/libwine.$(VERSION).dylib
cd $(DESTDIR)$(libdir) && $(RM) libwine.$(SOVERSION).dylib && $(LN_S) libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib
install-dev-so: dummy install-dev-so: dummy
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
cd $(DESTDIR)$(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so cd $(DESTDIR)$(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(VERSION) libwine.so
install-dev-dll: libwine.a dummy install-dev-dll: libwine.a dummy
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
...@@ -157,16 +166,17 @@ install-dev-dll: libwine.a dummy ...@@ -157,16 +166,17 @@ install-dev-dll: libwine.a dummy
install-dev-dylib: dummy install-dev-dylib: dummy
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
cd $(DESTDIR)$(libdir) && $(RM) libwine.dylib && $(LN_S) libwine.$(SOVERSION).dylib libwine.dylib cd $(DESTDIR)$(libdir) && $(RM) libwine.dylib && $(LN_S) libwine.$(VERSION).dylib libwine.dylib
install install-lib:: $(LIBEXT:%=install-lib-%) install install-lib:: $(LIBEXT:%=install-lib-%)
install install-dev:: $(LIBEXT:%=install-dev-%) install install-dev:: $(LIBEXT:%=install-dev-%)
uninstall:: uninstall::
-cd $(DESTDIR)$(libdir) && $(RM) libwine.a libwine.dll libwine.so libwine.so.$(SOVERSION) libwine.dylib libwine.$(SOVERSION).dylib -cd $(DESTDIR)$(libdir) && $(RM) libwine.a libwine.dll libwine.so libwine.so.$(VERSION) \
libwine.so.$(SOVERSION) libwine.dylib libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib
clean:: clean::
$(RM) libwine.so.$(SOVERSION) $(RM) libwine.so.$(SOVERSION) libwine.so.$(VERSION)
$(RELPATH): $(RELPATH):
@cd $(TOOLSDIR)/tools && $(MAKE) relpath @cd $(TOOLSDIR)/tools && $(MAKE) relpath
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment