2008-05-17 02:31:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-03-04 10:10:17 +00:00
|
|
|
SYSDIR?= ${SRCTOP}/sys
|
2014-03-06 01:59:13 +00:00
|
|
|
|
|
|
|
.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern
|
2008-05-17 02:31:19 +00:00
|
|
|
|
|
|
|
KMOD= opensolaris
|
|
|
|
SRCS= opensolaris.c \
|
|
|
|
opensolaris_cmn_err.c \
|
2009-05-09 05:45:13 +00:00
|
|
|
opensolaris_kmem.c \
|
2011-02-27 19:41:40 +00:00
|
|
|
opensolaris_misc.c \
|
2016-09-24 21:40:14 +00:00
|
|
|
opensolaris_proc.c \
|
2011-02-27 19:41:40 +00:00
|
|
|
opensolaris_sunddi.c
|
2008-05-17 02:31:19 +00:00
|
|
|
|
2014-03-06 01:59:13 +00:00
|
|
|
_A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic
|
2010-09-13 07:29:02 +00: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 05:45:13 +00:00
|
|
|
SRCS+= opensolaris_atomic.S
|
2008-05-17 02:31:19 +00:00
|
|
|
.else
|
|
|
|
SRCS+= opensolaris_atomic.c
|
|
|
|
.endif
|
2009-05-09 05:45:13 +00:00
|
|
|
|
2014-03-06 01:59:13 +00:00
|
|
|
CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
|
|
|
|
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
|
|
|
|
-I${SYSDIR}
|
2008-05-17 02:31:19 +00:00
|
|
|
|
|
|
|
IGNORE_PRAGMA= 1
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|
2013-08-06 15:51:56 +00:00
|
|
|
|
2014-03-06 01:59:13 +00:00
|
|
|
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
|