mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-04-13 23:21:46 +03:00
zstream currently contains three identical copies of dump_record(), which appear to all be drawn from libzfs_sendrecv.c. The original is marked internal. This PR adds zstream_util.[hc] and puts the shared code there along with a couple of other items in common. No functional changes. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Garth Snyder <garth@garthsnyder.com> Closes #18284
28 lines
590 B
Makefile
28 lines
590 B
Makefile
# SPDX-License-Identifier: CDDL-1.0
|
|
zstream_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
|
|
|
|
sbin_PROGRAMS += zstream
|
|
CPPCHECKTARGETS += zstream
|
|
|
|
zstream_SOURCES = \
|
|
%D%/zstream.c \
|
|
%D%/zstream.h \
|
|
%D%/zstream_decompress.c \
|
|
%D%/zstream_dump.c \
|
|
%D%/zstream_recompress.c \
|
|
%D%/zstream_redup.c \
|
|
%D%/zstream_token.c \
|
|
%D%/zstream_util.c \
|
|
%D%/zstream_util.h
|
|
|
|
zstream_LDADD = \
|
|
libzfs.la \
|
|
libzfs_core.la \
|
|
libzpool.la \
|
|
libnvpair.la
|
|
|
|
cmd-zstream-install-exec-hook:
|
|
cd $(DESTDIR)$(sbindir) && $(LN_S) -f zstream zstreamdump
|
|
|
|
INSTALL_EXEC_HOOKS += cmd-zstream-install-exec-hook
|