2008-05-17 02:31:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
|
|
|
|
|
|
|
|
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 \
|
|
|
|
opensolaris_sunddi.c
|
2008-05-17 02:31:19 +00:00
|
|
|
|
2010-09-13 07:29:02 +00:00
|
|
|
_A=${.CURDIR}/../../cddl/contrib/opensolaris/common/atomic
|
|
|
|
.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
|
|
|
|
2008-05-17 02:31:19 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris \
|
|
|
|
-I${.CURDIR}/../../cddl/contrib/opensolaris/uts/common \
|
|
|
|
-I${.CURDIR}/../..
|
|
|
|
|
|
|
|
IGNORE_PRAGMA= 1
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|