2008-05-16 22:31:19 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2014-03-05 20:59:13 -05:00
|
|
|
SYSDIR?= ${.CURDIR}/../..
|
|
|
|
|
|
|
|
|
|
.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern
|
2008-05-16 22:31:19 -04:00
|
|
|
|
|
|
|
|
KMOD= opensolaris
|
|
|
|
|
SRCS= opensolaris.c \
|
|
|
|
|
opensolaris_cmn_err.c \
|
2009-05-09 01:45:13 -04:00
|
|
|
opensolaris_kmem.c \
|
2011-02-27 14:41:40 -05:00
|
|
|
opensolaris_misc.c \
|
2016-09-24 17:40:14 -04:00
|
|
|
opensolaris_proc.c \
|
2011-02-27 14:41:40 -05:00
|
|
|
opensolaris_sunddi.c
|
2008-05-16 22:31:19 -04:00
|
|
|
|
2014-03-05 20:59:13 -05:00
|
|
|
_A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic
|
2010-09-13 03:29:02 -04:00
|
|
|
.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S)
|
|
|
|
|
.PATH: ${_A}/${MACHINE_CPUARCH}
|
|
|
|
|
SRCS+= opensolaris_atomic.S
|
|
|
|
|
.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S)
|
|
|
|
|
.PATH: ${_A}/${MACHINE_ARCH}
|
2009-05-09 01:45:13 -04:00
|
|
|
SRCS+= opensolaris_atomic.S
|
2008-05-16 22:31:19 -04:00
|
|
|
.else
|
|
|
|
|
SRCS+= opensolaris_atomic.c
|
|
|
|
|
.endif
|
2009-05-09 01:45:13 -04:00
|
|
|
|
2014-03-05 20:59:13 -05:00
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
|
|
|
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
|
|
|
-I${SYSDIR}
|
2008-05-16 22:31:19 -04:00
|
|
|
|
|
|
|
|
IGNORE_PRAGMA= 1
|
|
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|
2013-08-06 11:51:56 -04:00
|
|
|
|
2014-03-05 20:59:13 -05:00
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|