summaryrefslogtreecommitdiff
path: root/sofort/exrules/_pe/pe_version_used.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-11 04:11:56 +0000
committermidipix <writeonce@midipix.org>2021-04-11 04:13:28 +0000
commit17ddc9a88e10b49669e4eca6e19b834d125d0e52 (patch)
tree17e988b28b54697cca786d5a3bee117c6c8720d1 /sofort/exrules/_pe/pe_version_used.mk
parent75733a7f34d2620e754f0a6cfc26c6c9b2e5f814 (diff)
downloadslibtool-17ddc9a88e10b49669e4eca6e19b834d125d0e52.tar.bz2
slibtool-17ddc9a88e10b49669e4eca6e19b834d125d0e52.tar.xz
build system: posix make support: refactored PE library versioning rules.
Diffstat (limited to 'sofort/exrules/_pe/pe_version_used.mk')
-rw-r--r--sofort/exrules/_pe/pe_version_used.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/sofort/exrules/_pe/pe_version_used.mk b/sofort/exrules/_pe/pe_version_used.mk
new file mode 100644
index 0000000..8710dae
--- /dev/null
+++ b/sofort/exrules/_pe/pe_version_used.mk
@@ -0,0 +1,23 @@
+# pe_version_used.mk: handling of PE shared library versioning schemes.
+# this file is covered by COPYING.SOFORT.
+
+package-implib-soname: implib-soname
+package-implib-solink: implib-solink
+package-install-implib-soname: install-implib-soname
+package-install-implib-solink: install-implib-solink
+
+
+$(IMPLIB_SOLINK): $(IMPLIB_SONAME)
+ rm -f $(IMPLIB_SOLINK).tmp
+ ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
+ mv $(IMPLIB_SOLINK).tmp $(IMPLIB_SOLINK)
+
+install-implib-soname: implib-soname
+ mkdir -p $(DESTDIR)$(LIBDIR)
+ cp $(IMPLIB_SONAME) $(DESTDIR)$(LIBDIR)
+
+install-implib-solink: implib-soname
+ mkdir -p $(DESTDIR)$(LIBDIR)
+ rm -f $(IMPLIB_SOLINK).tmp
+ ln -s $(IMP_SONAME) $(IMPLIB_SOLINK).tmp
+ mv $(IMPLIB_SOLINK).tmp $(DESTDIR)$(LIBDIR)/$(IMP_SOLINK)