Blame sofort/core/_version/version_used.mk

fc6f51
# version_used.mk: handling of shared library versioning schemes.
fc6f51
# this file is covered by COPYING.SOFORT.
fc6f51
fc6f51
VER_XYZ		= .$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
fc6f51
VER_SONAME	= .$(VER_MAJOR)
fc6f51
fc6f51
package-shared-soname:	shared-soname
fc6f51
package-shared-solink:	shared-solink
fc6f51
package-install-soname:	install-soname
fc6f51
package-install-solink:	install-solink
fc6f51
fc6f51
fc6f51
fc6f51
# libfoo.so (common)
fc6f51
install-solink:		install-lib
fc6f51
			rm -f $(SHARED_SOLINK).tmp
fc6f51
			ln -s $(DSO_VER) $(SHARED_SOLINK).tmp
fc6f51
			mv $(SHARED_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(DSO_SOLINK)
fc6f51
fc6f51
$(SHARED_SOLINK):	$(SHARED_LIB)
fc6f51
			rm -f $@.tmp
fc6f51
			ln -s $(DSO_VER) $@.tmp
fc6f51
			mv $@.tmp $@
fc6f51
fc6f51
# libfoo.so.x (symlink or copy)
fc6f51
include $(PROJECT_DIR)/sofort/core/_version/_soname/version_soname_$(OS_SONAME).mk