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