mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-16 21:17:10 +03:00
32 lines
794 B
Makefile
32 lines
794 B
Makefile
|
subdir-m += include
|
||
|
DISTFILES = avl.c
|
||
|
|
||
|
MODULE := zavl
|
||
|
LIBRARY := libavl
|
||
|
|
||
|
# Compile as kernel module. Needed symlinks created for all
|
||
|
# k* objects created by top level configure script.
|
||
|
|
||
|
EXTRA_CFLAGS = @KERNELCPPFLAGS@
|
||
|
EXTRA_CFLAGS += -I@LIBDIR@/libavl/include
|
||
|
|
||
|
obj-m := ${MODULE}.o
|
||
|
|
||
|
${MODULE}-objs += kavl.o # Generic AVL 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@/libavl/include
|
||
|
|
||
|
hostprogs-y := zu
|
||
|
always := $(hostprogs-y)
|
||
|
|
||
|
zu-objs := zu.o ${LIBRARY}.so
|
||
|
|
||
|
${LIBRARY}-objs += uavl.o
|