1 # $NetBSD: Makefile,v 1.21 2019/01/19 20:02:06 mrg Exp $ 2 3 .include <bsd.init.mk> 4 5 .include "${.CURDIR}/../../arch/${GCC_MACHINE_ARCH}/defs.mk" 6 7 .cc: # disable .cc->NULL transform 8 9 GNUHOSTDIST= ${DIST} 10 11 BUILDINCS= basic_file.h c++allocator.h c++io.h c++locale.h 12 BUILDINCS+= messages_members.h time_members.h opt_random.h 13 14 INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers} 15 INCS+= gthr.h gthr-single.h gthr-posix.h 16 INCS+= ${BUILDINCS} 17 18 # libsupc++ 19 INCS+= nested_exception.h hash_bytes.h atomic_lockfree_defines.h 20 INCS+= cxxabi_forced.h exception_defines.h exception_ptr.h 21 22 .if ${MKCOMPAT} != no && !empty(MACHINE_ARCH:M*64*) 23 SUBDIR+= arch 24 .else 25 INCS+= c++config.h 26 .endif 27 28 INCSDIR= /usr/include/g++/bits 29 30 SYMLINKS+= ${INCSDIR}/gthr-posix.h ${INCSDIR}/gthr-default.h 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 .for _h _s in ${COPYHEADERS} 47 ${_h}: ${_s} 48 cp -pf ${.ALLSRC} ${.TARGET} 49 .endfor 50 51 # Get default targets including <bsd.inc.mk>. 52 .include <bsd.prog.mk> 53 54 .PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 55 ${DIST}/libstdc++-v3/include \ 56 ${DIST}/libstdc++-v3/config \ 57 ${DIST}/libstdc++-v3/ \ 58 ${DIST}/libstdc++-v3/libsupc++ 59 60 .include <bsd.subdir.mk> 61