2022-04-09 02:09:55 +00:00
|
|
|
bin_SCRIPTS =
|
|
|
|
bin_PROGRAMS =
|
|
|
|
sbin_SCRIPTS =
|
|
|
|
sbin_PROGRAMS =
|
|
|
|
dist_bin_SCRIPTS =
|
|
|
|
zfsexec_PROGRAMS =
|
|
|
|
mounthelper_PROGRAMS =
|
2021-05-21 21:43:38 +00:00
|
|
|
|
2022-04-10 20:47:56 +00:00
|
|
|
|
|
|
|
sbin_SCRIPTS += fsck.zfs
|
|
|
|
SHELLCHECKSCRIPTS += fsck.zfs
|
|
|
|
CLEANFILES += fsck.zfs
|
2022-05-26 16:24:50 +00:00
|
|
|
dist_noinst_DATA += %D%/fsck.zfs.in
|
2022-04-10 20:47:56 +00:00
|
|
|
$(call SUBST,fsck.zfs,%D%/)
|
|
|
|
|
|
|
|
|
|
|
|
sbin_PROGRAMS += zfs_ids_to_path
|
|
|
|
CPPCHECKTARGETS += zfs_ids_to_path
|
|
|
|
|
|
|
|
zfs_ids_to_path_SOURCES = \
|
|
|
|
%D%/zfs_ids_to_path.c
|
|
|
|
|
|
|
|
zfs_ids_to_path_LDADD = \
|
|
|
|
libzfs.la
|
|
|
|
|
|
|
|
|
2024-08-26 23:44:53 +00:00
|
|
|
zhack_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
|
2022-04-10 20:47:56 +00:00
|
|
|
|
|
|
|
sbin_PROGRAMS += zhack
|
|
|
|
CPPCHECKTARGETS += zhack
|
|
|
|
|
|
|
|
zhack_SOURCES = \
|
|
|
|
%D%/zhack.c
|
|
|
|
|
|
|
|
zhack_LDADD = \
|
|
|
|
libzpool.la \
|
|
|
|
libzfs_core.la \
|
|
|
|
libnvpair.la
|
|
|
|
|
|
|
|
|
|
|
|
ztest_CFLAGS = $(AM_CFLAGS) $(KERNEL_CFLAGS)
|
2024-08-26 23:44:53 +00:00
|
|
|
ztest_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
|
2022-04-10 20:47:56 +00:00
|
|
|
|
|
|
|
sbin_PROGRAMS += ztest
|
|
|
|
CPPCHECKTARGETS += ztest
|
|
|
|
|
|
|
|
ztest_SOURCES = \
|
|
|
|
%D%/ztest.c
|
|
|
|
|
|
|
|
ztest_LDADD = \
|
|
|
|
libzpool.la \
|
|
|
|
libzfs_core.la \
|
|
|
|
libnvpair.la
|
|
|
|
|
|
|
|
ztest_LDADD += -lm
|
|
|
|
ztest_LDFLAGS = -pthread
|
|
|
|
|
|
|
|
|
2022-04-09 02:09:55 +00:00
|
|
|
include $(srcdir)/%D%/raidz_test/Makefile.am
|
|
|
|
include $(srcdir)/%D%/zdb/Makefile.am
|
|
|
|
include $(srcdir)/%D%/zfs/Makefile.am
|
|
|
|
include $(srcdir)/%D%/zinject/Makefile.am
|
|
|
|
include $(srcdir)/%D%/zpool/Makefile.am
|
|
|
|
include $(srcdir)/%D%/zpool_influxdb/Makefile.am
|
|
|
|
include $(srcdir)/%D%/zstream/Makefile.am
|
2022-04-10 20:47:56 +00:00
|
|
|
|
2019-06-05 01:05:46 +00:00
|
|
|
|
2022-04-09 02:09:55 +00:00
|
|
|
if BUILD_LINUX
|
2022-04-10 20:47:56 +00:00
|
|
|
mounthelper_PROGRAMS += mount.zfs
|
|
|
|
CPPCHECKTARGETS += mount.zfs
|
|
|
|
|
|
|
|
mount_zfs_SOURCES = \
|
|
|
|
%D%/mount_zfs.c
|
|
|
|
|
|
|
|
mount_zfs_LDADD = \
|
|
|
|
libzfs.la \
|
|
|
|
libzfs_core.la \
|
|
|
|
libnvpair.la
|
|
|
|
|
|
|
|
mount_zfs_LDADD += $(LTLIBINTL)
|
|
|
|
|
|
|
|
CPPCHECKTARGETS += raidz_test
|
|
|
|
|
|
|
|
|
|
|
|
sbin_PROGRAMS += zgenhostid
|
|
|
|
CPPCHECKTARGETS += zgenhostid
|
|
|
|
|
|
|
|
zgenhostid_SOURCES = \
|
|
|
|
%D%/zgenhostid.c
|
|
|
|
|
|
|
|
|
|
|
|
dist_bin_SCRIPTS += %D%/zvol_wait
|
|
|
|
SHELLCHECKSCRIPTS += %D%/zvol_wait
|
|
|
|
|
|
|
|
|
2022-04-09 02:09:55 +00:00
|
|
|
include $(srcdir)/%D%/zed/Makefile.am
|
|
|
|
endif
|
2021-05-21 21:43:38 +00:00
|
|
|
|
2022-04-10 20:47:56 +00:00
|
|
|
|
2019-06-05 01:05:46 +00:00
|
|
|
if USING_PYTHON
|
2022-09-02 20:24:07 +00:00
|
|
|
bin_SCRIPTS += arc_summary arcstat dbufstat zilstat
|
|
|
|
CLEANFILES += arc_summary arcstat dbufstat zilstat
|
|
|
|
dist_noinst_DATA += %D%/arc_summary %D%/arcstat.in %D%/dbufstat.in %D%/zilstat.in
|
2022-04-10 20:47:56 +00:00
|
|
|
|
|
|
|
$(call SUBST,arcstat,%D%/)
|
|
|
|
$(call SUBST,dbufstat,%D%/)
|
2022-09-02 20:24:07 +00:00
|
|
|
$(call SUBST,zilstat,%D%/)
|
2022-04-10 20:47:56 +00:00
|
|
|
arc_summary: %D%/arc_summary
|
|
|
|
$(AM_V_at)cp $< $@
|
2019-06-05 01:05:46 +00:00
|
|
|
endif
|
|
|
|
|
2022-04-10 20:47:56 +00:00
|
|
|
|
2022-04-09 02:09:55 +00:00
|
|
|
PHONY += cmd
|
2022-04-10 20:47:56 +00:00
|
|
|
cmd: $(bin_SCRIPTS) $(bin_PROGRAMS) $(sbin_SCRIPTS) $(sbin_PROGRAMS) $(dist_bin_SCRIPTS) $(zfsexec_PROGRAMS) $(mounthelper_PROGRAMS)
|