aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzutil/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libzutil/Makefile.am')
-rw-r--r--lib/libzutil/Makefile.am13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libzutil/Makefile.am b/lib/libzutil/Makefile.am
index e5c6a340d..092312e0d 100644
--- a/lib/libzutil/Makefile.am
+++ b/lib/libzutil/Makefile.am
@@ -21,13 +21,24 @@ USER_C += \
os/linux/zutil_compat.c
endif
+if BUILD_FREEBSD
+USER_C += \
+ os/freebsd/zutil_device_path_os.c \
+ os/freebsd/zutil_import_os.c \
+ os/freebsd/zutil_compat.c
+endif
+
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
+if BUILD_LINUX
+libzutil_la_LIBADD += \
+ $(top_builddir)/lib/libefi/libefi.la
+endif
+
libzutil_la_LIBADD += -lm $(LIBBLKID) $(LIBUDEV)
EXTRA_DIST = $(USER_C)