feature: large_microzap
[zfs.git] / lib / libzutil / Makefile.am
blob519906235f7f6b648b7f0ec6bb14c3bb271c344a
1 libzutil_la_CFLAGS  = $(AM_CFLAGS) $(LIBRARY_CFLAGS)
2 libzutil_la_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
3 libzutil_la_CFLAGS += -fvisibility=hidden
5 libzutil_la_CPPFLAGS  = $(AM_CPPFLAGS)
6 libzutil_la_CPPFLAGS += -I$(srcdir)/%D%
8 noinst_LTLIBRARIES += libzutil.la
9 CPPCHECKTARGETS    += libzutil.la
11 libzutil_la_SOURCES = \
12         %D%/zutil_device_path.c \
13         %D%/zutil_import.c \
14         %D%/zutil_import.h \
15         %D%/zutil_nicenum.c \
16         %D%/zutil_pool.c
18 if BUILD_LINUX
19 libzutil_la_SOURCES += \
20         %D%/os/linux/zutil_setproctitle.c \
21         %D%/os/linux/zutil_device_path_os.c \
22         %D%/os/linux/zutil_import_os.c
23 endif
25 if BUILD_FREEBSD
26 libzutil_la_SOURCES += \
27         %D%/os/freebsd/zutil_device_path_os.c \
28         %D%/os/freebsd/zutil_import_os.c
29 endif
31 libzutil_la_LIBADD = \
32         libavl.la \
33         libtpool.la \
34         libnvpair.la \
35         libspl.la
37 if BUILD_LINUX
38 libzutil_la_LIBADD += \
39         libefi.la \
40         -lrt
41 endif
43 libzutil_la_LIBADD += -lm $(LIBBLKID_LIBS) $(LIBUDEV_LIBS)