1 # $NetBSD: Makefile,v 1.20 2019/01/19 17:11:02 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 # XXX gthr-default.h should be a symlink to gthr-posix.h 16 INCS+= gthr-default.h gthr.h gthr-single.h gthr-posix.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 && !empty(MACHINE_ARCH:M*64*) 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 CXXDIST= ${DIST}/libstdc++-v3 36 COPYHEADERS= \ 37 opt_random.h ${CXXDIST}/${G_CPU_OPT_BITS_RANDOM} \ 38 basic_file.h ${CXXDIST}/${G_BASIC_FILE_H} \ 39 c++allocator.h ${CXXDIST}/${G_ALLOCATOR_H} \ 40 c++locale.h ${CXXDIST}/${G_CLOCALE_H} \ 41 c++io.h ${CXXDIST}/${G_CSTDIO_H} \ 42 messages_members.h ${CXXDIST}/${G_CMESSAGES_H} \ 43 time_members.h ${CXXDIST}/${G_CTIME_H} 44 45 .for _h _s in ${COPYHEADERS} 46 ${_h}: ${_s} 47 cp -pf ${.ALLSRC} ${.TARGET} 48 .endfor 49 50 # Get default targets including <bsd.inc.mk>. 51 .include <bsd.prog.mk> 52 53 .PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 54 ${DIST}/libstdc++-v3/include \ 55 ${DIST}/libstdc++-v3/config \ 56 ${DIST}/libstdc++-v3/ \ 57 ${DIST}/libstdc++-v3/libsupc++ 58 59 .include <bsd.subdir.mk> 60