zfs/module/zcommon/Makefile.in

50 lines
1.4 KiB
Makefile
Raw Normal View History

2008-12-05 17:46:11 +00:00
subdir-m += include
DISTFILES = zfs_comutil.c zfs_deleg.c zfs_namecheck.c
2008-12-05 17:46:11 +00:00
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@/libspl/include
2008-12-05 17:46:11 +00:00
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 += 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@/libspl/include
2008-12-05 17:46:11 +00:00
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 += zfs_namecheck.o
${LIBRARY}-objs += zfs_comutil.o
${LIBRARY}-objs += zpool_prop.o