aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai-Chung Yan <seamlikok@gmail.com>2015-12-09 10:14:32 -0800
committerGreg Wallace <greg@gregtwallace.com>2016-01-19 22:02:20 -0500
commit7e76ee50d168715e8f70a044867f5dab70147ae1 (patch)
treeb8f20115001a84809435f3058ea5fa8d53a76322
parent8c1bb17576651d98d7d72aa96b36590e5fbc06ad (diff)
downloadandroid_external_f2fs-tools-7e76ee50d168715e8f70a044867f5dab70147ae1.tar.gz
android_external_f2fs-tools-7e76ee50d168715e8f70a044867f5dab70147ae1.tar.bz2
android_external_f2fs-tools-7e76ee50d168715e8f70a044867f5dab70147ae1.zip
mkfs/Makefile.am: add a section to build libf2fs_fmt
libf2fs_fmt is compiled from the same sources of mkfs.f2fs. This library is required by libf2fs_utils and fastboot from the Android Open Source Project and we believe the Android SDK maintainers from Debian will greatly benefit from this change. Change-Id: Ia376939b7476e6dadd9cd2fad2f867d66e9102e0 Signed-off-by: Kai-Chung Yan <seamlikok@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--mkfs/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkfs/Makefile.am b/mkfs/Makefile.am
index 7343f23..8969a04 100644
--- a/mkfs/Makefile.am
+++ b/mkfs/Makefile.am
@@ -5,3 +5,9 @@ AM_CFLAGS = -Wall -DWITH_BLKDISCARD
sbin_PROGRAMS = mkfs.f2fs
mkfs_f2fs_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c f2fs_format_utils.h $(top_srcdir)/include/f2fs_fs.h
mkfs_f2fs_LDADD = ${libuuid_LIBS} $(top_builddir)/lib/libf2fs.la
+
+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