xref: /minix3/external/gpl3/gcc/lib/libstdc++-v3/include/bits/arch/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1#	$NetBSD: Makefile,v 1.3 2014/09/19 17:23:24 matt Exp $
2
3# install multilib c++config.h files
4
5.if ${MACHINE_ARCH} == "sparc64"
6SUBDIR=		sparc sparc64
7CXXCONFIGARGS=	sparc64 _LP64 sparc
8.endif
9
10.if ${MACHINE_ARCH} == "x86_64"
11SUBDIR=		i386 x86_64
12CXXCONFIGARGS=	x86_64 _LP64 i386
13.endif
14
15.if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
16SUBDIR=		mips64 mips32 mipso32
17CXXCONFIGARGS=	mips64 _ABI64 mipso32 _ABIO32 mips32
18.endif
19
20.if ${MACHINE_ARCH} == "powerpc64"
21SUBDIR=		powerpc powerpc64
22CXXCONFIGARGS=	powerpc64 _LP64 powerpc
23.endif
24
25.if ${MACHINE_ARCH} == "riscv64"
26SUBDIR=		riscv32 riscv64
27CXXCONFIGARGS=	riscv64 _LP64 riscv32
28.endif
29
30# XXX arm variants are missing, but hopefully won't need them
31# until aarch64 anyway.
32
33
34# now install the generated front end
35
36c++config.h: Makefile mkcxxconfig_h.sh
37	${HOST_SH} ${.CURDIR}/mkcxxconfig_h.sh ${CXXCONFIGARGS} > ${.TARGET}.tmp && \
38	    mv ${.TARGET}.tmp ${.TARGET}
39CLEANFILES+=	c++config.h
40
41INCS+=			c++config.h
42#INCSNAME_c++config.h=	cxxconfig.h
43INCSDIR=		/usr/include/g++/bits
44
45.include <bsd.subdir.mk>
46.include <bsd.inc.mk>
47.include <bsd.files.mk>
48