aboutsummaryrefslogtreecommitdiffstats
path: root/zfs/lib/libzcommon/Makefile.in
blob: 7a1929113474135fbbd37544d5afb05935be65c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
subdir-m += include
DISTFILES  = compress.c list.c zfs_comutil.c zfs_deleg.c zfs_namecheck.c
DISTFILES += zfs_prop.c zpool_prop.c zprop_common.c

MODULE  := zcommon
LIBRARY := libzcommon

# Compile as kernel module.  Needed symlinks created for all
# k* objects created by top level configure script.

EXTRA_CFLAGS  = @KERNELCPPFLAGS@
EXTRA_CFLAGS += -I@LIBDIR@/libzcommon/include
EXTRA_CFLAGS += -I@LIBDIR@/libport/include
EXTRA_CFLAGS += -I@LIBDIR@/libavl/include
EXTRA_CFLAGS += -I@LIBDIR@/libnvpair/include

obj-m := ${MODULE}.o

${MODULE}-objs += spl.o
${MODULE}-objs += kzfs_deleg.o
${MODULE}-objs += kzfs_prop.o
${MODULE}-objs += kzprop_common.o
${MODULE}-objs += kcompress.o
${MODULE}-objs += klist.o
${MODULE}-objs += kzfs_namecheck.o
${MODULE}-objs += kzfs_comutil.o
${MODULE}-objs += kzpool_prop.o

# 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@/libzcommon/include
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

HOSTLDFLAGS += -lnvpair -L@LIBDIR@/libnvpair

hostprogs-y := zu
always := $(hostprogs-y)

zu-objs := zu.o ${LIBRARY}.so

${LIBRARY}-objs += zfs_deleg.o
${LIBRARY}-objs += zfs_prop.o
${LIBRARY}-objs += zprop_common.o
${LIBRARY}-objs += compress.o
${LIBRARY}-objs += list.o
${LIBRARY}-objs += zfs_namecheck.o
${LIBRARY}-objs += zfs_comutil.o
${LIBRARY}-objs += zpool_prop.o