1 include $(top_srcdir)/config/Rules.am
2 include $(top_srcdir)/config/Shellcheck.am
4 AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUUID_CFLAGS)
6 DEFAULT_INCLUDES += -I$(srcdir)
18 zpool_SOURCES += os/freebsd/zpool_vdev_os.c
22 zpool_SOURCES += os/linux/zpool_vdev_os.c
26 $(abs_top_builddir)/lib/libzfs/libzfs.la \
27 $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
28 $(abs_top_builddir)/lib/libnvpair/libnvpair.la \
29 $(abs_top_builddir)/lib/libuutil/libuutil.la \
30 $(abs_top_builddir)/lib/libzutil/libzutil.la
32 zpool_LDADD += $(LTLIBINTL)
37 zpool_LDADD += -lm $(LIBBLKID_LIBS) $(LIBUUID_LIBS)
39 include $(top_srcdir)/config/CppCheck.am
41 zpoolconfdir = $(sysconfdir)/zfs/zpool.d
42 zpoolexecdir = $(zfsexecdir)/zpool.d
44 EXTRA_DIST = zpool.d/README compatibility.d
46 dist_zpoolexec_SCRIPTS = \
87 zpool.d/test_progress \
134 zpoolcompatdir = $(pkgdatadir)/compatibility.d
136 dist_zpoolcompat_DATA = \
137 compatibility.d/compat-2018 \
138 compatibility.d/compat-2019 \
139 compatibility.d/compat-2020 \
140 compatibility.d/compat-2021 \
141 compatibility.d/freebsd-11.0 \
142 compatibility.d/freebsd-11.2 \
143 compatibility.d/freebsd-11.3 \
144 compatibility.d/freenas-9.10.2 \
145 compatibility.d/grub2 \
146 compatibility.d/openzfsonosx-1.7.0 \
147 compatibility.d/openzfsonosx-1.8.1 \
148 compatibility.d/openzfsonosx-1.9.3 \
149 compatibility.d/openzfs-2.0-freebsd \
150 compatibility.d/openzfs-2.0-linux \
151 compatibility.d/openzfs-2.1-freebsd \
152 compatibility.d/openzfs-2.1-linux \
153 compatibility.d/zol-0.6.1 \
154 compatibility.d/zol-0.6.4 \
155 compatibility.d/zol-0.6.5 \
156 compatibility.d/zol-0.7 \
157 compatibility.d/zol-0.8
159 # canonical <- alias symbolic link pairs
160 # eg: "2018" is a link to "compat-2018"
166 "freebsd-11.0 freebsd-11.1" \
167 "freebsd-11.0 freenas-11.0" \
168 "freebsd-11.2 freenas-11.2" \
169 "freebsd-11.3 freebsd-11.4" \
170 "freebsd-11.3 freebsd-12.0" \
171 "freebsd-11.3 freebsd-12.1" \
172 "freebsd-11.3 freebsd-12.2" \
173 "freebsd-11.3 freenas-11.3" \
174 "freenas-11.0 freenas-11.1" \
175 "openzfsonosx-1.9.3 openzfsonosx-1.9.4" \
176 "openzfs-2.0-freebsd truenas-12.0" \
177 "zol-0.7 ubuntu-18.04" \
178 "zol-0.8 ubuntu-20.04"
181 $(MKDIR_P) "$(DESTDIR)$(zpoolconfdir)"
182 for f in $(zpoolconfdefaults); do \
183 test -f "$(DESTDIR)$(zpoolconfdir)/$${f}" -o \
184 -L "$(DESTDIR)$(zpoolconfdir)/$${f}" || \
185 ln -s "$(zpoolexecdir)/$${f}" "$(DESTDIR)$(zpoolconfdir)"; \
187 for l in $(zpoolcompatlinks); do \
188 (cd "$(DESTDIR)$(zpoolcompatdir)"; ln -sf $${l} ); \