1## Makefile.am 2 3AM_CPPFLAGS = ${libuuid_CFLAGS} ${libblkid_CFLAGS} -I$(top_srcdir)/include 4AM_CFLAGS = -Wall -DWITH_BLKDISCARD 5sbin_PROGRAMS = mkfs.f2fs 6noinst_HEADERS = f2fs_format_utils.h 7include_HEADERS = $(top_srcdir)/include/f2fs_fs.h 8mkfs_f2fs_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c 9mkfs_f2fs_LDADD = ${libuuid_LIBS} ${libblkid_LIBS} $(top_builddir)/lib/libf2fs.la 10 11lib_LTLIBRARIES = libf2fs_format.la 12libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c 13libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD 14libf2fs_format_la_LDFLAGS = ${libblkid_LIBS} ${libuuid_LIBS} -L$(top_builddir)/lib -lf2fs \ 15 -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE) 16 17install-exec-hook: 18 if test -n "$(root_libdir)" -a "$(libdir)" != "$(root_libdir)" -a \ 19 -f "$(DESTDIR)$(libdir)/libf2fs_format.so"; then \ 20 $(MKDIR_P) $(DESTDIR)$(root_libdir); \ 21 mv $(DESTDIR)$(libdir)/libf2fs_format.so.* $(DESTDIR)$(root_libdir); \ 22 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libf2fs_format.so); \ 23 so_img_rel_target=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ 24 (cd $(DESTDIR)$(libdir) && \ 25 rm -f libf2fs_format.so && \ 26 $(LN_S) $$so_img_rel_target$(root_libdir)/$$so_img_name libf2fs_format.so); \ 27 fi 28 29uninstall-hook: 30 rm $(DESTDIR)$(root_libdir)/libf2fs_format.so* 31