Blame sofort/version.mk

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