=================================================================== RCS file: /home/cvs/OpenXM/src/ox_ntl/Attic/Makefile,v retrieving revision 1.1 retrieving revision 1.3 diff -u -p -r1.1 -r1.3 --- OpenXM/src/ox_ntl/Attic/Makefile 2003/11/03 03:11:21 1.1 +++ OpenXM/src/ox_ntl/Attic/Makefile 2003/11/07 13:41:37 1.3 @@ -1,4 +1,4 @@ -# $OpenXM$ +# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.2 2003/11/03 22:06:09 ohara Exp $ # # # @@ -29,6 +29,7 @@ DISTFILEDIR=ntl-5.3.1 DISTFILE=ntl-5.3.1.tar.gz WORK=$(PWD)/work +GMPOPT=NTL_GMP_LIP=on GMP_PREFIX=${OpenXM_HOME} GMP_INCDIR=${OpenXM_HOME}/include GMP_LIBDIR=${OpenXM_HOME}/lib .SUFFIXES: .cpp .o .c @@ -73,7 +74,9 @@ pre-fetch-ntl: fetch-ntl: pre-fetch-ntl @if [ ! -f .fetch-ntl-done ]; then \ - (cd ${DISTDIR}; wget --passive-ftp ftp://$(MASTER_CITES)/pub/OpenXM/misc/1.2.2/$(DISTFILE)); \ + if [ ! -f ${DISTDIR}/${DISTFILE} ]; then \ + (cd ${DISTDIR}; wget --no-directories --passive-ftp ftp://$(MASTER_CITES)/pub/OpenXM/misc/1.2.2/$(DISTFILE)) ; \ + fi ; \ (cd ${WORK}; tar xvzf ${DISTDIR}/${DISTFILE}); \ touch .fetch-ntl-done; \ fi @@ -82,11 +85,11 @@ patch-ntl: fetch-ntl @if [ ! -f .patch-ntl-done ]; then \ touch .patch-ntl-done; \ fi - + build-ntl: patch-ntl @if [ ! -f .build-ntl-done ]; then \ - (cd ${WORK}/${DISTFILEDIR}/src; ./configure LIBDIR=${NTL_LIBDIR} PREFIX=${PREFIX}; make); \ + (cd ${WORK}/${DISTFILEDIR}/src; ./configure LIBDIR=${NTL_LIBDIR} PREFIX=${PREFIX} ${GMPOPT}; make); \ touch .build-ntl-done; \ fi