1# $NetBSD: Makefile,v 1.1.1.2 2014/02/26 10:57:34 mrg Exp $ 2 3.include <bsd.init.mk> 4 5.include "${.CURDIR}/../../arch/${GCC_MACHINE_ARCH}/defs.mk" 6 7.cc: # disable .cc->NULL transform 8 9CONF= ${DIST}/libstdc++-v3/config 10 11INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_thread_host_headers} ${G_host_headers_extra} ${G_host_headers} 12INCS+= c++config.h 13INCSDIR= /usr/include/g++/bits 14 15CLEANFILES+= basic_file.h c++io.h c++locale.h 16 17basic_file.h: ${CONF}/io/basic_file_stdio.h 18 cp $> ${.TARGET} 19c++io.h: ${CONF}/io/c_io_stdio.h 20 cp $> ${.TARGET} 21c++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? 26BITS_CPUDIR.sparc64=sparc 27 28_DIR=${BITS_CPUDIR.${GCC_MACHINE_ARCH}} 29.if ${_DIR} != "" 30BITS_CPUDIR=${BITS_CPUDIR.${GCC_MACHINE_ARCH}} 31.else 32BITS_CPUDIR=${MACHINE_GNU_ARCH} 33.endif 34 35# Get default targets including <bsd.inc.mk>. 36.include <bsd.prog.mk> 37 38.PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 39 ${DIST}/libstdc++-v3/include/bits \ 40 ${DIST}/libstdc++-v3/include/c_std \ 41 ${DIST}/libstdc++-v3/include/precompiled \ 42 ${CONF}/os/bsd/netbsd \ 43 ${CONF}/os/generic \ 44 ${CONF}/io \ 45 ${CONF}/cpu/${BITS_CPUDIR} \ 46 ${CONF}/cpu/generic \ 47 ${CONF}/locale/generic 48