1 # $NetBSD: Makefile,v 1.1 2011/06/21 06:02:27 mrg Exp $ 2 3 .include <bsd.own.mk> 4 5 .include "${.CURDIR}/../../arch/${MACHINE_ARCH}/defs.mk" 6 7 .cc: # disable .cc->NULL transform 8 9 DIST= ${NETBSDSRCDIR}/gnu/dist/gcc4 10 CONF= ${DIST}/libstdc++-v3/config 11 12 INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_thread_host_headers} ${G_host_headers_extra} ${G_host_headers} 13 INCSDIR= /usr/include/g++/bits 14 15 CLEANFILES+= basic_file.h c++io.h c++locale.h 16 17 basic_file.h: ${CONF}/io/basic_file_stdio.h 18 cp $> ${.TARGET} 19 c++io.h: ${CONF}/io/c_io_stdio.h 20 cp $> ${.TARGET} 21 c++locale.h: ${CONF}/locale/generic/c_locale.h 22 cp $> ${.TARGET} 23 24 # List of places to find cpu files; maybe do this differently from 25 # mknative? 26 BITS_CPUDIR.sparc64=sparc 27 28 _DIR=${BITS_CPUDIR.${MACHINE_ARCH}} 29 .if ${_DIR} != "" 30 BITS_CPUDIR=${BITS_CPUDIR.${MACHINE_ARCH}} 31 .else 32 BITS_CPUDIR=${MACHINE_GNU_ARCH} 33 .endif 34 35 .PATH: ${DIST}/libstdc++-v3/include/bits \ 36 ${DIST}/libstdc++-v3/include/c_std \ 37 ${CONF}/os/bsd/netbsd \ 38 ${CONF}/io \ 39 ${CONF}/cpu/${BITS_CPUDIR} \ 40 ${CONF}/cpu/generic \ 41 ${CONF}/locale/generic \ 42 ${.CURDIR}/../../arch/${MACHINE_ARCH} 43 44 # Get default targets including <bsd.inc.mk>. 45 .include <bsd.prog.mk> 46