1 # $NetBSD: Makefile,v 1.10 2014/03/01 21:03:01 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 opt_random.h: ${G_CPU_OPT_BITS_RANDOM} 36 cp -p ${.ALLSRC} ${.TARGET} 37 basic_file.h: ${G_BASIC_FILE_H} 38 cp -p ${.ALLSRC} ${.TARGET} 39 c++allocator.h: ${G_ALLOCATOR_H} 40 cp -p ${.ALLSRC} ${.TARGET} 41 c++locale.h: $(G_CLOCALE_H) 42 cp -p ${.ALLSRC} ${.TARGET} 43 c++io.h: $(G_CSTDIO_H) 44 cp -p ${.ALLSRC} ${.TARGET} 45 messages_members.h: $(G_CMESSAGES_H) 46 cp -p ${.ALLSRC} ${.TARGET} 47 time_members.h: $(G_CTIME_H) 48 cp -p ${.ALLSRC} ${.TARGET} 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