Blame sofort/version.mk

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