]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/modules/opensolaris/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / modules / opensolaris / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../cddl/compat/opensolaris/kern
4
5 KMOD=           opensolaris
6 SRCS=           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}
15 SRCS+=          opensolaris_atomic.S
16 .elif exists(${_A}/${MACHINE_ARCH}/opensolaris_atomic.S)
17 .PATH:  ${_A}/${MACHINE_ARCH}
18 SRCS+=          opensolaris_atomic.S
19 .else
20 SRCS+=          opensolaris_atomic.c
21 .endif
22
23 CFLAGS+=        -I${.CURDIR}/../../cddl/compat/opensolaris              \
24                 -I${.CURDIR}/../../cddl/contrib/opensolaris/uts/common  \
25                 -I${.CURDIR}/../..
26
27 IGNORE_PRAGMA=  1
28
29 .include <bsd.kmod.mk>
30
31 CFLAGS+=        -include ${.CURDIR}/../../cddl/compat/opensolaris/sys/debug_compat.h