aboutsummaryrefslogtreecommitdiffstats
path: root/mkfs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-09 10:30:25 -0800
committerSteve Kondik <steve@cyngn.com>2016-08-24 11:43:29 -0700
commite24d0075024276f422050eb06c7c8b0de4d7a58d (patch)
treeaea3e1ab1d6c0b341c4bae109e1555ec73f7701b /mkfs
parent91e48354107d593231b77110cb262665ad490b38 (diff)
downloadandroid_external_f2fs-tools-e24d0075024276f422050eb06c7c8b0de4d7a58d.tar.gz
android_external_f2fs-tools-e24d0075024276f422050eb06c7c8b0de4d7a58d.tar.bz2
android_external_f2fs-tools-e24d0075024276f422050eb06c7c8b0de4d7a58d.zip
f2fs-tools: add library version info
This patch gives the version info for two libraries. mkfs/libf2fs_format.la lib/libf2fs.la The versioning rule should be: 1. Start with version information of '0:0:0' for each libtool library. 2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster. 2. If the library source code has changed at all since the last update, then increment revision (c:r:a) becomes (c:r+1:a). 3. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. 4. If any interfaces have been added since the last public release, then increment age. 5. If any interfaces have been removed or changed since the last public release, then set age to 0. quoted from: http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info Change-Id: I2226ec841157adeb65bceda06eb2e4bcafce66a4 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkfs/Makefile.am b/mkfs/Makefile.am
index 8969a04..8b4c16c 100644
--- a/mkfs/Makefile.am
+++ b/mkfs/Makefile.am
@@ -10,4 +10,5 @@ lib_LTLIBRARIES = libf2fs_format.la
libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c
libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD
libf2fs_format_la_CPPFLAGS = -I$(top_srcdir)/include
-libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs
+libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs \
+ -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE)