orbea / cross / slibtool

Forked from cross/slibtool 3 years ago
Clone

Blame sofort/version.mk

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