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