Blame sofort/core/version.mk

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