Fix memory leak in zfs_setprocinit code
[zfs.git] / cmd / Makefile.am
blob6d6de4adb42a30c858918d88e9895e548b1a80dc
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) $(FORCEDEBUG_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 # Get rid of compiler warning for unchecked truncating snprintfs on gcc 7.1.1
43 ztest_CFLAGS   += $(NO_FORMAT_TRUNCATION)
44 ztest_CPPFLAGS  = $(AM_CPPFLAGS) $(FORCEDEBUG_CPPFLAGS)
46 sbin_PROGRAMS   += ztest
47 CPPCHECKTARGETS += ztest
49 ztest_SOURCES = \
50         %D%/ztest.c
52 ztest_LDADD = \
53         libzpool.la \
54         libzfs_core.la \
55         libnvpair.la
57 ztest_LDADD += -lm
58 ztest_LDFLAGS = -pthread
61 include $(srcdir)/%D%/raidz_test/Makefile.am
62 include $(srcdir)/%D%/zdb/Makefile.am
63 include $(srcdir)/%D%/zfs/Makefile.am
64 include $(srcdir)/%D%/zinject/Makefile.am
65 include $(srcdir)/%D%/zpool/Makefile.am
66 include $(srcdir)/%D%/zpool_influxdb/Makefile.am
67 include $(srcdir)/%D%/zstream/Makefile.am
70 if BUILD_LINUX
71 mounthelper_PROGRAMS += mount.zfs
72 CPPCHECKTARGETS      += mount.zfs
74 mount_zfs_SOURCES = \
75         %D%/mount_zfs.c
77 mount_zfs_LDADD = \
78         libzfs.la \
79         libzfs_core.la \
80         libnvpair.la
82 mount_zfs_LDADD += $(LTLIBINTL)
84 CPPCHECKTARGETS += raidz_test
87 sbin_PROGRAMS   += zgenhostid
88 CPPCHECKTARGETS += zgenhostid
90 zgenhostid_SOURCES = \
91         %D%/zgenhostid.c
94 dist_bin_SCRIPTS  += %D%/zvol_wait
95 SHELLCHECKSCRIPTS += %D%/zvol_wait
98 include $(srcdir)/%D%/zed/Makefile.am
99 endif
102 if USING_PYTHON
103 bin_SCRIPTS      += arc_summary     arcstat        dbufstat        zilstat
104 CLEANFILES       += arc_summary     arcstat        dbufstat        zilstat
105 dist_noinst_DATA += %D%/arc_summary %D%/arcstat.in %D%/dbufstat.in %D%/zilstat.in
107 $(call SUBST,arcstat,%D%/)
108 $(call SUBST,dbufstat,%D%/)
109 $(call SUBST,zilstat,%D%/)
110 arc_summary: %D%/arc_summary
111         $(AM_V_at)cp $< $@
112 endif
115 PHONY += cmd
116 cmd: $(bin_SCRIPTS) $(bin_PROGRAMS) $(sbin_SCRIPTS) $(sbin_PROGRAMS) $(dist_bin_SCRIPTS) $(zfsexec_PROGRAMS) $(mounthelper_PROGRAMS)