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) 6 7DEFAULT_INCLUDES += -I$(srcdir) 8 9noinst_LTLIBRARIES = libzutil.la 10 11USER_C = \ 12 zutil_device_path.c \ 13 zutil_import.c \ 14 zutil_import.h \ 15 zutil_nicenum.c \ 16 zutil_pool.c 17 18if BUILD_LINUX 19USER_C += \ 20 os/linux/zutil_device_path_os.c \ 21 os/linux/zutil_import_os.c \ 22 os/linux/zutil_compat.c 23endif 24 25if BUILD_FREEBSD 26DEFAULT_INCLUDES += -I$(top_srcdir)/include/os/freebsd/zfs 27 28USER_C += \ 29 os/freebsd/zutil_device_path_os.c \ 30 os/freebsd/zutil_import_os.c \ 31 os/freebsd/zutil_compat.c 32 33VPATH += $(top_srcdir)/module/os/freebsd/zfs 34 35nodist_libzutil_la_SOURCES = zfs_ioctl_compat.c 36endif 37 38libzutil_la_SOURCES = $(USER_C) 39 40libzutil_la_LIBADD = \ 41 $(abs_top_builddir)/lib/libavl/libavl.la \ 42 $(abs_top_builddir)/lib/libtpool/libtpool.la \ 43 $(abs_top_builddir)/lib/libnvpair/libnvpair.la \ 44 $(abs_top_builddir)/lib/libspl/libspl.la 45 46if BUILD_LINUX 47libzutil_la_LIBADD += \ 48 $(abs_top_builddir)/lib/libefi/libefi.la 49endif 50 51libzutil_la_LIBADD += -lm $(LIBBLKID_LIBS) $(LIBUDEV_LIBS) 52