Home | History | Annotate | Line # | Download | only in bits
Makefile revision 1.4.8.2
      1 #	$NetBSD: Makefile,v 1.4.8.2 2014/08/19 23:56:55 tls 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 INCS=		${G_bits_headers} ${G_c_base_headers_extra} ${G_host_headers}
     15 INCS+=		gthr.h gthr-single.h gthr-posix.h
     16 INCS+=		${BUILDINCS}
     17 
     18 # libsupc++
     19 INCS+=		nested_exception.h hash_bytes.h atomic_lockfree_defines.h
     20 INCS+=		cxxabi_forced.h	exception_defines.h exception_ptr.h
     21 
     22 .if ${MKCOMPAT} != no && !empty(MACHINE_ARCH:M*64*)
     23 SUBDIR+=	arch
     24 .else
     25 INCS+=		c++config.h
     26 .endif
     27 
     28 INCSDIR=	/usr/include/g++/bits
     29 
     30 .include "${.CURDIR}/../Makefile.includes"
     31 
     32 CLEANFILES+=	{BUILDINCS}
     33 
     34 CXXDIST=			${DIST}/libstdc++-v3
     35 COPYHEADERS= \
     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"
     47 COPYHEADERS+=	${_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