summaryrefslogtreecommitdiffstats
path: root/zfs/lib/libuutil/Makefile.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2008-11-20 12:01:55 -0800
committerBrian Behlendorf <[email protected]>2008-11-20 12:01:55 -0800
commit34dc7c2f2553220ebc6e29ca195fb6d57155f95f (patch)
tree634a0df4aa30200d83c16025768c9ef76a26136d /zfs/lib/libuutil/Makefile.in
Initial Linux ZFS GIT Repo
Diffstat (limited to 'zfs/lib/libuutil/Makefile.in')
-rw-r--r--zfs/lib/libuutil/Makefile.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/zfs/lib/libuutil/Makefile.in b/zfs/lib/libuutil/Makefile.in
new file mode 100644
index 000000000..8931bd850
--- /dev/null
+++ b/zfs/lib/libuutil/Makefile.in
@@ -0,0 +1,35 @@
+subdir-m += include
+DISTFILES = Makefile.in *.c
+
+LIBRARY := libuutil
+
+# 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@/libavl/include
+HOSTCFLAGS += -I@LIBDIR@/libuutil/include
+HOSTCFLAGS += -DNATIVE_BUILD
+
+HOSTLDFLAGS += -pthread
+HOSTLDFLAGS += -lrt
+HOSTLDFLAGS += -lavl -L@LIBDIR@/libavl
+HOSTLDFLAGS += -lzport -L@LIBDIR@/libport
+
+hostprogs-y := zu
+always := $(hostprogs-y)
+
+zu-objs := zu.o ${LIBRARY}.so
+
+${LIBRARY}-objs += uu_alloc.o
+${LIBRARY}-objs += uu_avl.o
+${LIBRARY}-objs += uu_dprintf.o
+${LIBRARY}-objs += uu_ident.o
+${LIBRARY}-objs += uu_list.o
+${LIBRARY}-objs += uu_misc.o
+${LIBRARY}-objs += uu_open.o
+${LIBRARY}-objs += uu_pname.o
+${LIBRARY}-objs += uu_strtoint.o