Skip to content

Commit

Permalink
Document library version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 10, 2011
1 parent e8f6661 commit 516dc52
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions configure.ac
Expand Up @@ -10,6 +10,20 @@ AC_SUBST(VERSION)
ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

SIXJACK_LIBRARY_VERSION=0:0:0
# | | |
# +------+ | +---+
# | | |
# current:revision:age
# | | |
# | | +- increment if interfaces have been added
# | | set to zero if interfaces have been removed
# | | or changed
# | +- increment if source code has changed
# | set to zero if current is incremented
# +- increment if interfaces have been added, removed or changed
AC_SUBST(SIXJACK_LIBRARY_VERSION)

# Checks for programs.
AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS
Expand Down
8 changes: 7 additions & 1 deletion src/Makefile.am
Expand Up @@ -16,7 +16,9 @@ lib6jack_la_SOURCES = \
hook-socket.h \
hook-socket.c

lib6jack_la_LDFLAGS = -version-info 0:1
lib6jack_la_LDFLAGS = \
$(AM_LDFLAGS) \
-version-info $(SIXJACK_LIBRARY_VERSION)

bin_PROGRAMS = \
6jack-test
Expand All @@ -25,6 +27,10 @@ bin_PROGRAMS = \
6jack-test.c

6jack_test_LDADD = \
$(AM_LDDD) \
lib6jack.la

6jack_test_DEPENDENCIES = \
lib6jack.la

EXTRA_DIST = \
Expand Down

0 comments on commit 516dc52

Please sign in to comment.