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