blob: ffd2ae761420b0d950257dd515a8306b8094b654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $NetBSD: Makefile,v 1.14 2016/11/03 04:26:58 riastradh Exp $
.include "../Makefile.inc"
.PATH: ${S}/compat/common
KMOD= compat
#
# We don't want to hook these in for the native emulation, but do want
# the symbols available for other emulations. So include the source
# files but don't hook them in via compat_modcmd().
#
CPPFLAGS+= -DCOMPAT_09
CPPFLAGS+= -DCOMPAT_10
CPPFLAGS+= -DCOMPAT_11
CPPFLAGS+= -DCOMPAT_12
CPPFLAGS+= -DCOMPAT_13
CPPFLAGS+= -DCOMPAT_14
CPPFLAGS+= -DCOMPAT_15
CPPFLAGS+= -DCOMPAT_16
CPPFLAGS+= -DCOMPAT_20
CPPFLAGS+= -DCOMPAT_30 -DCOMPAT_40 -DCOMPAT_50
CPPFLAGS+= -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80
CPPFLAGS+= -DCOMPAT_43
.include "../../compat/common/Makefile.sysio"
SRCS+= compat_mod.c
.PATH: ${S}/arch/${MACHINE}/${MACHINE}
.PATH: ${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}
.PATH: ${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}
.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_13_machdep.c)) || \
(exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c)) || \
(exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c))
SRCS+= compat_13_machdep.c
.endif
.if (exists(${S}/arch/${MACHINE}/${MACHINE}/compat_16_machdep.c)) || \
(exists(${S}/arch/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c)) || \
(exists(${S}/arch/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c))
SRCS+= compat_16_machdep.c
.endif
.include <bsd.kmodule.mk>
|