# $NetBSD: Makefile,v 1.7 2021/08/19 06:52:37 mrg Exp $ # install multilib c++config.h files .include .if ${MACHINE_ARCH} == "sparc64" SUBDIR= sparc sparc64 CXXCONFIGARGS= sparc64 _LP64 sparc .endif .if ${MACHINE_ARCH} == "x86_64" SUBDIR= i386 x86_64 CXXCONFIGARGS= x86_64 _LP64 i386 .endif .if ${MACHINE_MIPS64} SUBDIR= mips64 mips32 mipso32 CXXCONFIGARGS= mips64 _ABI64 mipso32 _ABIO32 mips32 .endif .if ${MACHINE_ARCH} == "powerpc64" SUBDIR= powerpc powerpc64 CXXCONFIGARGS= powerpc64 _LP64 powerpc .endif .if ${MACHINE_ARCH} == "riscv64" SUBDIR= riscv32 riscv64 CXXCONFIGARGS= riscv64 _LP64 riscv32 .endif # now install the generated front end c++config.h: Makefile mkcxxconfig_h.sh ${HOST_SH} ${.CURDIR}/mkcxxconfig_h.sh ${CXXCONFIGARGS} > ${.TARGET}.tmp && \ mv ${.TARGET}.tmp ${.TARGET} CLEANFILES+= c++config.h INCS+= c++config.h INCSDIR= /usr/include/g++/bits .include .include .include