1 # $NetBSD: Makefile,v 1.3 2011/06/28 04:07:36 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}/external/gpl3/gcc/dist 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 ${DIST}/libstdc++-v3/include/precompiled \ 38 ${CONF}/os/bsd/netbsd \ 39 ${CONF}/os/generic \ 40 ${CONF}/io \ 41 ${CONF}/cpu/${BITS_CPUDIR} \ 42 ${CONF}/cpu/generic \ 43 ${CONF}/locale/generic \ 44 ${.CURDIR}/../../arch/${MACHINE_ARCH} 45 46 # Get default targets including <bsd.inc.mk>. 47 .include <bsd.prog.mk> 48