summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2013-10-20 23:01:12 +0400
committerLuc Verhaegen <libv@skynet.be>2014-03-26 01:04:12 +0400
commit1c1f6337dffffe8f7aea98f710f681727ed45f4f (patch)
tree6d8c17e25a82f4ea6dde0a8c03e229b502dbcb9b
parent5769ba0fa788b57cf6794561fc87cf96ae3af61d (diff)
downloadlibump-1c1f6337dffffe8f7aea98f710f681727ed45f4f.tar.xz
add proper versioning
We prefer version 3, as r2pX is pretty rare by now, but if needs be, this can be easily changed. Signed-off-by: Luc Verhaegen <libv@skynet.be>
-rw-r--r--configure.ac4
-rw-r--r--src/Makefile.am1
-rw-r--r--src/ump.h.in (renamed from src/ump.h)1
3 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3615503..2c5a2c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,6 +8,9 @@ AM_MAINTAINER_MODE
LT_INIT
+LIBUMP_VERSION_MAJOR=3
+AC_SUBST([LIBUMP_VERSION_MAJOR])
+
# Support silent build rules, requires at least automake-1.11. Disable
# by either passing --disable-silent-rules to configure or passing V=1
# to make
@@ -37,6 +40,7 @@ AC_CHECK_LIB([pthread],[pthread_mutex_lock],[],[])
AC_CONFIG_FILES([
Makefile
src/Makefile
+ src/ump.h
])
AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
index 7d5a8d5..b451044 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,5 @@
lib_LTLIBRARIES = libUMP.la
+libUMP_la_LDFLAGS = -version-info @LIBUMP_VERSION_MAJOR@
libUMP_la_LIBADD = @LIBS@
libUMP_la_SOURCES = \
ump_arch.c \
diff --git a/src/ump.h b/src/ump.h.in
index a7b4f19..327f953 100644
--- a/src/ump.h
+++ b/src/ump.h.in
@@ -23,6 +23,7 @@
#ifndef _UNIFIED_MEMORY_PROVIDER_H_
#define _UNIFIED_MEMORY_PROVIDER_H_
+#define UNIFIED_MEMORY_PROVIDER_VERSION @LIBUMP_VERSION_MAJOR@
/** @defgroup ump_user_space_api UMP User Space API
* @{ */