zfs/zfs/lib/libspl/Makefile.in

30 lines
782 B
Makefile

subdir-m += include
DISTFILES = list.c mkdirp.c strlcpy.c strlcat.c strnlen.c
DISTFILES += u8_textprep.c getexecname.c gethrtime.c
LIBRARY := libspl
# 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
HOSTLDFLAGS += -pthread
HOSTLDFLAGS += -lrt
hostprogs-y := zu
always := $(hostprogs-y)
zu-objs := zu.o ${LIBRARY}.so
${LIBRARY}-objs += mkdirp.o
${LIBRARY}-objs += strlcpy.o
${LIBRARY}-objs += list.o
${LIBRARY}-objs += strlcat.o
${LIBRARY}-objs += strnlen.o
${LIBRARY}-objs += u8_textprep.o
${LIBRARY}-objs += getexecname.o
${LIBRARY}-objs += gethrtime.o