1 # $NetBSD: Makefile,v 1.4.8.1 2013/06/23 06:28:35 tls 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 INCS+= c++config.h 14 INCSDIR= /usr/include/g++/bits 15 16 CLEANFILES+= basic_file.h c++io.h c++locale.h 17 18 basic_file.h: ${CONF}/io/basic_file_stdio.h 19 cp $> ${.TARGET} 20 c++io.h: ${CONF}/io/c_io_stdio.h 21 cp $> ${.TARGET} 22 c++locale.h: ${CONF}/locale/generic/c_locale.h 23 cp $> ${.TARGET} 24 25 # List of places to find cpu files; maybe do this differently from 26 # mknative? 27 BITS_CPUDIR.sparc64=sparc 28 29 _DIR=${BITS_CPUDIR.${MACHINE_ARCH}} 30 .if ${_DIR} != "" 31 BITS_CPUDIR=${BITS_CPUDIR.${MACHINE_ARCH}} 32 .else 33 BITS_CPUDIR=${MACHINE_GNU_ARCH} 34 .endif 35 36 .PATH: ${.CURDIR}/../../arch/${MACHINE_ARCH} \ 37 ${DIST}/libstdc++-v3/include/bits \ 38 ${DIST}/libstdc++-v3/include/c_std \ 39 ${DIST}/libstdc++-v3/include/precompiled \ 40 ${CONF}/os/bsd/netbsd \ 41 ${CONF}/os/generic \ 42 ${CONF}/io \ 43 ${CONF}/cpu/${BITS_CPUDIR} \ 44 ${CONF}/cpu/generic \ 45 ${CONF}/locale/generic 46 47 # Get default targets including <bsd.inc.mk>. 48 .include <bsd.prog.mk> 49