]> granicus.if.org Git - libatomic_ops/commitdiff
Move libraries version info to the beginning of Makefile.am
authorIvan Maidanski <ivmai@mail.ru>
Fri, 17 Feb 2017 20:27:19 +0000 (23:27 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 17 Feb 2017 20:27:19 +0000 (23:27 +0300)
(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

index ad4a21cf29c35be142bd2762a2617c3b7e5383d7..d283ef2e220896b0ff3787523633f3d556d39f03 100644 (file)
@@ -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 \