Redfoxmoon / cross / slibtool

Forked from cross/slibtool 10 months ago
Clone

Blame project/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
513c5c
VER_XYZ		= .$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
513c5c
VER_SONAME	= .$(VER_MAJOR)
513c5c
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