Home | History | Annotate | Line # | Download | only in bits
Makefile revision 1.17
      1 #	$NetBSD: Makefile,v 1.17 2016/03/20 21:14:21 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 gthr-default.h
     13 
     14 # XXXGCC5 bootstrap
     15 INCS=		${G_bits_headers:Nbits/regex_cursor.h:Nbits/regex_grep_matcher.h:Nbits/regex_grep_matcher.tcc:Nbits/regex_nfa.h:Nbits/regex_nfa.tcc} ${G_c_base_headers_extra} ${G_host_headers}
     16 INCS+=		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 # gthr-default.h is a little special
     46 .for _src _dst in ${G_CONFIGLINKS}
     47 . if ${_dst} == "gthr-default.h"
     48 COPYHEADERS+=	${_dst} ${_src}
     49 . endif
     50 .endfor
     51 
     52 .for _h _s in ${COPYHEADERS}
     53 ${_h}: ${_s}
     54 	cp -pf ${.ALLSRC} ${.TARGET}
     55 .endfor
     56 
     57 # Get default targets including <bsd.inc.mk>.
     58 .include <bsd.prog.mk>
     59 
     60 .PATH: ${.CURDIR}/../../arch/${GCC_MACHINE_ARCH} \
     61 	${DIST}/libstdc++-v3/include \
     62 	${DIST}/libstdc++-v3/config \
     63 	${DIST}/libstdc++-v3/ \
     64 	${DIST}/libstdc++-v3/libsupc++
     65 
     66 .include <bsd.subdir.mk>
     67