summaryrefslogtreecommitdiffstats
path: root/zfs/lib/libnvpair/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'zfs/lib/libnvpair/Makefile.in')
-rw-r--r--zfs/lib/libnvpair/Makefile.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/zfs/lib/libnvpair/Makefile.in b/zfs/lib/libnvpair/Makefile.in
new file mode 100644
index 000000000..90599ca48
--- /dev/null
+++ b/zfs/lib/libnvpair/Makefile.in
@@ -0,0 +1,34 @@
+subdir-m += include
+DISTFILES = libnvpair.c nvpair.c nvpair_alloc_fixed.c nvpair_alloc_system.c
+
+MODULE := znvpair
+LIBRARY := libnvpair
+
+# Compile as kernel module. Needed symlinks created for all
+# k* objects created by top level configure script.
+
+EXTRA_CFLAGS = @KERNELCPPFLAGS@
+EXTRA_CFLAGS += -I@LIBDIR@/libnvpair/include
+
+obj-m := ${MODULE}.o
+
+${MODULE}-objs += knvpair.o # Interfaces name/value pairs
+${MODULE}-objs += nvpair_alloc_spl.o # Generic alloc/free support
+
+# Compile as shared library. There's an extra useless host program
+# here called 'zu' because it was the easiest way I could convince
+# the kernel build system to construct a user space shared library.
+
+HOSTCFLAGS += @HOSTCFLAGS@
+HOSTCFLAGS += -I@LIBDIR@/libsolcompat/include
+HOSTCFLAGS += -I@LIBDIR@/libport/include
+HOSTCFLAGS += -I@LIBDIR@/libnvpair/include
+
+hostprogs-y := zu
+always := $(hostprogs-y)
+
+zu-objs := zu.o ${LIBRARY}.so
+
+${LIBRARY}-objs += unvpair.o
+${LIBRARY}-objs += nvpair_alloc_system.o
+${LIBRARY}-objs += libnvpair.o