1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile,v 1.16 2014/06/23 18:37:45 christos Exp $ 218a5822eSThomas Veerman 384d9c625SLionel Sambuc.include <bsd.init.mk> 418a5822eSThomas Veerman 584d9c625SLionel Sambuc.include "${.CURDIR}/../../arch/${GCC_MACHINE_ARCH}/defs.mk" 618a5822eSThomas Veerman 718a5822eSThomas Veerman.cc: # disable .cc->NULL transform 818a5822eSThomas Veerman 9*0a6a1f1dSLionel SambucGNUHOSTDIST= ${DIST} 1018a5822eSThomas Veerman 11*0a6a1f1dSLionel SambucBUILDINCS= basic_file.h c++allocator.h c++io.h c++locale.h 12*0a6a1f1dSLionel SambucBUILDINCS+= messages_members.h time_members.h opt_random.h gthr-default.h 1318a5822eSThomas Veerman 14*0a6a1f1dSLionel SambucINCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers} 15*0a6a1f1dSLionel SambucINCS+= gthr.h gthr-single.h gthr-posix.h 16*0a6a1f1dSLionel SambucINCS+= ${BUILDINCS} 1718a5822eSThomas Veerman 18*0a6a1f1dSLionel Sambuc# libsupc++ 19*0a6a1f1dSLionel SambucINCS+= nested_exception.h hash_bytes.h atomic_lockfree_defines.h 20*0a6a1f1dSLionel SambucINCS+= cxxabi_forced.h exception_defines.h exception_ptr.h 2118a5822eSThomas Veerman 22*0a6a1f1dSLionel Sambuc.if ${MKCOMPAT} != no && !empty(MACHINE_ARCH:M*64*) 23*0a6a1f1dSLionel SambucSUBDIR+= arch 2418a5822eSThomas Veerman.else 25*0a6a1f1dSLionel SambucINCS+= c++config.h 2618a5822eSThomas Veerman.endif 2718a5822eSThomas Veerman 28*0a6a1f1dSLionel SambucINCSDIR= /usr/include/g++/bits 29*0a6a1f1dSLionel Sambuc 30*0a6a1f1dSLionel Sambuc.include "${.CURDIR}/../Makefile.includes" 31*0a6a1f1dSLionel Sambuc 32*0a6a1f1dSLionel SambucCLEANFILES+= {BUILDINCS} 33*0a6a1f1dSLionel Sambuc 34*0a6a1f1dSLionel SambucCXXDIST= ${DIST}/libstdc++-v3 35*0a6a1f1dSLionel SambucCOPYHEADERS= \ 36*0a6a1f1dSLionel Sambuc opt_random.h ${CXXDIST}/${G_CPU_OPT_BITS_RANDOM} \ 37*0a6a1f1dSLionel Sambuc basic_file.h ${CXXDIST}/${G_BASIC_FILE_H} \ 38*0a6a1f1dSLionel Sambuc c++allocator.h ${CXXDIST}/${G_ALLOCATOR_H} \ 39*0a6a1f1dSLionel Sambuc c++locale.h ${CXXDIST}/${G_CLOCALE_H} \ 40*0a6a1f1dSLionel Sambuc c++io.h ${CXXDIST}/${G_CSTDIO_H} \ 41*0a6a1f1dSLionel Sambuc messages_members.h ${CXXDIST}/${G_CMESSAGES_H} \ 42*0a6a1f1dSLionel Sambuc time_members.h ${CXXDIST}/${G_CTIME_H} 43*0a6a1f1dSLionel Sambuc 44*0a6a1f1dSLionel Sambuc# gthr-default.h is a little special 45*0a6a1f1dSLionel Sambuc.for _src _dst in ${G_CONFIGLINKS} 46*0a6a1f1dSLionel Sambuc. if ${_dst} == "gthr-default.h" 47*0a6a1f1dSLionel SambucCOPYHEADERS+= ${_dst} ${_src} 48*0a6a1f1dSLionel Sambuc. endif 49*0a6a1f1dSLionel Sambuc.endfor 50*0a6a1f1dSLionel Sambuc 51*0a6a1f1dSLionel Sambuc.for _h _s in ${COPYHEADERS} 52*0a6a1f1dSLionel Sambuc${_h}: ${_s} 53*0a6a1f1dSLionel Sambuc cp -pf ${.ALLSRC} ${.TARGET} 54*0a6a1f1dSLionel Sambuc.endfor 5518a5822eSThomas Veerman 5618a5822eSThomas Veerman# Get default targets including <bsd.inc.mk>. 5718a5822eSThomas Veerman.include <bsd.prog.mk> 58*0a6a1f1dSLionel Sambuc 59*0a6a1f1dSLionel Sambuc.PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 60*0a6a1f1dSLionel Sambuc ${DIST}/libstdc++-v3/include \ 61*0a6a1f1dSLionel Sambuc ${DIST}/libstdc++-v3/config \ 62*0a6a1f1dSLionel Sambuc ${DIST}/libstdc++-v3/ \ 63*0a6a1f1dSLionel Sambuc ${DIST}/libstdc++-v3/libsupc++ 64*0a6a1f1dSLionel Sambuc 65*0a6a1f1dSLionel Sambuc.include <bsd.subdir.mk> 66