Blame sofort/version.mk

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