Reicher82 / python / sbpython3

Forked from python/sbpython3 3 years ago
Clone

Blame sofort/version.mk

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