Blame sofort/version.mk

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