2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2013/08/22 00:17:48 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
# XXX for G_EXTRA_HEADERS. make mknative-gcc put that somewhere
|
|
|
|
# inside usr.bin/ not lib/
|
2013-12-06 12:04:52 +01:00
|
|
|
.if exists(${.CURDIR}/../../lib/libgcc/arch/${GCC_MACHINE_ARCH}.mk)
|
|
|
|
.include "${.CURDIR}/../../lib/libgcc/arch/${GCC_MACHINE_ARCH}.mk"
|
2012-06-06 15:06:52 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
INCS= ${G_EXTRA_HEADERS:T}
|
|
|
|
|
|
|
|
# XXX missed some how
|
2013-12-06 12:04:52 +01:00
|
|
|
.if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64"
|
2012-06-06 15:06:52 +02:00
|
|
|
INCS+= mm_malloc.h
|
|
|
|
|
|
|
|
# XXX we should put this in gcc/config.gcc and regenerate the i386/x86
|
|
|
|
# mknative files
|
|
|
|
mm_malloc.h: ${DIST}/gcc/config/i386/pmm_malloc.h
|
|
|
|
cp $> ${.TARGET}
|
|
|
|
|
|
|
|
CLEANFILES+= mm_malloc.h
|
|
|
|
.endif
|
|
|
|
|
|
|
|
INCSDIR= /usr/include/gcc-4.5
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
# XXX probably don't need the first of these
|
|
|
|
.PATH: ${G_out_file:H}
|
|
|
|
.PATH: ${G_EXTRA_HEADERS:H:O:u}
|