1 # $NetBSD: Makefile,v 1.4 2020/09/26 20:56:53 mrg Exp $ 2 # 3 4 GNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/gmp/dist 5 6 CONFIGURE_ARGS+=--disable-shared 7 8 .include "${.CURDIR}/../Makefile.gnuhost" 9 10 # Don't override CFLAGS and CXXFLAGS, it breaks ABI detection. 11 # PATH needs special treating since "make" tries to expand $PATH 12 # when variable is used. 13 CONFIGURE_ENV:= ${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \ 14 PATH="${TOOLDIR:Q}/bin:$$PATH" 15 16 # Force avoiding possibly non-executable install-sh. 17 CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" 18 19 # mknative-gmp support 20 # 21 # XXX early version; does not use mknative.common yet. 22 23 native-gmp: .native/.configure_done 24 @echo 'Extracting GNU GMP configury for a native toolchain.' 25 (cd ${.OBJDIR}/.native && \ 26 ${MAKE} -f ${.CURDIR}/../../external/lgpl3/gmp/Makefile.netbsd-gmp copy-files) 27 @echo 'HA HA, only joking. Manual fixes maybe needed now.' 28 29 .native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile 30 mkdir .native 2>/dev/null || true 31 (cd ${.OBJDIR}/.native && \ 32 ${MAKE} -f ${.CURDIR}/../../external/lgpl3/gmp/Makefile.netbsd-gmp all) 33