1#	$NetBSD: Makefile,v 1.16 2024/06/18 04:07:18 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.include "../rs6000-inc.mk"
14
15# Part of the standard headers, the rest of which we replace.
16INCS+=	stdatomic.h
17
18# XXX missed some how
19.if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64"
20INCS+=	mm_malloc.h
21
22.if !target(obj)
23mm_malloc.h: ${DIST}/gcc/config/i386/pmm_malloc.h
24	cp -f $> ${.TARGET}
25.endif
26
27CLEANFILES+=	mm_malloc.h
28.endif
29
30INCSDIR=	${GCC_INCSDIR}
31
32.include <bsd.subdir.mk>
33.include <bsd.prog.mk>
34
35.PATH: ${G_EXTRA_HEADERS:H:O:u}
36