1# $FreeBSD$ 2 3SYSDIR?= ${SRCTOP}/sys 4 5.PATH: ${SYSDIR}/cddl/compat/opensolaris/kern 6 7KMOD= opensolaris 8SRCS= opensolaris.c \ 9 opensolaris_cmn_err.c \ 10 opensolaris_kmem.c \ 11 opensolaris_misc.c \ 12 opensolaris_proc.c \ 13 opensolaris_sunddi.c 14 15_A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic 16.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S) 17.PATH: ${_A}/${MACHINE_CPUARCH} 18SRCS+= opensolaris_atomic.S 19.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S) 20.PATH: ${_A}/${MACHINE_ARCH} 21SRCS+= opensolaris_atomic.S 22.else 23SRCS+= opensolaris_atomic.c 24.endif 25 26CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \ 27 -I${SYSDIR}/cddl/contrib/opensolaris/uts/common \ 28 -I${SYSDIR} 29 30EXPORT_SYMS= cpu_core 31 32IGNORE_PRAGMA= 1 33 34.include <bsd.kmod.mk> 35 36CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h 37