Skip to content

Commit

Permalink
add proper versioning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
libv committed Mar 25, 2014
1 parent 5769ba0 commit 1c1f633
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -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
Expand Down Expand Up @@ -37,6 +40,7 @@ AC_CHECK_LIB([pthread],[pthread_mutex_lock],[],[])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/ump.h
])

AC_OUTPUT
1 change: 1 addition & 0 deletions 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 \
Expand Down
1 change: 1 addition & 0 deletions src/ump.h → src/ump.h.in
Expand Up @@ -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
* @{ */
Expand Down

0 comments on commit 1c1f633

Please sign in to comment.