1#	$NetBSD: Makefile,v 1.1 2003/07/25 16:32:50 mrg Exp $
2
3SUBDIR=		backward ext bits debug tr1
4#SUBDIR+=	pb_assoc
5
6.include <bsd.own.mk>
7
8.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
9
10.cc: # disable .cc->NULL transform
11
12DIST=		${NETBSDSRCDIR}/gnu/dist/gcc4
13
14INCS=		exception new typeinfo cxxabi.h exception_defines.h
15INCS+=		${G_std_headers_rename} ${G_c_base_headers_rename}
16INCS+=		${G_c_compatibility_headers_extra}
17INCSDIR=	/usr/include/g++
18
19${G_std_headers_rename}: ${.CURDIR}/Makefile
20	cp ${DIST}/libstdc++-v3/include/std/std_${.TARGET}.h ${.TARGET}
21
22CLEANFILES+=	${G_std_headers_rename} ${G_c_base_headers_rename}
23
24.PATH: ${DIST}/libstdc++-v3 ${DIST}/libstdc++-v3/libsupc++
25
26# Get default targets including <bsd.inc.mk>.
27.include <bsd.prog.mk>
28.include <bsd.subdir.mk>
29
30${G_c_base_headers_rename}: ${.CURDIR}/Makefile
31	cp ${DIST}/libstdc++-v3/include/c_std/std_${.TARGET}.h ${.TARGET}
32
33
34