Makefile revision 1.15
1#	$NetBSD: Makefile,v 1.15 2024/06/06 05:41:28 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
11# XXX rs6000-vecdefines.h is generated in usr.bin/backend.  we can
12# try to install this from there later perhaps?
13INCS= ${G_EXTRA_HEADERS:T:Nrs6000-vecdefines.h}
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