Blame project/version.mk

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