Files
mirror_zfs/cmd/zpool/Makefile.am
T

137 lines
2.3 KiB
Makefile
Raw Normal View History

2010-08-26 11:22:58 -07:00
include $(top_srcdir)/config/Rules.am
2020-06-30 13:10:41 -04:00
AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUUID_CFLAGS)
2020-06-07 18:35:49 -04:00
DEFAULT_INCLUDES += -I$(srcdir)
2010-08-26 11:22:58 -07:00
sbin_PROGRAMS = zpool
zpool_SOURCES = \
2014-06-09 23:55:31 +02:00
zpool_iter.c \
zpool_main.c \
zpool_util.c \
zpool_util.h \
zpool_vdev.c
2010-08-26 11:22:58 -07:00
2020-04-14 11:36:28 -07:00
if BUILD_FREEBSD
zpool_SOURCES += os/freebsd/zpool_vdev_os.c
endif
2019-09-30 12:16:06 -07:00
if BUILD_LINUX
zpool_SOURCES += os/linux/zpool_vdev_os.c
endif
2010-08-26 11:22:58 -07:00
zpool_LDADD = \
$(abs_top_builddir)/lib/libzfs/libzfs.la \
$(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
$(abs_top_builddir)/lib/libnvpair/libnvpair.la \
$(abs_top_builddir)/lib/libuutil/libuutil.la
2017-08-09 15:31:08 -07:00
2020-07-05 21:08:40 -04:00
zpool_LDADD += $(LTLIBINTL)
2020-04-14 11:36:28 -07:00
if BUILD_FREEBSD
2020-07-05 21:08:40 -04:00
zpool_LDADD += -lgeom
2020-04-14 11:36:28 -07:00
endif
2020-06-30 13:10:41 -04:00
zpool_LDADD += -lm $(LIBBLKID_LIBS) $(LIBUUID_LIBS)
2017-04-21 09:27:04 -07:00
zpoolconfdir = $(sysconfdir)/zfs/zpool.d
2018-06-07 12:59:59 -04:00
zpoolexecdir = $(zfsexecdir)/zpool.d
2017-04-21 09:27:04 -07:00
EXTRA_DIST = zpool.d/README
dist_zpoolexec_SCRIPTS = \
2020-06-10 17:07:59 -07:00
zpool.d/dm-deps \
2017-04-21 09:27:04 -07:00
zpool.d/enc \
zpool.d/encdev \
zpool.d/fault_led \
zpool.d/iostat \
zpool.d/iostat-1s \
zpool.d/iostat-10s \
zpool.d/label \
zpool.d/locate_led \
zpool.d/lsblk \
2017-06-05 13:52:15 -04:00
zpool.d/media \
2017-04-21 09:27:04 -07:00
zpool.d/model \
zpool.d/serial \
zpool.d/ses \
zpool.d/size \
zpool.d/slot \
2017-06-05 13:52:15 -04:00
zpool.d/smart \
zpool.d/smartx \
zpool.d/temp \
zpool.d/health \
zpool.d/r_proc \
zpool.d/w_proc \
zpool.d/r_ucor \
zpool.d/w_ucor \
zpool.d/nonmed \
zpool.d/defect \
zpool.d/hours_on \
zpool.d/realloc \
zpool.d/rep_ucor \
zpool.d/cmd_to \
zpool.d/pend_sec \
zpool.d/off_ucor \
zpool.d/ata_err \
2018-02-21 16:52:47 -05:00
zpool.d/nvme_err \
2017-06-05 13:52:15 -04:00
zpool.d/pwr_cyc \
2017-04-21 09:27:04 -07:00
zpool.d/upath \
zpool.d/vendor \
zpool.d/smart_test \
zpool.d/test_type \
zpool.d/test_status \
zpool.d/test_progress \
zpool.d/test_ended
2017-04-21 09:27:04 -07:00
zpoolconfdefaults = \
2020-06-10 17:07:59 -07:00
dm-deps \
2017-04-21 09:27:04 -07:00
enc \
encdev \
fault_led \
iostat \
iostat-1s \
iostat-10s \
label \
locate_led \
lsblk \
2017-06-05 13:52:15 -04:00
media \
2017-04-21 09:27:04 -07:00
model \
serial \
ses \
size \
slot \
2017-06-05 13:52:15 -04:00
smart \
smartx \
temp \
health \
r_proc \
w_proc \
r_ucor \
w_ucor \
nonmed \
defect \
hours_on \
realloc \
rep_ucor \
cmd_to \
pend_sec \
off_ucor \
ata_err \
2018-02-21 16:52:47 -05:00
nvme_err \
2017-06-05 13:52:15 -04:00
pwr_cyc \
2017-04-21 09:27:04 -07:00
upath \
vendor \
smart_test \
test_type \
test_status \
test_progress \
test_ended
2017-04-21 09:27:04 -07:00
install-data-hook:
$(MKDIR_P) "$(DESTDIR)$(zpoolconfdir)"
for f in $(zpoolconfdefaults); do \
test -f "$(DESTDIR)$(zpoolconfdir)/$${f}" -o \
-L "$(DESTDIR)$(zpoolconfdir)/$${f}" || \
ln -s "$(zpoolexecdir)/$${f}" "$(DESTDIR)$(zpoolconfdir)"; \
done