1# $FreeBSD$ 2 3SYSDIR?= ${.CURDIR}/../.. 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_sunddi.c 13 14_A=${SYSDIR}/cddl/contrib/opensolaris/common/atomic 15.if exists(${_A}/${MACHINE_CPUARCH}/opensolaris_atomic.S) 16.PATH: ${_A}/${MACHINE_CPUARCH} 17SRCS+= opensolaris_atomic.S 18.elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S) 19.PATH: ${_A}/${MACHINE_ARCH} 20SRCS+= opensolaris_atomic.S 21.else 22SRCS+= opensolaris_atomic.c 23.endif 24 25CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \ 26 -I${SYSDIR}/cddl/contrib/opensolaris/uts/common \ 27 -I${SYSDIR} 28 29IGNORE_PRAGMA= 1 30 31.include <bsd.kmod.mk> 32 33CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h 34