1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libspl 4.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libspl/os/freebsd 5.PATH: ${SRCTOP}/sys/contrib/openzfs/include 6 7 8LIB= spl 9LIBADD= 10PACKAGE= runtime 11 12SRCS = \ 13 assert.c \ 14 list.c \ 15 mkdirp.c \ 16 page.c \ 17 strlcat.c \ 18 strlcpy.c \ 19 timestamp.c \ 20 zone.c \ 21 include/sys/list.h \ 22 include/sys/list_impl.h 23 24SRCS += \ 25 getexecname.c \ 26 gethostid.c \ 27 getmntany.c \ 28 mnttab.c 29 30 31.if ${MACHINE_ARCH} == "amd64" 32.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libspl/asm-x86_64 33SRCS += atomic.S 34.elif ${MACHINE_ARCH} == "i386" 35.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libspl/asm-i386 36SRCS += atomic.S 37.else 38.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libspl/asm-generic 39SRCS += atomic.c 40.endif 41 42 43WARNS?= 2 44CSTD= c99 45CFLAGS+= -DIN_BASE 46CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 47CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 48CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 49CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 50CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include 51CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 52CFLAGS+= -DHAVE_ISSETUGID 53CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 54CFLAGS.atomic.S+= -DLOCORE 55 56.include <bsd.lib.mk> 57