1 # $NetBSD: Makefile,v 1.9 2014/03/01 10:28:02 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+= ${G_BASIC_FILE_H} ${G_ALLOCATOR_H} ${G_CLOCALE_H} 18 INCS+= ${G_CSTDIO_H} ${G_CMESSAGES_H} ${G_CTIME_H} 19 INCS+= ${G_CPU_OPT_BITS_RANDOM} 20 21 # libsupc++ 22 INCS+= nested_exception.h hash_bytes.h atomic_lockfree_defines.h 23 INCS+= cxxabi_forced.h exception_defines.h exception_ptr.h 24 25 .if ${MKCOMPAT} != no 26 SUBDIR+= arch 27 .else 28 INCS+= c++config.h 29 .endif 30 31 INCSDIR= /usr/include/g++/bits 32 33 .include "${.CURDIR}/../Makefile.includes" 34 35 CLEANFILES+= {BUILDINCS} 36 37 INCSNAME_${G_BASIC_FILE_H} = basic_file.h 38 INCSNAME_${G_ALLOCATOR_H} = c++allocator.h 39 INCSNAME_${G_CLOCALE_H} = c++locale.h 40 INCSNAME_${G_CSTDIO_H} = c++io.h 41 INCSNAME_${G_CMESSAGES_H} = messages_members.h 42 INCSNAME_${G_CTIME_H} = time_members.h 43 INCSNAME_${G_CPU_OPT_BITS_RANDOM} = opt_random.h 44 45 .PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 46 ${DIST}/libstdc++-v3/include \ 47 ${DIST}/libstdc++-v3/config \ 48 ${DIST}/libstdc++-v3/ \ 49 ${DIST}/libstdc++-v3/libsupc++ 50 51 # Get default targets including <bsd.inc.mk>. 52 .include <bsd.prog.mk> 53 .include <bsd.subdir.mk> 54