2012-10-26 12:56:34 +00:00
|
|
|
## Makefile.am
|
|
|
|
|
2017-03-05 13:05:01 +00:00
|
|
|
AM_CPPFLAGS = ${libuuid_CFLAGS} ${libblkid_CFLAGS} -I$(top_srcdir)/include
|
2014-07-23 00:28:14 +00:00
|
|
|
AM_CFLAGS = -Wall -DWITH_BLKDISCARD
|
2012-12-12 03:05:07 +00:00
|
|
|
sbin_PROGRAMS = mkfs.f2fs
|
2017-11-12 22:57:41 +00:00
|
|
|
noinst_HEADERS = f2fs_format_utils.h
|
|
|
|
include_HEADERS = $(top_srcdir)/include/f2fs_fs.h
|
|
|
|
mkfs_f2fs_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c
|
2017-03-05 13:05:01 +00:00
|
|
|
mkfs_f2fs_LDADD = ${libuuid_LIBS} ${libblkid_LIBS} $(top_builddir)/lib/libf2fs.la
|
2015-12-09 18:14:32 +00:00
|
|
|
|
|
|
|
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
|
2020-06-12 08:14:10 +00:00
|
|
|
libf2fs_format_la_LDFLAGS = ${libblkid_LIBS} ${libuuid_LIBS} -L$(top_builddir)/lib -lf2fs \
|
2015-12-09 18:30:25 +00:00
|
|
|
-version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE)
|
2018-08-20 03:04:06 +00:00
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
if test -n "$(root_libdir)" -a "$(libdir)" != "$(root_libdir)" -a \
|
|
|
|
-f "$(DESTDIR)$(libdir)/libf2fs_format.so"; then \
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(root_libdir); \
|
|
|
|
mv $(DESTDIR)$(libdir)/libf2fs_format.so.* $(DESTDIR)$(root_libdir); \
|
|
|
|
so_img_name=$$(readlink $(DESTDIR)$(libdir)/libf2fs_format.so); \
|
|
|
|
so_img_rel_target=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
|
|
|
|
(cd $(DESTDIR)$(libdir) && \
|
|
|
|
rm -f libf2fs_format.so && \
|
|
|
|
$(LN_S) $$so_img_rel_target$(root_libdir)/$$so_img_name libf2fs_format.so); \
|
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm $(DESTDIR)$(root_libdir)/libf2fs_format.so*
|