From 5ab1ac50a4d143f5c7c4b8bb06217f73a7841d4e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 17 Feb 2017 23:27:19 +0300 Subject: [PATCH] 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. --- src/Makefile.am | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index ad4a21c..d283ef2 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 \ -- 2.40.0