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