Fix gcc uninitialized warning in FreeBSD zio_crypt.c
[zfs.git] / cmd / Makefile.am
blob96040976e53ed33b1b8ce2c466588470d9e6408d
1 bin_SCRIPTS =
2 bin_PROGRAMS =
3 sbin_SCRIPTS =
4 sbin_PROGRAMS =
5 dist_bin_SCRIPTS =
6 zfsexec_PROGRAMS =
7 mounthelper_PROGRAMS =
10 sbin_SCRIPTS      += fsck.zfs
11 SHELLCHECKSCRIPTS += fsck.zfs
12 CLEANFILES        += fsck.zfs
13 dist_noinst_DATA  += %D%/fsck.zfs.in
14 $(call SUBST,fsck.zfs,%D%/)
17 sbin_PROGRAMS   += zfs_ids_to_path
18 CPPCHECKTARGETS += zfs_ids_to_path
20 zfs_ids_to_path_SOURCES = \
21         %D%/zfs_ids_to_path.c
23 zfs_ids_to_path_LDADD = \
24         libzfs.la
27 zhack_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
29 sbin_PROGRAMS   += zhack
30 CPPCHECKTARGETS += zhack
32 zhack_SOURCES = \
33         %D%/zhack.c
35 zhack_LDADD = \
36         libzpool.la \
37         libzfs_core.la \
38         libnvpair.la
41 ztest_CFLAGS    = $(AM_CFLAGS) $(KERNEL_CFLAGS)
42 ztest_CPPFLAGS  = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
44 sbin_PROGRAMS   += ztest
45 CPPCHECKTARGETS += ztest
47 ztest_SOURCES = \
48         %D%/ztest.c
50 ztest_LDADD = \
51         libzpool.la \
52         libzfs_core.la \
53         libnvpair.la
55 ztest_LDADD += -lm
56 ztest_LDFLAGS = -pthread
59 include $(srcdir)/%D%/raidz_test/Makefile.am
60 include $(srcdir)/%D%/zdb/Makefile.am
61 include $(srcdir)/%D%/zfs/Makefile.am
62 include $(srcdir)/%D%/zinject/Makefile.am
63 include $(srcdir)/%D%/zpool/Makefile.am
64 include $(srcdir)/%D%/zpool_influxdb/Makefile.am
65 include $(srcdir)/%D%/zstream/Makefile.am
68 if BUILD_LINUX
69 mounthelper_PROGRAMS += mount.zfs
70 CPPCHECKTARGETS      += mount.zfs
72 mount_zfs_SOURCES = \
73         %D%/mount_zfs.c
75 mount_zfs_LDADD = \
76         libzfs.la \
77         libzfs_core.la \
78         libnvpair.la
80 mount_zfs_LDADD += $(LTLIBINTL)
82 CPPCHECKTARGETS += raidz_test
85 sbin_PROGRAMS   += zgenhostid
86 CPPCHECKTARGETS += zgenhostid
88 zgenhostid_SOURCES = \
89         %D%/zgenhostid.c
92 dist_bin_SCRIPTS  += %D%/zvol_wait
93 SHELLCHECKSCRIPTS += %D%/zvol_wait
96 include $(srcdir)/%D%/zed/Makefile.am
97 endif
100 if USING_PYTHON
101 bin_SCRIPTS      += arc_summary     arcstat        dbufstat        zilstat
102 CLEANFILES       += arc_summary     arcstat        dbufstat        zilstat
103 dist_noinst_DATA += %D%/arc_summary %D%/arcstat.in %D%/dbufstat.in %D%/zilstat.in
105 $(call SUBST,arcstat,%D%/)
106 $(call SUBST,dbufstat,%D%/)
107 $(call SUBST,zilstat,%D%/)
108 arc_summary: %D%/arc_summary
109         $(AM_V_at)cp $< $@
110 endif
113 PHONY += cmd
114 cmd: $(bin_SCRIPTS) $(bin_PROGRAMS) $(sbin_SCRIPTS) $(sbin_PROGRAMS) $(dist_bin_SCRIPTS) $(zfsexec_PROGRAMS) $(mounthelper_PROGRAMS)