1#	$NetBSD: Makefile,v 1.2 2003/07/26 14:55:15 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}/gnu/dist/gcc4
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}
13INCSDIR=	/usr/include/g++/bits
14
15CLEANFILES+=	basic_file.h c++io.h c++locale.h
16
17basic_file.h: ${CONF}/io/basic_file_stdio.h
18	cp $> ${.TARGET}
19c++io.h: ${CONF}/io/c_io_stdio.h
20	cp $> ${.TARGET}
21c++locale.h: ${CONF}/locale/generic/c_locale.h
22	cp $> ${.TARGET}
23
24# List of places to find cpu files; maybe do this differently from
25# mknative?
26BITS_CPUDIR.sparc64=sparc
27
28_DIR=${BITS_CPUDIR.${MACHINE_ARCH}}
29.if ${_DIR} != ""
30BITS_CPUDIR=${BITS_CPUDIR.${MACHINE_ARCH}}
31.else
32BITS_CPUDIR=${MACHINE_GNU_ARCH}
33.endif
34
35.PATH:	${DIST}/libstdc++-v3/include/bits \
36	${DIST}/libstdc++-v3/include/c_std \
37	${CONF}/os/bsd/netbsd \
38	${CONF}/io \
39	${CONF}/cpu/${BITS_CPUDIR} \
40	${CONF}/cpu/generic \
41	${CONF}/locale/generic \
42	${.CURDIR}/../../arch/${MACHINE_ARCH}
43
44# Get default targets including <bsd.inc.mk>.
45.include <bsd.prog.mk>
46