Blame sofort/core/version.mk

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