Makefile revision 1.4
1#	$NetBSD: Makefile,v 1.4 2011/07/07 08:46:20 mrg Exp $
2
3.include "../Makefile.inc"
4
5# XXX for G_EXTRA_HEADERS.  make mknative-gcc put that somewhere
6# inside usr.bin/ not lib/
7.if exists(${.CURDIR}/../../lib/libgcc/arch/${MACHINE_ARCH}.mk)
8.include "${.CURDIR}/../../lib/libgcc/arch/${MACHINE_ARCH}.mk"
9.endif
10
11INCS= ${G_EXTRA_HEADERS:T}
12
13# XXX missed some how
14.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
15INCS+=	mm_malloc.h
16
17# XXX we should put this in gcc/config.gcc and regenerate the i386/x86
18# mknative files
19mm_malloc.h: ${DIST}/gcc/config/i386/pmm_malloc.h
20	cp $> ${.TARGET}
21
22CLEANFILES+=	mm_malloc.h
23.endif
24
25INCSDIR=	/usr/include/gcc-4.5
26
27.include <bsd.prog.mk>
28
29# XXX probably don't need the first of these
30.PATH: ${G_out_file:H}
31.PATH: ${G_EXTRA_HEADERS:H:O:u}
32