Fix false assertion in dmu_tx_dirty_buf() on cloning
[zfs.git] / lib / libzfs / Makefile.am
blob5f8963dccd1a29334874de2bb126f3356847f8e0
1 libzfs_la_CFLAGS  = $(AM_CFLAGS) $(LIBRARY_CFLAGS)
2 libzfs_la_CFLAGS += $(LIBCRYPTO_CFLAGS) $(ZLIB_CFLAGS)
3 libzfs_la_CFLAGS += -fvisibility=hidden
5 lib_LTLIBRARIES += libzfs.la
6 CPPCHECKTARGETS += libzfs.la
8 dist_libzfs_la_SOURCES = \
9         %D%/libzfs_impl.h \
10         %D%/libzfs_changelist.c \
11         %D%/libzfs_config.c \
12         %D%/libzfs_crypto.c \
13         %D%/libzfs_dataset.c \
14         %D%/libzfs_diff.c \
15         %D%/libzfs_import.c \
16         %D%/libzfs_iter.c \
17         %D%/libzfs_mount.c \
18         %D%/libzfs_pool.c \
19         %D%/libzfs_sendrecv.c \
20         %D%/libzfs_status.c \
21         %D%/libzfs_util.c
23 if BUILD_FREEBSD
24 dist_libzfs_la_SOURCES += \
25         %D%/os/freebsd/libzfs_compat.c \
26         %D%/os/freebsd/libzfs_zmount.c
27 endif
29 if BUILD_LINUX
30 dist_libzfs_la_SOURCES += \
31         %D%/os/linux/libzfs_mount_os.c \
32         %D%/os/linux/libzfs_pool_os.c \
33         %D%/os/linux/libzfs_util_os.c
34 endif
36 nodist_libzfs_la_SOURCES = \
37         module/zcommon/cityhash.c \
38         module/zcommon/zfeature_common.c \
39         module/zcommon/zfs_comutil.c \
40         module/zcommon/zfs_deleg.c \
41         module/zcommon/zfs_fletcher.c \
42         module/zcommon/zfs_fletcher_aarch64_neon.c \
43         module/zcommon/zfs_fletcher_avx512.c \
44         module/zcommon/zfs_fletcher_intel.c \
45         module/zcommon/zfs_fletcher_sse.c \
46         module/zcommon/zfs_fletcher_superscalar.c \
47         module/zcommon/zfs_fletcher_superscalar4.c \
48         module/zcommon/zfs_namecheck.c \
49         module/zcommon/zfs_prop.c \
50         module/zcommon/zfs_valstr.c \
51         module/zcommon/zpool_prop.c \
52         module/zcommon/zprop_common.c
54 libzfs_la_LIBADD = \
55         libshare.la \
56         libzfs_core.la \
57         libnvpair.la \
58         libzutil.la \
59         libuutil.la
61 libzfs_la_LIBADD += -lrt -lm $(LIBCRYPTO_LIBS) $(ZLIB_LIBS) $(LIBFETCH_LIBS) $(LTLIBINTL)
63 libzfs_la_LDFLAGS = -pthread
65 if !ASAN_ENABLED
66 libzfs_la_LDFLAGS += -Wl,-z,defs
67 endif
69 if BUILD_FREEBSD
70 libzfs_la_LIBADD += -lutil -lgeom
71 endif
73 libzfs_la_LDFLAGS += -version-info 6:0:0
75 pkgconfig_DATA += %D%/libzfs.pc
77 dist_noinst_DATA += %D%/libzfs.abi %D%/libzfs.suppr
78 dist_noinst_DATA += %D%/THIRDPARTYLICENSE.openssl %D%/THIRDPARTYLICENSE.openssl.descrip