xref: /minix/tools/gmp/Makefile (revision ebfedea0)
1#	$NetBSD: Makefile,v 1.2 2012/04/12 01:05:31 mrg Exp $
2#
3
4GNUHOSTDIST=   ${.CURDIR}/../../external/lgpl3/gmp/dist
5
6CONFIGURE_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.
13CONFIGURE_ENV:=	${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \
14		PATH="${TOOLDIR:Q}/bin:$$$$PATH"
15
16.if ${HOST_OSTYPE:C/\-.*//} != "Minix"
17# Force avoiding possibly non-executable install-sh.
18CONFIGURE_ENV+=	ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
19.endif
20