aboutsummaryrefslogtreecommitdiffstats
path: root/zfs/zcmd/zdump/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'zfs/zcmd/zdump/Makefile.in')
-rw-r--r--zfs/zcmd/zdump/Makefile.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/zfs/zcmd/zdump/Makefile.in b/zfs/zcmd/zdump/Makefile.in
new file mode 100644
index 000000000..e9662462c
--- /dev/null
+++ b/zfs/zcmd/zdump/Makefile.in
@@ -0,0 +1,31 @@
+DISTFILES = Makefile.in zdump.c
+
+CMD := zdump
+
+HOSTCFLAGS += @HOSTCFLAGS@
+HOSTCFLAGS += -I@CMDDIR@/zdump/
+HOSTCFLAGS += -I@LIBDIR@/libsolcompat/include
+HOSTCFLAGS += -I@LIBDIR@/libport/include
+HOSTCFLAGS += -I@LIBDIR@/libavl/include
+HOSTCFLAGS += -I@LIBDIR@/libnvpair/include
+HOSTCFLAGS += -I@LIBDIR@/libumem/include
+HOSTCFLAGS += -I@LIBDIR@/libuutil/include
+HOSTCFLAGS += -I@LIBDIR@/libzcommon/include
+HOSTCFLAGS += -I@LIBDIR@/libzfs/include
+
+HOSTLDFLAGS += -lavl -L@LIBDIR@/libavl
+HOSTLDFLAGS += -lnvpair -L@LIBDIR@/libnvpair
+HOSTLDFLAGS += -lumem -L@LIBDIR@/libumem
+HOSTLDFLAGS += -luutil -L@LIBDIR@/libuutil
+HOSTLDFLAGS += -lzport -L@LIBDIR@/libport
+HOSTLDFLAGS += -lsolcompat -L@LIBDIR@/libsolcompat
+HOSTLDFLAGS += -lzcommon -L@LIBDIR@/libzcommon
+HOSTLDFLAGS += -lzfs -L@LIBDIR@/libzfs
+
+# Additional shared library paths for executing binaries in-tree
+export LD_RUN_PATH = @LIBDIR@/libavl:@LIBDIR@/libnvpair:@LIBDIR@/libumem:@LIBDIR@/libuutil:@LIBDIR@/libport:@LIBDIR@/libsolcompat:@LIBDIR@/libzcommon:@LIBDIR@/libzfs
+
+hostprogs-y := ${CMD}
+always := $(hostprogs-y)
+
+${CMD}-objs += zdump.o # Arg processing