blob: 17c06f298cf08424e6b9ef51410650a15a7ee532 (
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
|
# $NetBSD: Makefile,v 1.8 2020/11/01 18:51:03 pgoyette Exp $
.include "../Makefile.inc"
KMOD= coredump
.PATH: ${S}/kern
SRCS= kern_core.c core_netbsd.c
# Include only the primary object format. If both elf64 and elf32 are
# supported, this will pick up elf64 and elf32 will be available in
# the compat_netbsd32_coredump module
.if ${OBJECT_FMTS:Melf64} != ""
SRCS+= core_elf64.c
CPPFLAGS+= -DEXEC_ELF64
.elif ${OBJECT_FMTS:Melf32} != ""
SRCS+= core_elf32.c
CPPFLAGS+= -DEXEC_ELF32
.endif
.PATH: ${S}/uvm
SRCS+= uvm_coredump.c
.include "../ptrace_common/machdep.mk"
SRCS+= core_machdep.c
WARNS= 3
COPTS.kern_core.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.kmodule.mk>
|