1# $NetBSD: Makefile,v 1.6 2021/04/25 15:08:28 christos 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.if ${MACHINE_ARCH} == "aarch64" 32SUBDIR= arm aarch64 33CXXCONFIGARGS= aarch64 _LP64 arm 34.endif 35 36# now install the generated front end 37 38c++config.h: Makefile mkcxxconfig_h.sh 39 ${HOST_SH} ${.CURDIR}/mkcxxconfig_h.sh ${CXXCONFIGARGS} > ${.TARGET}.tmp && \ 40 mv ${.TARGET}.tmp ${.TARGET} 41CLEANFILES+= c++config.h 42 43INCS+= c++config.h 44INCSDIR= /usr/include/g++/bits 45 46.include <bsd.subdir.mk> 47.include <bsd.inc.mk> 48.include <bsd.files.mk> 49