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