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