1# $NetBSD: Makefile,v 1.15 2023/02/20 02:12:36 mrg Exp $ 2 3.include <bsd.init.mk> 4 5SUBDIR= sanitizer 6 7.if exists(${.CURDIR}/arch/${GCC_MACHINE_ARCH}.mk) 8.include "${.CURDIR}/arch/${GCC_MACHINE_ARCH}.mk" 9.endif 10 11INCS= ${G_EXTRA_HEADERS:T} 12 13# Part of the standard headers, the rest of which we replace. 14INCS+= stdatomic.h 15 16# XXX missed some how 17.if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64" 18INCS+= mm_malloc.h 19 20# XXX we should put this in gcc/config.gcc and regenerate the i386/x86 21# mknative files 22mm_malloc.h: ${DIST}/gcc/config/i386/pmm_malloc.h 23 cp -f $> ${.TARGET} 24 25CLEANFILES+= mm_malloc.h 26.endif 27 28INCSDIR= ${GCC_INCSDIR} 29 30.include <bsd.subdir.mk> 31.include <bsd.prog.mk> 32 33.PATH: ${G_EXTRA_HEADERS:H:O:u} 34