Makefile revision 1.8
11.8Spgoyette# $NetBSD: Makefile,v 1.8 2020/11/01 18:51:03 pgoyette Exp $ 21.1Sad 31.1Sad.include "../Makefile.inc" 41.1Sad 51.1SadKMOD= coredump 61.1Sad 71.1Sad.PATH: ${S}/kern 81.7SchristosSRCS= kern_core.c core_netbsd.c 91.8Spgoyette 101.8Spgoyette# Include only the primary object format. If both elf64 and elf32 are 111.8Spgoyette# supported, this will pick up elf64 and elf32 will be available in 121.8Spgoyette# the compat_netbsd32_coredump module 131.8Spgoyette 141.8Spgoyette.if ${OBJECT_FMTS:Melf64} != "" 151.8SpgoyetteSRCS+= core_elf64.c 161.8SpgoyetteCPPFLAGS+= -DEXEC_ELF64 171.8Spgoyette.elif ${OBJECT_FMTS:Melf32} != "" 181.8SpgoyetteSRCS+= core_elf32.c 191.8SpgoyetteCPPFLAGS+= -DEXEC_ELF32 201.8Spgoyette.endif 211.1Sad 221.1Sad.PATH: ${S}/uvm 231.1SadSRCS+= uvm_coredump.c 241.1Sad 251.7Schristos.include "../ptrace_common/machdep.mk" 261.7SchristosSRCS+= core_machdep.c 271.7Schristos 281.4SrinWARNS= 3 291.4Srin 301.5SmrgCOPTS.kern_core.c+= ${GCC_NO_CAST_FUNCTION_TYPE} 311.5Smrg 321.1Sad.include <bsd.kmodule.mk> 33