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