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