Blame sofort/core/version.mk

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