1 # $NetBSD: Makefile,v 1.12 2014/03/02 03:47:57 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 10 DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist 11 12 BUILDINCS= basic_file.h c++allocator.h c++io.h c++locale.h 13 BUILDINCS+= messages_members.h time_members.h opt_random.h 14 15 INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers} 16 INCS+= gthr.h gthr-single.h gthr-posix.h gthr-default.h 17 INCS+= ${BUILDINCS} 18 19 # libsupc++ 20 INCS+= nested_exception.h hash_bytes.h atomic_lockfree_defines.h 21 INCS+= cxxabi_forced.h exception_defines.h exception_ptr.h 22 23 .if ${MKCOMPAT} != no 24 SUBDIR+= arch 25 .else 26 INCS+= c++config.h 27 .endif 28 29 INCSDIR= /usr/include/g++/bits 30 31 .include "${.CURDIR}/../Makefile.includes" 32 33 CLEANFILES+= {BUILDINCS} 34 35 CXXDIST= ${DIST}/libstdc++-v3 36 COPYHEADERS= \ 37 opt_random.h ${G_CPU_OPT_BITS_RANDOM} \ 38 basic_file.h ${G_BASIC_FILE_H} \ 39 c++allocator.h ${G_ALLOCATOR_H} \ 40 c++locale.h ${G_CLOCALE_H} \ 41 c++io.h ${G_CSTDIO_H} \ 42 messages_members.h ${G_CMESSAGES_H} \ 43 time_members.h ${G_CTIME_H} 44 45 .for _h _s in ${COPYHEADERS} 46 ${_h}: ${CXXDIST}/${_s} 47 cp -p ${.ALLSRC} ${.TARGET} 48 .endfor 49 50 .PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 51 ${DIST}/libstdc++-v3/include \ 52 ${DIST}/libstdc++-v3/config \ 53 ${DIST}/libstdc++-v3/ \ 54 ${DIST}/libstdc++-v3/libsupc++ 55 56 # Get default targets including <bsd.inc.mk>. 57 .include <bsd.prog.mk> 58 .include <bsd.subdir.mk> 59