2 DISTFILES = port.c strlcat.c strlcpy.c strnlen.c u8_textprep.c
7 # Compile as kernel module. Needed symlinks created for all
8 # k* objects created by top level configure script.
10 EXTRA_CFLAGS = @KERNELCPPFLAGS@
11 EXTRA_CFLAGS += -I@LIBDIR@/libzcommon/include
12 EXTRA_CFLAGS += -I@LIBDIR@/libport/include
16 ${MODULE}-objs += spl.o
17 ${MODULE}-objs += ku8_textprep.o
19 # Compile as shared library. There's an extra useless host program
20 # here called 'zu' because it was the easiest way I could convince
21 # the kernel build system to construct a user space shared library.
23 HOSTCFLAGS += @HOSTCFLAGS@
24 HOSTCFLAGS += -I@LIBDIR@/libzcommon/include
25 HOSTCFLAGS += -I@LIBDIR@/libport/include
28 always := $(hostprogs-y)
30 zu-objs := zu.o ${LIBRARY}.so
32 ${LIBRARY}-objs += strlcpy.o
33 ${LIBRARY}-objs += strlcat.o
34 ${LIBRARY}-objs += strnlen.o
35 ${LIBRARY}-objs += port.o
36 ${LIBRARY}-objs += u8_textprep.o