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