1 # $NetBSD: Makefile,v 1.22 2019/01/22 23:55:54 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 # XXX use bits_sup_headers from libstdc++/include/Makefile.am 20 INCS+= atomic_lockfree_defines.h \ 21 cxxabi_forced.h \ 22 cxxabi_init_exception.h \ 23 exception.h \ 24 exception_defines.h \ 25 exception_ptr.h \ 26 hash_bytes.h \ 27 nested_exception.h 28 29 .if ${MKCOMPAT} != no && !empty(MACHINE_ARCH:M*64*) 30 SUBDIR+= arch 31 .else 32 INCS+= c++config.h 33 .endif 34 35 INCSDIR= /usr/include/g++/bits 36 37 INCSYMLINKS+= gthr-posix.h ${INCSDIR}/gthr-default.h 38 39 .include "${.CURDIR}/../Makefile.includes" 40 41 CLEANFILES+= ${BUILDINCS} 42 43 CXXDIST= ${DIST}/libstdc++-v3 44 COPYHEADERS= \ 45 opt_random.h ${CXXDIST}/${G_CPU_OPT_BITS_RANDOM} \ 46 basic_file.h ${CXXDIST}/${G_BASIC_FILE_H} \ 47 c++allocator.h ${CXXDIST}/${G_ALLOCATOR_H} \ 48 c++locale.h ${CXXDIST}/${G_CLOCALE_H} \ 49 c++io.h ${CXXDIST}/${G_CSTDIO_H} \ 50 messages_members.h ${CXXDIST}/${G_CMESSAGES_H} \ 51 time_members.h ${CXXDIST}/${G_CTIME_H} 52 53 .for _h _s in ${COPYHEADERS} 54 ${_h}: ${_s} 55 cp -pf ${.ALLSRC} ${.TARGET} 56 .endfor 57 58 # Get default targets including <bsd.inc.mk>. 59 .include <bsd.prog.mk> 60 61 .PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 62 ${DIST}/libstdc++-v3/include \ 63 ${DIST}/libstdc++-v3/config \ 64 ${DIST}/libstdc++-v3/ \ 65 ${DIST}/libstdc++-v3/libsupc++ 66 67 .include <bsd.subdir.mk> 68