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 = \
10 %D%/libzfs_changelist.c \
13 %D%/libzfs_dataset.c \
19 %D%/libzfs_sendrecv.c \
24 dist_libzfs_la_SOURCES += \
25 %D%/os/freebsd/libzfs_compat.c \
26 %D%/os/freebsd/libzfs_zmount.c
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
36 nodist_libzfs_la_SOURCES = \
37 module/icp/algs/sha2/sha2.c \
39 module/zcommon/cityhash.c \
40 module/zcommon/zfeature_common.c \
41 module/zcommon/zfs_comutil.c \
42 module/zcommon/zfs_deleg.c \
43 module/zcommon/zfs_fletcher.c \
44 module/zcommon/zfs_fletcher_aarch64_neon.c \
45 module/zcommon/zfs_fletcher_avx512.c \
46 module/zcommon/zfs_fletcher_intel.c \
47 module/zcommon/zfs_fletcher_sse.c \
48 module/zcommon/zfs_fletcher_superscalar.c \
49 module/zcommon/zfs_fletcher_superscalar4.c \
50 module/zcommon/zfs_namecheck.c \
51 module/zcommon/zfs_prop.c \
52 module/zcommon/zpool_prop.c \
53 module/zcommon/zprop_common.c
63 libzfs_la_LIBADD += -lm $(LIBCRYPTO_LIBS) $(ZLIB_LIBS) $(LIBFETCH_LIBS) $(LTLIBINTL)
65 libzfs_la_LDFLAGS = -pthread
68 libzfs_la_LDFLAGS += -Wl,-z,defs
72 libzfs_la_LIBADD += -lutil -lgeom
75 libzfs_la_LDFLAGS += -version-info 5:0:1
77 pkgconfig_DATA += %D%/libzfs.pc
79 dist_noinst_DATA += %D%/libzfs.abi %D%/libzfs.suppr
80 dist_noinst_DATA += %D%/THIRDPARTYLICENSE.openssl %D%/THIRDPARTYLICENSE.openssl.descrip