2018-11-05 22:22:33 +03: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 20:20:44 +03:00
|
|
|
DEFAULT_INCLUDES += -I.
|
|
|
|
|
2018-11-05 22:22:33 +03:00
|
|
|
noinst_LTLIBRARIES = libzutil.la
|
|
|
|
|
|
|
|
USER_C = \
|
|
|
|
zutil_device_path.c \
|
|
|
|
zutil_import.c \
|
2019-10-03 20:20:44 +03:00
|
|
|
zutil_import.h \
|
2018-11-05 22:22:33 +03:00
|
|
|
zutil_nicenum.c \
|
|
|
|
zutil_pool.c
|
|
|
|
|
2019-10-03 20:20:44 +03:00
|
|
|
if BUILD_LINUX
|
|
|
|
USER_C += \
|
|
|
|
os/linux/zutil_device_path_os.c \
|
2019-11-12 21:40:39 +03:00
|
|
|
os/linux/zutil_import_os.c \
|
|
|
|
os/linux/zutil_compat.c
|
2019-10-03 20:20:44 +03:00
|
|
|
endif
|
|
|
|
|
2020-04-14 21:36:28 +03:00
|
|
|
if BUILD_FREEBSD
|
|
|
|
USER_C += \
|
|
|
|
os/freebsd/zutil_device_path_os.c \
|
|
|
|
os/freebsd/zutil_import_os.c \
|
|
|
|
os/freebsd/zutil_compat.c
|
|
|
|
endif
|
|
|
|
|
2018-11-05 22:22:33 +03:00
|
|
|
nodist_libzutil_la_SOURCES = $(USER_C)
|
|
|
|
|
|
|
|
libzutil_la_LIBADD = \
|
|
|
|
$(top_builddir)/lib/libavl/libavl.la \
|
|
|
|
$(top_builddir)/lib/libtpool/libtpool.la
|
|
|
|
|
2020-04-14 21:36:28 +03:00
|
|
|
if BUILD_LINUX
|
|
|
|
libzutil_la_LIBADD += \
|
|
|
|
$(top_builddir)/lib/libefi/libefi.la
|
|
|
|
endif
|
|
|
|
|
2018-11-05 22:22:33 +03:00
|
|
|
libzutil_la_LIBADD += -lm $(LIBBLKID) $(LIBUDEV)
|
|
|
|
|
|
|
|
EXTRA_DIST = $(USER_C)
|