1 # $NetBSD: Makefile,v 1.5 2013/08/22 00:17:48 matt 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/${GCC_MACHINE_ARCH}.mk) 8 .include "${.CURDIR}/../../lib/libgcc/arch/${GCC_MACHINE_ARCH}.mk" 9 .endif 10 11 INCS= ${G_EXTRA_HEADERS:T} 12 13 # XXX missed some how 14 .if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64" 15 INCS+= mm_malloc.h 16 17 # XXX we should put this in gcc/config.gcc and regenerate the i386/x86 18 # mknative files 19 mm_malloc.h: ${DIST}/gcc/config/i386/pmm_malloc.h 20 cp $> ${.TARGET} 21 22 CLEANFILES+= mm_malloc.h 23 .endif 24 25 INCSDIR= /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