1 subdir-m += amd64 i386 sparc64 include
2 DISTFILES = atomic_asm_weak.h gen_synonyms.h getmntany.c
3 DISTFILES += mkdirp.c synonyms.h tsd.h zone.c
5 LIBRARY := libsolcompat
7 # Compile as shared library. There's an extra useless host program
8 # here called 'zu' because it was the easiest way I could convince
9 # the kernel build system to construct a user space shared library.
11 HOSTCFLAGS += @HOSTCFLAGS@
12 HOSTCFLAGS += -I@LIBDIR@/libsolcompat/include
13 HOSTCFLAGS += -I@LIBDIR@/libport/include
16 always := $(hostprogs-y)
18 zu-objs := zu.o ${LIBRARY}.so
20 ${LIBRARY}-objs += getmntany.o
21 ${LIBRARY}-objs += mkdirp.o
22 ${LIBRARY}-objs += zone.o