mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
c8970f52ed
As a bonus, this also adds zfs-mount-generator (previously undescended down) and libzstd (not included) to CppCheck As a bonus bonus, abigail rules work out-of-tree, too Against current trunk: $ diff -U0 ./destdir.listing ~/store/code/zfs/destdir.listing -destdir/usr/local/include/libspl/sscanf.h $ diff --color -U0 ./zfs-2.1.99.tar.gz.listing ../oot/zfs-2.1.99.tar.gz.listing | grep -v @@ | grep -v /Makefile -zfs-2.1.99/config/Abigail.am -zfs-2.1.99/lib/libspl/include/util/ -zfs-2.1.99/lib/libspl/include/util/sscanf.h $ diff --color -U0 ./zfs-2.1.99.tar.gz.listing ../oot/zfs-2.1.99.tar.gz.listing | grep -v @@ | grep /Makefile -zfs-2.1.99/lib/libavl/Makefile.in -zfs-2.1.99/lib/libefi/Makefile.in -zfs-2.1.99/lib/libicp/Makefile.in -zfs-2.1.99/lib/libnvpair/Makefile.in -zfs-2.1.99/lib/libshare/Makefile.in -zfs-2.1.99/lib/libspl/include/Makefile.in -zfs-2.1.99/lib/libspl/include/os/freebsd/Makefile.am -zfs-2.1.99/lib/libspl/include/os/freebsd/Makefile.in -zfs-2.1.99/lib/libspl/include/os/freebsd/sys/Makefile.am -zfs-2.1.99/lib/libspl/include/os/freebsd/sys/Makefile.in -zfs-2.1.99/lib/libspl/include/os/linux/Makefile.am -zfs-2.1.99/lib/libspl/include/os/linux/Makefile.in -zfs-2.1.99/lib/libspl/include/os/linux/sys/Makefile.am -zfs-2.1.99/lib/libspl/include/os/linux/sys/Makefile.in -zfs-2.1.99/lib/libspl/include/os/Makefile.am -zfs-2.1.99/lib/libspl/include/os/Makefile.in -zfs-2.1.99/lib/libspl/include/rpc/Makefile.am -zfs-2.1.99/lib/libspl/include/rpc/Makefile.in -zfs-2.1.99/lib/libspl/include/sys/dktp/Makefile.am -zfs-2.1.99/lib/libspl/include/sys/dktp/Makefile.in -zfs-2.1.99/lib/libspl/include/sys/Makefile.am -zfs-2.1.99/lib/libspl/include/sys/Makefile.in -zfs-2.1.99/lib/libspl/include/util/Makefile.am -zfs-2.1.99/lib/libspl/include/util/Makefile.in -zfs-2.1.99/lib/libspl/Makefile.in -zfs-2.1.99/lib/libtpool/Makefile.in -zfs-2.1.99/lib/libunicode/Makefile.in -zfs-2.1.99/lib/libuutil/Makefile.in -zfs-2.1.99/lib/libzfsbootenv/Makefile.in -zfs-2.1.99/lib/libzfs_core/Makefile.in -zfs-2.1.99/lib/libzfs/Makefile.in -zfs-2.1.99/lib/libzpool/Makefile.in -zfs-2.1.99/lib/libzstd/Makefile.in -zfs-2.1.99/lib/libzutil/Makefile.in -zfs-2.1.99/lib/Makefile.in Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13316
81 lines
1.9 KiB
Makefile
81 lines
1.9 KiB
Makefile
libzfs_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS)
|
|
libzfs_la_CFLAGS += $(LIBCRYPTO_CFLAGS) $(ZLIB_CFLAGS)
|
|
libzfs_la_CFLAGS += -fvisibility=hidden
|
|
|
|
lib_LTLIBRARIES += libzfs.la
|
|
CPPCHECKTARGETS += libzfs.la
|
|
|
|
dist_libzfs_la_SOURCES = \
|
|
%D%/libzfs_impl.h \
|
|
%D%/libzfs_changelist.c \
|
|
%D%/libzfs_config.c \
|
|
%D%/libzfs_crypto.c \
|
|
%D%/libzfs_dataset.c \
|
|
%D%/libzfs_diff.c \
|
|
%D%/libzfs_import.c \
|
|
%D%/libzfs_iter.c \
|
|
%D%/libzfs_mount.c \
|
|
%D%/libzfs_pool.c \
|
|
%D%/libzfs_sendrecv.c \
|
|
%D%/libzfs_status.c \
|
|
%D%/libzfs_util.c
|
|
|
|
if BUILD_FREEBSD
|
|
dist_libzfs_la_SOURCES += \
|
|
%D%/os/freebsd/libzfs_compat.c \
|
|
%D%/os/freebsd/libzfs_zmount.c
|
|
endif
|
|
|
|
if BUILD_LINUX
|
|
dist_libzfs_la_SOURCES += \
|
|
%D%/os/linux/libzfs_mount_os.c \
|
|
%D%/os/linux/libzfs_pool_os.c \
|
|
%D%/os/linux/libzfs_util_os.c
|
|
endif
|
|
|
|
nodist_libzfs_la_SOURCES = \
|
|
module/icp/algs/sha2/sha2.c \
|
|
\
|
|
module/zcommon/cityhash.c \
|
|
module/zcommon/zfeature_common.c \
|
|
module/zcommon/zfs_comutil.c \
|
|
module/zcommon/zfs_deleg.c \
|
|
module/zcommon/zfs_fletcher.c \
|
|
module/zcommon/zfs_fletcher_aarch64_neon.c \
|
|
module/zcommon/zfs_fletcher_avx512.c \
|
|
module/zcommon/zfs_fletcher_intel.c \
|
|
module/zcommon/zfs_fletcher_sse.c \
|
|
module/zcommon/zfs_fletcher_superscalar.c \
|
|
module/zcommon/zfs_fletcher_superscalar4.c \
|
|
module/zcommon/zfs_namecheck.c \
|
|
module/zcommon/zfs_prop.c \
|
|
module/zcommon/zpool_prop.c \
|
|
module/zcommon/zprop_common.c
|
|
|
|
|
|
libzfs_la_LIBADD = \
|
|
libshare.la \
|
|
libzfs_core.la \
|
|
libnvpair.la \
|
|
libzutil.la \
|
|
libuutil.la
|
|
|
|
libzfs_la_LIBADD += -lm $(LIBCRYPTO_LIBS) $(ZLIB_LIBS) $(LIBFETCH_LIBS) $(LTLIBINTL)
|
|
|
|
libzfs_la_LDFLAGS = -pthread
|
|
|
|
if !ASAN_ENABLED
|
|
libzfs_la_LDFLAGS += -Wl,-z,defs
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
libzfs_la_LIBADD += -lutil -lgeom
|
|
endif
|
|
|
|
libzfs_la_LDFLAGS += -version-info 5:0:1
|
|
|
|
pkgconfig_DATA += %D%/libzfs.pc
|
|
|
|
EXTRA_DIST += $(addprefix %D%/,libzfs.abi libzfs.suppr)
|
|
EXTRA_DIST += $(addprefix %D%/,THIRDPARTYLICENSE.openssl THIRDPARTYLICENSE.openssl.descrip)
|