From d6b0f7091ab1da686e1485c0f05227ce85f3e05e Mon Sep 17 00:00:00 2001 From: Kai-Chung Yan Date: Wed, 9 Dec 2015 10:14:32 -0800 Subject: [PATCH] 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. Signed-off-by: Kai-Chung Yan Signed-off-by: Jaegeuk Kim --- mkfs/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.7.4