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