1 # $NetBSD: Makefile,v 1.4 2009/01/11 02:45:54 christos Exp $
3 .
include "../Makefile.inc"
5 .PATH
: ${S}/compat
/common
10 # We don't want to hook these in for the native emulation, but do want
11 # the symbols available for other emulations. So include the source
12 # files but don't hook them in via compat_modcmd().
14 .if
(${MACHINE_ARCH} != "x86_64")
15 CPPFLAGS
+= -DCOMPAT_09
17 .if
(${MACHINE_ARCH} != "x86_64")
18 CPPFLAGS
+= -DCOMPAT_10
20 .if
(${MACHINE_ARCH} != "x86_64")
21 CPPFLAGS
+= -DCOMPAT_11
23 .if
(${MACHINE_ARCH} != "x86_64")
24 CPPFLAGS
+= -DCOMPAT_12
26 .if
(${MACHINE_ARCH} != "x86_64")
27 CPPFLAGS
+= -DCOMPAT_13
29 .if
(${MACHINE_ARCH} != "x86_64")
30 CPPFLAGS
+= -DCOMPAT_14
32 .if
(${MACHINE_ARCH} != "x86_64")
33 CPPFLAGS
+= -DCOMPAT_15
35 .if
(${MACHINE_ARCH} != "x86_64")
36 CPPFLAGS
+= -DCOMPAT_16
39 CPPFLAGS
+= -DCOMPAT_20
40 CPPFLAGS
+= -DCOMPAT_30
-DCOMPAT_40
-DCOMPAT_50
41 CPPFLAGS
+= -DCOMPAT_60
-DCOMPAT_70
-DCOMPAT_80
42 CPPFLAGS
+= -DSYSVSEM
-DSYSVSHM
-DSYSVMSG
-DCOMPAT_43
44 SRCS
= kern_exit_43.c kern_info_09.c
45 SRCS
+= kern_info_43.c kern_ipc_10.c kern_resource_43.c kern_sig_13.c
46 SRCS
+= kern_sig_43.c kern_xxx_12.c sysv_msg_14.c
47 SRCS
+= sysv_sem_14.c sysv_shm_14.c tty_43.c uipc_syscalls_30.c
48 SRCS
+= uipc_syscalls_43.c vfs_syscalls_12.c kern_sig_16.c
49 SRCS
+= vfs_syscalls_20.c vfs_syscalls_30.c vfs_syscalls_40.c
50 SRCS
+= vfs_syscalls_43.c vm_12.c vm_43.c compat_mod.c
51 SRCS
+= sysv_msg_50.c sysv_sem_50.c kern_time_50.c
52 SRCS
+= sysv_shm_50.c vfs_syscalls_50.c sysv_ipc_50.c
54 .PATH
: ${S}/arch
/${MACHINE}/${MACHINE}
55 .PATH
: ${S}/arch
/${MACHINE_ARCH}/${MACHINE_ARCH}
56 .PATH
: ${S}/arch
/${MACHINE_CPU}/${MACHINE_CPU}
58 .if
(exists
(${S}/arch
/${MACHINE}/${MACHINE}/compat_13_machdep.c
)) || \
59 (exists
(${S}/arch
/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_13_machdep.c
)) || \
60 (exists
(${S}/arch
/${MACHINE_CPU}/${MACHINE_CPU}/compat_13_machdep.c
))
61 SRCS
+= compat_13_machdep.c
64 .if
(exists
(${S}/arch
/${MACHINE}/${MACHINE}/compat_16_machdep.c
)) || \
65 (exists
(${S}/arch
/${MACHINE_ARCH}/${MACHINE_ARCH}/compat_16_machdep.c
)) || \
66 (exists
(${S}/arch
/${MACHINE_CPU}/${MACHINE_CPU}/compat_16_machdep.c
))
67 SRCS
+= compat_16_machdep.c
70 .
include <bsd.kmodule.mk
>