Module Name: src
Committed By: mrg
Date: Sun Oct 30 01:50:39 UTC 2011
Added Files:
src/external/lgpl3/gmp: Makefile.netbsd-gmp
Log Message:
makefile frontend to run gmp configure under nbmake-$MACHINE.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/lgpl3/gmp/Makefile.netbsd-gmp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/external/lgpl3/gmp/Makefile.netbsd-gmp
diff -u /dev/null src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.1
--- /dev/null Sun Oct 30 01:50:39 2011
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp Sun Oct 30 01:50:32 2011
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile.netbsd-gmp,v 1.1 2011/10/30 01:50:32 mrg Exp $
+
+# hack makefile to help build gmp ./configure
+
+.include <bsd.own.mk>
+
+CCADDFLAGS= --sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include
+
+TARGET=hppa-netbsd
+#TARGET=mips64el-netbsd
+ENV_ARGS=\
+ CC=${CC:Q}' '${CCADDFLAGS:Q} \
+ CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \
+ AS=${AS:Q} AWK=${TOOL_AWK:Q} LD=${LD:Q} \
+ NM=${NM:Q} OBJDUMP=${OBJDUMP:Q} \
+ LIBS=-lintl
+
+all:
+ env ${ENV_ARGS} /usr/src3/external/lgpl3/gmp/dist/configure --host=${TARGET} --target=${TARGET}