summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-06-14 15:15:23 +0200
committerraveit65 <[email protected]>2019-06-14 21:58:06 +0200
commit4dae985e964be17a532730c02dcf10b818bcfa3f (patch)
tree4b9855a57b9ad270976cac8591d9bb4d6781db45
parente8457406d0877d6a96bfb754d2be3f214bed45d7 (diff)
downloadmarco-4dae985e964be17a532730c02dcf10b818bcfa3f.tar.bz2
marco-4dae985e964be17a532730c02dcf10b818bcfa3f.tar.xz
libmarco-private: add version information
-rw-r--r--configure.ac11
-rw-r--r--src/Makefile.am2
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 040383b8..dc0d4f85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,17 @@ AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
+dnl **************************************************************************
+dnl Library version information
+dnl **************************************************************************
+
+m4_define([lt_current], [1])
+m4_define([lt_revision], [0])
+m4_define([lt_age], [0])
+m4_define([lt_version_info], [lt_current:lt_revision:lt_age])
+
+AC_SUBST([LT_VERSION_INFO], [lt_version_info])
+
# Honor aclocal flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
diff --git a/src/Makefile.am b/src/Makefile.am
index 5da756a6..0bdba31c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -116,7 +116,7 @@ libmarco_private_la_SOURCES= \
ui/ui.c \
include/all-keybindings.h
-libmarco_private_la_LDFLAGS = -no-undefined -version-info 1:0:0
+libmarco_private_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION_INFO)
libmarco_private_la_LIBADD = @MARCO_LIBS@
libmarcoincludedir = $(includedir)/marco-1/marco-private