1 # $NetBSD: Makefile,v 1.9 2023/06/03 09:09:14 lukem Exp $ 2 3 .include "../Makefile.inc" 4 5 KMOD= coredump 6 7 .PATH: ${S}/kern 8 SRCS= kern_core.c core_netbsd.c 9 10 # Include only the primary object format. If both elf64 and elf32 are 11 # supported, this will pick up elf64 and elf32 will be available in 12 # the compat_netbsd32_coredump module 13 14 .if ${OBJECT_FMTS:Melf64} != "" 15 SRCS+= core_elf64.c 16 CPPFLAGS+= -DEXEC_ELF64 17 .elif ${OBJECT_FMTS:Melf32} != "" 18 SRCS+= core_elf32.c 19 CPPFLAGS+= -DEXEC_ELF32 20 .endif 21 22 .PATH: ${S}/uvm 23 SRCS+= uvm_coredump.c 24 25 .include "../ptrace_common/machdep.mk" 26 SRCS+= core_machdep.c 27 28 WARNS= 3 29 30 COPTS.kern_core.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 31 32 .include <bsd.kmodule.mk> 33