1#	$NetBSD: Makefile,v 1.3 2011/06/28 04:07:36 mrg Exp $
2
3.include <bsd.own.mk>
4
5.include "${.CURDIR}/../../arch/${MACHINE_ARCH}/defs.mk"
6
7.cc: # disable .cc->NULL transform
8
9DIST=		${NETBSDSRCDIR}/external/gpl3/gcc/dist
10CONF=		${DIST}/libstdc++-v3/config
11
12INCS=		${G_bits_headers} ${G_c_base_headers_extra} ${G_thread_host_headers} ${G_host_headers_extra} ${G_host_headers}
13INCS+=		c++config.h
14INCSDIR=	/usr/include/g++/bits
15
16CLEANFILES+=	basic_file.h c++io.h c++locale.h
17
18basic_file.h: ${CONF}/io/basic_file_stdio.h
19	cp $> ${.TARGET}
20c++io.h: ${CONF}/io/c_io_stdio.h
21	cp $> ${.TARGET}
22c++locale.h: ${CONF}/locale/generic/c_locale.h
23	cp $> ${.TARGET}
24
25# List of places to find cpu files; maybe do this differently from
26# mknative?
27BITS_CPUDIR.sparc64=sparc
28
29_DIR=${BITS_CPUDIR.${MACHINE_ARCH}}
30.if ${_DIR} != ""
31BITS_CPUDIR=${BITS_CPUDIR.${MACHINE_ARCH}}
32.else
33BITS_CPUDIR=${MACHINE_GNU_ARCH}
34.endif
35
36.PATH:	${DIST}/libstdc++-v3/include/bits \
37	${DIST}/libstdc++-v3/include/c_std \
38	${DIST}/libstdc++-v3/include/precompiled \
39	${CONF}/os/bsd/netbsd \
40	${CONF}/os/generic \
41	${CONF}/io \
42	${CONF}/cpu/${BITS_CPUDIR} \
43	${CONF}/cpu/generic \
44	${CONF}/locale/generic \
45	${.CURDIR}/../../arch/${MACHINE_ARCH}
46
47# Get default targets including <bsd.inc.mk>.
48.include <bsd.prog.mk>
49