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