Makefile revision 1.4
11.4Smrg# $NetBSD: Makefile,v 1.4 2020/09/26 20:56:53 mrg Exp $ 21.1Smrg# 31.1Smrg 41.1SmrgGNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/gmp/dist 51.1Smrg 61.1SmrgCONFIGURE_ARGS+=--disable-shared 71.1Smrg 81.1Smrg.include "${.CURDIR}/../Makefile.gnuhost" 91.1Smrg 101.1Smrg# Don't override CFLAGS and CXXFLAGS, it breaks ABI detection. 111.1Smrg# PATH needs special treating since "make" tries to expand $PATH 121.1Smrg# when variable is used. 131.1SmrgCONFIGURE_ENV:= ${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \ 141.3Schristos PATH="${TOOLDIR:Q}/bin:$$PATH" 151.2Smrg 161.2Smrg# Force avoiding possibly non-executable install-sh. 171.2SmrgCONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" 181.4Smrg 191.4Smrg# mknative-gmp support 201.4Smrg# 211.4Smrg# XXX early version; does not use mknative.common yet. 221.4Smrg 231.4Smrgnative-gmp: .native/.configure_done 241.4Smrg @echo 'Extracting GNU GMP configury for a native toolchain.' 251.4Smrg (cd ${.OBJDIR}/.native && \ 261.4Smrg ${MAKE} -f ${.CURDIR}/../../external/lgpl3/gmp/Makefile.netbsd-gmp copy-files) 271.4Smrg @echo 'HA HA, only joking. Manual fixes maybe needed now.' 281.4Smrg 291.4Smrg.native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile 301.4Smrg mkdir .native 2>/dev/null || true 311.4Smrg (cd ${.OBJDIR}/.native && \ 321.4Smrg ${MAKE} -f ${.CURDIR}/../../external/lgpl3/gmp/Makefile.netbsd-gmp all) 33