version 1.1, 2003/11/03 03:11:21 |
version 1.3, 2003/11/07 13:41:37 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.2 2003/11/03 22:06:09 ohara Exp $ |
# |
# |
# |
# |
# |
# |
Line 29 DISTFILEDIR=ntl-5.3.1 |
|
Line 29 DISTFILEDIR=ntl-5.3.1 |
|
DISTFILE=ntl-5.3.1.tar.gz |
DISTFILE=ntl-5.3.1.tar.gz |
WORK=$(PWD)/work |
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 |
.SUFFIXES: .cpp .o .c |
|
|
|
|
|
|
fetch-ntl: pre-fetch-ntl |
fetch-ntl: pre-fetch-ntl |
@if [ ! -f .fetch-ntl-done ]; then \ |
@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}); \ |
(cd ${WORK}; tar xvzf ${DISTDIR}/${DISTFILE}); \ |
touch .fetch-ntl-done; \ |
touch .fetch-ntl-done; \ |
fi |
fi |
Line 82 patch-ntl: fetch-ntl |
|
Line 85 patch-ntl: fetch-ntl |
|
@if [ ! -f .patch-ntl-done ]; then \ |
@if [ ! -f .patch-ntl-done ]; then \ |
touch .patch-ntl-done; \ |
touch .patch-ntl-done; \ |
fi |
fi |
|
|
|
|
|
|
build-ntl: patch-ntl |
build-ntl: patch-ntl |
@if [ ! -f .build-ntl-done ]; then \ |
@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; \ |
touch .build-ntl-done; \ |
fi |
fi |
|
|