diff --git a/cmd/zpool/Makefile.am b/cmd/zpool/Makefile.am index 97af752327..c9d95f4446 100644 --- a/cmd/zpool/Makefile.am +++ b/cmd/zpool/Makefile.am @@ -1,16 +1,29 @@ include $(top_srcdir)/config/Rules.am DEFAULT_INCLUDES += \ - -I${top_srcdir}/lib/libspl/include + -I${top_srcdir}/lib/libspl/include \ + -I${top_srcdir}/lib/libuutil/include \ + -I${top_srcdir}/lib/libzfs/include \ + -I${top_srcdir}/lib/libnvpair/include \ + -I${top_srcdir}/module/zcommon/include \ + -I${top_srcdir}/module/nvpair/include \ + -I${top_srcdir}/module/avl/include sbin_PROGRAMS = zpool zpool_SOURCES = \ - zpool_iter.c \ - zpool_main.c \ - zpool_util.c \ - zpool_util.h \ - zpool_vdev.c + -I${top_srcdir}/cmd/zpool/zpool_iter.c \ + -I${top_srcdir}/cmd/zpool/zpool_main.c \ + -I${top_srcdir}/cmd/zpool/zpool_util.c \ + -I${top_srcdir}/cmd/zpool/zpool_util.h \ + -I${top_srcdir}/cmd/zpool/zpool_vdev.c zpool_LDADD = \ - $(top_builddir)/lib/libspl/libspl.la + $(top_builddir)/lib/libspl/libspl.la \ + $(top_builddir)/lib/libavl/libavl.la \ + $(top_builddir)/lib/libnvpair/libnvpair.la \ + $(top_builddir)/lib/libuutil/libuutil.la \ + $(top_builddir)/lib/libzpool/libzpool.la \ + $(top_builddir)/lib/libzfs/libzfs.la + +zpool_LDFLAGS = -pthread -lm -lz -lrt