version 1.4, 2003/11/08 12:35:08 |
version 1.7, 2003/11/14 03:20:07 |
|
|
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.3 2003/11/07 13:41:37 iwane Exp $ |
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.6 2003/11/12 13:31:45 iwane Exp $ |
# |
# |
# |
# |
# |
# |
|
|
|
|
PROG=ox_ntl |
PROG=ox_ntl |
|
|
|
OpenXM_HOME=${PWD}/../.. |
|
|
CPP=g++ |
CPP=g++ |
CC =gcc |
CC =gcc |
|
|
Line 24 MASTER_CITES=ftp.math.sci.kobe-u.ac.jp |
|
Line 26 MASTER_CITES=ftp.math.sci.kobe-u.ac.jp |
|
NTL_LIBDIR=$(PREFIX)/lib/NTL |
NTL_LIBDIR=$(PREFIX)/lib/NTL |
LIBDIR=$(PREFIX)/lib |
LIBDIR=$(PREFIX)/lib |
|
|
DISTDIR=$(PWD)/distfile |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
DISTFILEDIR=ntl-5.3.1 |
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 |
|
|
clean: |
clean: |
-$(RM) -f $(OBJC) $(PROG) ox_ntl_debug oxserv_debug |
-$(RM) -f $(OBJC) $(PROG) ox_ntl_debug oxserv_debug |
-$(RM) -fr ${WORK} |
-$(RM) -fr ${WORK} |
-$(RM) -f .*-ntl-done |
@-$(RM) -f .*-ntl-done |
|
|
|
|
pre-fetch-ntl: |
fetch-ntl: |
@if [ ! -f .pre-fetch-ntl-done ]; then\ |
@if [ ! -f .fetch-ntl-done ]; then \ |
mkdir -p ${DISTDIR} ${WORK}; \ |
${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/1.2.2/${DISTFILE} ${DISTDIR}; \ |
touch .pre-fetch-ntl-done; \ |
touch .fetch-ntl-done; \ |
fi |
fi |
|
|
fetch-ntl: pre-fetch-ntl |
extract-ntl: fetch-ntl |
@if [ ! -f .fetch-ntl-done ]; then \ |
-mkdir work |
if [ ! -f ${DISTDIR}/${DISTFILE} ]; then \ |
@if [ ! -f .extract-ntl-done ]; 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 .extract-ntl-done; \ |
fi |
fi |
|
|
patch-ntl: fetch-ntl |
patch-ntl: extract-ntl |
@if [ ! -f .patch-ntl-done ]; then \ |
@if [ ! -f .patch-ntl-done ]; then \ |
touch .patch-ntl-done; \ |
touch .patch-ntl-done; \ |
fi |
fi |
Line 101 patch-ntl: fetch-ntl |
|
Line 101 patch-ntl: fetch-ntl |
|
|
|
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} ${GMPOPT}; make); \ |
(cd ${WORK}/${DISTFILEDIR}/src; \ |
|
LD_LIBRARY_PATH=${OpenXM_HOME}/lib; \ |
|
export LD_LIBRARY_PATH; \ |
|
./configure LIBDIR=${NTL_LIBDIR} PREFIX=${PREFIX} ${GMPOPT}; make); \ |
touch .build-ntl-done; \ |
touch .build-ntl-done; \ |
fi |
fi |
|
|