Blame sofort/version.mk

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