Home | History | Annotate | Line # | Download | only in bits
Makefile revision 1.11
      1 #	$NetBSD: Makefile,v 1.11 2014/03/01 22:49:43 mrg Exp $
      2 
      3 .include <bsd.own.mk>
      4 .include <bsd.init.mk>
      5 
      6 .include "${.CURDIR}/../../arch/${GCC_MACHINE_ARCH}/defs.mk"
      7 
      8 .cc: # disable .cc->NULL transform
      9 
     10 DIST=		${NETBSDSRCDIR}/external/gpl3/gcc/dist
     11 
     12 BUILDINCS=	basic_file.h c++allocator.h c++io.h c++locale.h
     13 BUILDINCS+=	messages_members.h time_members.h opt_random.h
     14 
     15 INCS=		${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers}
     16 INCS+=		gthr.h gthr-single.h gthr-posix.h gthr-default.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
     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 # XXX these rules don't always work if the ${.TARGET} ends up being the
     36 #     copy in ../../arch/$arch/ and that version is older.  (but will
     37 #     only break read-only source builds.)
     38 opt_random.h:	${G_CPU_OPT_BITS_RANDOM}
     39 	cp -p ${.ALLSRC} ${.TARGET}
     40 basic_file.h:	${G_BASIC_FILE_H}
     41 	cp -p ${.ALLSRC} ${.TARGET}
     42 c++allocator.h:	${G_ALLOCATOR_H}
     43 	cp -p ${.ALLSRC} ${.TARGET}
     44 c++locale.h:	$(G_CLOCALE_H)
     45 	cp -p ${.ALLSRC} ${.TARGET}
     46 c++io.h:	$(G_CSTDIO_H)
     47 	cp -p ${.ALLSRC} ${.TARGET}
     48 messages_members.h:	$(G_CMESSAGES_H)
     49 	cp -p ${.ALLSRC} ${.TARGET}
     50 time_members.h:	$(G_CTIME_H)
     51 	cp -p ${.ALLSRC} ${.TARGET}
     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 # Get default targets including <bsd.inc.mk>.
     60 .include <bsd.prog.mk>
     61 .include <bsd.subdir.mk>
     62