1# $NetBSD: Makefile,v 1.9 2023/02/20 02:12:25 mrg Exp $ 2 3# install multilib c++config.h files 4.include <bsd.init.mk> 5 6.if ${MACHINE_ARCH} == "sparc64" 7SUBDIR= sparc sparc64 8CXXCONFIGARGS= sparc64 _LP64 sparc 9.endif 10 11.if ${MACHINE_ARCH} == "x86_64" 12SUBDIR= i386 x86_64 13CXXCONFIGARGS= x86_64 _LP64 i386 14.endif 15 16.if ${MACHINE_MIPS64} 17SUBDIR= mips64 mips32 mipso32 18CXXCONFIGARGS= mips64 _ABI64 mipso32 _ABIO32 mips32 19.endif 20 21.if ${MACHINE_ARCH} == "powerpc64" 22SUBDIR= powerpc powerpc64 23CXXCONFIGARGS= powerpc64 _LP64 powerpc 24.endif 25 26.if ${MACHINE_ARCH} == "riscv64" 27SUBDIR= riscv32 riscv64 28CXXCONFIGARGS= riscv64 _LP64 riscv32 29.endif 30 31# now install the generated front end 32 33c++config.h: Makefile mkcxxconfig_h.sh 34 ${HOST_SH} ${.CURDIR}/mkcxxconfig_h.sh ${CXXCONFIGARGS} > ${.TARGET}.tmp && \ 35 mv ${.TARGET}.tmp ${.TARGET} 36CLEANFILES+= c++config.h 37 38INCS+= c++config.h 39INCSDIR= /usr/include/g++/bits 40 41.include <bsd.subdir.mk> 42.include <bsd.inc.mk> 43.include <bsd.files.mk> 44