1include $(top_srcdir)/config/Rules.am 2 3AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS) 4AM_CFLAGS += -fvisibility=hidden 5 6DEFAULT_INCLUDES += -I$(srcdir) 7 8noinst_LTLIBRARIES = libzutil.la 9 10USER_C = \ 11 zutil_device_path.c \ 12 zutil_import.c \ 13 zutil_import.h \ 14 zutil_nicenum.c \ 15 zutil_pool.c 16 17if BUILD_LINUX 18USER_C += \ 19 os/linux/zutil_device_path_os.c \ 20 os/linux/zutil_import_os.c 21endif 22 23if BUILD_FREEBSD 24USER_C += \ 25 os/freebsd/zutil_device_path_os.c \ 26 os/freebsd/zutil_import_os.c 27endif 28 29libzutil_la_SOURCES = $(USER_C) 30 31libzutil_la_LIBADD = \ 32 $(abs_top_builddir)/lib/libavl/libavl.la \ 33 $(abs_top_builddir)/lib/libtpool/libtpool.la \ 34 $(abs_top_builddir)/lib/libnvpair/libnvpair.la \ 35 $(abs_top_builddir)/lib/libspl/libspl.la 36 37if BUILD_LINUX 38libzutil_la_LIBADD += \ 39 $(abs_top_builddir)/lib/libefi/libefi.la \ 40 -lrt 41endif 42 43libzutil_la_LIBADD += -lm $(LIBBLKID_LIBS) $(LIBUDEV_LIBS) 44 45include $(top_srcdir)/config/CppCheck.am 46