Blame sofort/version.mk

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