1# $NetBSD: Makefile,v 1.1 2014/03/01 10:00:47 mrg 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# XXX arm variants are missing, but hopefully won't need them 21# until aarch64 anyway. 22 23 24# now install the generated front end 25 26c++config.h: Makefile mkcxxconfig_h.sh 27 ${HOST_SH} ${.CURDIR}/mkcxxconfig_h.sh ${CXXCONFIGARGS} > ${.TARGET}.tmp && \ 28 mv ${.TARGET}.tmp ${.TARGET} 29CLEANFILES+= c++config.h 30 31INCS+= c++config.h 32#INCSNAME_c++config.h= cxxconfig.h 33INCSDIR= /usr/include/g++/bits 34 35.include <bsd.subdir.mk> 36.include <bsd.inc.mk> 37.include <bsd.files.mk> 38