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_CPPFLAGS = -I$(top_srcdir)/include 15libf2fs_format_la_LDFLAGS = -lblkid -luuid -L$(top_builddir)/lib -lf2fs \ 16 -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE) 17 18install-exec-hook: 19 if test -n "$(root_libdir)" -a "$(libdir)" != "$(root_libdir)" -a \ 20 -f "$(DESTDIR)$(libdir)/libf2fs_format.so"; then \ 21 $(MKDIR_P) $(DESTDIR)$(root_libdir); \ 22 mv $(DESTDIR)$(libdir)/libf2fs_format.so.* $(DESTDIR)$(root_libdir); \ 23 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libf2fs_format.so); \ 24 so_img_rel_target=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \ 25 (cd $(DESTDIR)$(libdir) && \ 26 rm -f libf2fs_format.so && \ 27 $(LN_S) $$so_img_rel_target$(root_libdir)/$$so_img_name libf2fs_format.so); \ 28 fi 29 30uninstall-hook: 31 rm $(DESTDIR)$(root_libdir)/libf2fs_format.so* 32