Blame project/version.mk

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