Makefile revision 1.6
1# $NetBSD: Makefile,v 1.6 2017/11/14 00:54:38 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 9GNUHOSTDIST= ${DIST} 10 11BUILDINCS= basic_file.h c++allocator.h c++io.h c++locale.h 12BUILDINCS+= messages_members.h time_members.h opt_random.h gthr-default.h 13 14INCS= ${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers} 15INCS+= gthr.h gthr-single.h gthr-posix.h 16INCS+= ${BUILDINCS} 17 18# libsupc++ 19INCS+= nested_exception.h hash_bytes.h atomic_lockfree_defines.h 20INCS+= cxxabi_forced.h exception_defines.h exception_ptr.h 21 22.if ${MKCOMPAT} != no && !empty(MACHINE_ARCH:M*64*) 23SUBDIR+= arch 24.else 25INCS+= c++config.h 26.endif 27 28INCSDIR= /usr/include/g++/bits 29 30.include "${.CURDIR}/../Makefile.includes" 31 32CLEANFILES+= ${BUILDINCS} 33 34CXXDIST= ${DIST}/libstdc++-v3 35COPYHEADERS= \ 36 opt_random.h ${CXXDIST}/${G_CPU_OPT_BITS_RANDOM} \ 37 basic_file.h ${CXXDIST}/${G_BASIC_FILE_H} \ 38 c++allocator.h ${CXXDIST}/${G_ALLOCATOR_H} \ 39 c++locale.h ${CXXDIST}/${G_CLOCALE_H} \ 40 c++io.h ${CXXDIST}/${G_CSTDIO_H} \ 41 messages_members.h ${CXXDIST}/${G_CMESSAGES_H} \ 42 time_members.h ${CXXDIST}/${G_CTIME_H} 43 44# gthr-default.h is a little special 45.for _src _dst in ${G_CONFIGLINKS} 46. if ${_dst} == "gthr-default.h" 47COPYHEADERS+= ${_dst} ${_src} 48. endif 49.endfor 50 51.for _h _s in ${COPYHEADERS} 52${_h}: ${_s} 53 cp -pf ${.ALLSRC} ${.TARGET} 54.endfor 55 56# Get default targets including <bsd.inc.mk>. 57.include <bsd.prog.mk> 58 59.PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \ 60 ${DIST}/libstdc++-v3/include \ 61 ${DIST}/libstdc++-v3/config \ 62 ${DIST}/libstdc++-v3/ \ 63 ${DIST}/libstdc++-v3/libsupc++ 64 65.include <bsd.subdir.mk> 66