Blame sofort/core/version.mk

66a30d
include $(PROJECT_DIR)/project/tagver.mk
66a30d
66a30d
CFLAGS_VERSION	+= -D$(VER_NAMESPACE)_TAG_VER_MAJOR=$(VER_MAJOR)
66a30d
CFLAGS_VERSION	+= -D$(VER_NAMESPACE)_TAG_VER_MINOR=$(VER_MINOR)
66a30d
CFLAGS_VERSION	+= -D$(VER_NAMESPACE)_TAG_VER_PATCH=$(VER_PATCH)
66a30d
66a30d
ifeq ($(AVOID_VERSION),yes)
66a30d
66a30d
VER_XYZ		=
66a30d
VER_SONAME	=
66a30d
66a30d
package-shared-soname:
66a30d
package-shared-solink:
66a30d
package-install-soname:
66a30d
package-install-solink:
66a30d
66a30d
else
66a30d
66a30d
VER_XYZ		= .$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
66a30d
VER_SONAME	= .$(VER_MAJOR)
66a30d
66a30d
package-shared-soname:	shared-soname
66a30d
package-shared-solink:	shared-solink
66a30d
package-install-soname:	install-soname
66a30d
package-install-solink:	install-solink
66a30d
66a30d
66a30d
66a30d
# libfoo.so (common)
66a30d
install-solink:		install-lib
66a30d
			rm -f $(SHARED_SOLINK).tmp
66a30d
			ln -s $(DSO_VER) $(SHARED_SOLINK).tmp
66a30d
			mv $(SHARED_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(DSO_SOLINK)
66a30d
66a30d
$(SHARED_SOLINK):	$(SHARED_LIB)
66a30d
			rm -f $@.tmp
66a30d
			ln -s $(DSO_VER) $@.tmp
66a30d
			mv $@.tmp $@
66a30d
66a30d
# libfoo.so.x (symlink)
66a30d
ifeq ($(OS_SONAME),symlink)
66a30d
$(SHARED_SONAME):	$(SHARED_LIB)
66a30d
			rm -f $@.tmp
66a30d
			ln -s $(DSO_VER) $@.tmp
66a30d
			mv $@.tmp $@
66a30d
66a30d
install-soname:		install-lib
66a30d
			rm -f $(SHARED_SONAME).tmp
66a30d
			ln -s $(DSO_VER) $(SHARED_SONAME).tmp
66a30d
			mv $(SHARED_SONAME).tmp $(DESTDIR)$(LIBDIR)/$(DSO_SONAME)
66a30d
endif
66a30d
66a30d
66a30d
# libfoo.so.x (copy)
66a30d
ifeq ($(OS_SONAME),copy)
66a30d
install-soname:		install-lib
66a30d
			cp $(SHARED_LIB) $(DESTDIR)$(LIBDIR)/$(DSO_SONAME)
66a30d
66a30d
$(SHARED_SONAME):	$(SHARED_LIB)
66a30d
			cp $(SHARED_LIB) $(SHARED_SONAME)
66a30d
endif
66a30d
66a30d
endif