From: Ivan Maidanski Date: Fri, 17 Feb 2017 20:27:19 +0000 (+0300) Subject: Move libraries version info to the beginning of Makefile.am X-Git-Tag: v7.4.6~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4567c540fce1dcbcb05d101dcc2c4ef145bf2a2;p=libatomic_ops Move libraries version info to the beginning of Makefile.am (code refactoring) * src/Makefile.am (LIBATOMIC_OPS_VER_INFO, LIBATOMIC_OPS_GPL_VER_INFO): New variable; add comment about the version update rule. * src/Makefile.am (libatomic_ops_la_LDFLAGS, libatomic_ops_gpl_la_LDFLAGS): Use LIBATOMIC_OPS_[GPL_]VER_INFO instead direct hard-coding of version info. --- diff --git a/src/Makefile.am b/src/Makefile.am index 3239f95..a0b6422 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,10 @@ + +# Info (current:revision:age) for the Libtool versioning system. +# These numbers should be updated at most once just before the release, +# and, optionally, at most once during the development (after the release). +LIBATOMIC_OPS_VER_INFO = 1:3:0 +LIBATOMIC_OPS_GPL_VER_INFO = 1:3:0 + AM_CFLAGS=@PICFLAG@ AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src @@ -10,10 +17,12 @@ libatomic_ops_la_SOURCES = atomic_ops.c atomic_ops_sysdeps.S else libatomic_ops_la_SOURCES = atomic_ops.c endif -libatomic_ops_la_LDFLAGS = -version-info 1:3:0 -no-undefined +libatomic_ops_la_LDFLAGS = -version-info $(LIBATOMIC_OPS_VER_INFO) \ + -no-undefined libatomic_ops_gpl_la_SOURCES = atomic_ops_stack.c atomic_ops_malloc.c -libatomic_ops_gpl_la_LDFLAGS = -version-info 1:3:0 -no-undefined +libatomic_ops_gpl_la_LDFLAGS = -version-info $(LIBATOMIC_OPS_GPL_VER_INFO) \ + -no-undefined libatomic_ops_gpl_la_LIBADD = libatomic_ops.la EXTRA_DIST = Makefile.msft atomic_ops/sysdeps/README \