1# $NetBSD: Makefile.netbsd-gmp,v 1.3 2013/07/18 22:40:58 matt Exp $ 2 3# hack makefile to help build gmp ./configure 4 5.include <bsd.own.mk> 6 7CCADDFLAGS= --sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include 8 9TARGET?=${MACHINE_GNU_PLATFORM} 10#TARGET=mips64el-netbsd 11ENV_ARGS=\ 12 CC=${CC:Q}' '${CCADDFLAGS:Q} \ 13 CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \ 14 AS=${AS:Q} AWK=${TOOL_AWK:Q} LD=${LD:Q} \ 15 NM=${NM:Q} OBJDUMP=${OBJDUMP:Q} \ 16 LIBS=-lintl 17 18all: 19 env ${ENV_ARGS} ${NETBSDSRCDIR}/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET} 20