2018-11-05 19:22:33 +00:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
|
|
|
# Suppress unused but set variable warnings often due to ASSERTs
|
|
|
|
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
|
|
|
|
|
2019-10-03 17:20:44 +00:00
|
|
|
DEFAULT_INCLUDES += -I.
|
|
|
|
|
2018-11-05 19:22:33 +00:00
|
|
|
noinst_LTLIBRARIES = libzutil.la
|
|
|
|
|
|
|
|
USER_C = \
|
|
|
|
zutil_device_path.c \
|
|
|
|
zutil_import.c \
|
2019-10-03 17:20:44 +00:00
|
|
|
zutil_import.h \
|
2018-11-05 19:22:33 +00:00
|
|
|
zutil_nicenum.c \
|
|
|
|
zutil_pool.c
|
|
|
|
|
2019-10-03 17:20:44 +00:00
|
|
|
if BUILD_LINUX
|
|
|
|
USER_C += \
|
|
|
|
os/linux/zutil_device_path_os.c \
|
2019-11-12 18:40:39 +00:00
|
|
|
os/linux/zutil_import_os.c \
|
|
|
|
os/linux/zutil_compat.c
|
2019-10-03 17:20:44 +00:00
|
|
|
endif
|
|
|
|
|
2018-11-05 19:22:33 +00:00
|
|
|
nodist_libzutil_la_SOURCES = $(USER_C)
|
|
|
|
|
|
|
|
libzutil_la_LIBADD = \
|
|
|
|
$(top_builddir)/lib/libavl/libavl.la \
|
|
|
|
$(top_builddir)/lib/libefi/libefi.la \
|
|
|
|
$(top_builddir)/lib/libtpool/libtpool.la
|
|
|
|
|
|
|
|
libzutil_la_LIBADD += -lm $(LIBBLKID) $(LIBUDEV)
|
|
|
|
|
|
|
|
EXTRA_DIST = $(USER_C)
|