1 # $FreeBSD$
2
3 SYSDIR?= ${SRCTOP}/sys
4
5 .PATH: ${SYSDIR}/cddl/compat/opensolaris/kern
6
7 KMOD= opensolaris
8 SRCS= 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}
18 SRCS+= opensolaris_atomic.S
19 .elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S)
20 .PATH: ${_A}/${MACHINE_ARCH}
21 SRCS+= opensolaris_atomic.S
22 .else
23 SRCS+= opensolaris_atomic.c
24 .endif
25
26 CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
27 -I${SYSDIR}/cddl/contrib/opensolaris/uts/common \
28 -I${SYSDIR}
29
30 EXPORT_SYMS= cpu_core
31
32 IGNORE_PRAGMA= 1
33
34 .include <bsd.kmod.mk>
35
36 CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
Cache object: 55761ab2cae20ddac3a3623c75e38a32
|