version 1.24, 2005/07/14 02:56:52 |
version 1.39, 2021/03/24 18:25:37 |
|
|
# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.23 2003/09/02 14:26:07 takayama Exp $ |
# $OpenXM: OpenXM/src/asir2000/Makefile,v 1.38 2019/03/26 08:07:18 ohara Exp $ |
|
|
OpenXM_HOME=../.. |
OpenXM_HOME=../.. |
PREFIX=${OpenXM_HOME} |
PREFIX=${OpenXM_HOME} |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
DISTDIR=${OpenXM_HOME}/../OpenXM_dist |
MASTER_SITE=ftp://ftp.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
MASTER_SITE=http://www.math.kobe-u.ac.jp/pub/OpenXM/misc/ |
# Original. http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ |
# Original. http://www.hboehm.info/gc/gc_source |
DISTNAME=gc6.5 |
DISTNAME=gc-7.4.18 |
DISTFILES=${DISTNAME}.tar.gz |
DISTFILES=${DISTNAME}.tar.gz libatomic_ops-7.4.14.tar.gz |
|
|
ASIR = ../../../OpenXM_contrib2/asir2000 |
ASIR = ../../../OpenXM_contrib2/asir2000 |
ASIR_PARI = ../../../OpenXM_contrib2/asir2000-pari |
|
ASIR_SMALL = ../../../OpenXM_contrib2/asir2000-small |
|
PARI = ../pari |
PARI = ../pari |
|
|
all: configure install-pari |
all: configure install-pari |
@if [ ! -f ./.make_done ]; then \ |
@if [ ! -f ./.make_done ]; then \ |
(cd $(ASIR) ; make all) \ |
(cd ${ASIR} ; ${MAKE} all) \ |
fi |
fi |
@touch ./.make_done |
@touch ./.make_done |
|
|
with-pari: configure-with-pari |
all-nox: configure-nox install-pari |
@if [ ! -f ./.make_with_pari_done ]; then \ |
@if [ ! -f ./.make_done ]; then \ |
(cd $(ASIR_PARI) ; make all) \ |
(cd ${ASIR} ; ${MAKE} all) \ |
fi |
fi |
@touch ./.make_with_pari_done |
@touch ./.make_done |
|
|
small: configure-small |
|
@if [ ! -f ./.make_small_done ]; then \ |
|
(cd $(ASIR_SMALL) ; make all) \ |
|
fi |
|
@touch ./.make_small_done |
|
|
|
install-xmkmf: all |
|
(cd $(ASIR) ; make install-bin-lib ; make install-libasir ; make install-libgc ; make install-include ) |
|
|
|
install: all |
install: all |
(cd $(ASIR) ; make install-openxm) |
(cd ${ASIR} ; ${MAKE} install-openxm) |
|
# cp -p asir2000 ${PREFIX}/bin/ |
|
|
install-lib-with-pari: with-pari |
|
(cd $(ASIR_PARI) ; make install-libasir) |
|
|
|
install-lib-small: small |
|
(cd $(ASIR_SMALL) ; make install-libasir) |
|
|
|
install-libasir-gc: configure |
|
(cd $(ASIR) ; make install-libasir-gc) |
|
|
|
clean: |
clean: |
(cd $(ASIR) ; make clean) |
(cd ${ASIR} ; ${MAKE} clean) |
-@if [ -d $(ASIR_PARI) ]; then (cd $(ASIR_PARI) ; make clean) fi |
|
-@if [ -d $(ASIR_SMALL) ]; then (cd $(ASIR_SMALL) ; make clean) fi |
|
@rm -f ./.make_* ./.configure_* ./.install-* ./.fetch* |
@rm -f ./.make_* ./.configure_* ./.install-* ./.fetch* |
|
|
distclean: clean |
distclean: clean |
@rm -rf $(ASIR_PARI) |
|
@rm -rf $(ASIR_SMALL) |
|
@cat BINARIES | xargs -t rm -rf |
@cat BINARIES | xargs -t rm -rf |
|
|
fetch: |
fetch: |
@if [ ! -f .fetch_done ]; then \ |
@if [ ! -f .fetch_done ]; then \ |
${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}${DISTFILES} ${DISTDIR}; \ |
for i in ${DISTFILES}; do \ |
|
${OpenXM_HOME}/bin/oxfetch.sh ${MASTER_SITE}$$i ${DISTDIR}; \ |
|
done \ |
fi |
fi |
@touch .fetch_done |
@touch .fetch_done |
|
|
configure: fetch |
configure: fetch |
@if [ ! -f ./.configure_done ]; then \ |
@if [ ! -f ./.configure_done ]; then \ |
(cd $(ASIR) ; \ |
(cd $(ASIR) ; \ |
./configure --enable-plot --with-pari --prefix="`cd ../../OpenXM; pwd`") \ |
./configure --enable-plot --prefix="`cd ../../OpenXM; pwd`") \ |
fi |
fi |
@touch ./.configure_done |
@touch ./.configure_done |
|
|
configure-with-pari: configure |
configure-nox: fetch |
-@if [ ! -f ./.configure_with_pari_done ]; then \ |
@if [ ! -f ./.configure_done ]; then \ |
mkdir $(ASIR_PARI) ; \ |
(cd $(ASIR) ; \ |
(cd $(ASIR_PARI) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; \ |
./configure --disable-plot --prefix="`cd ../../OpenXM; pwd`") \ |
rm -f config.status config.log ; \ |
|
./configure --with-pari --prefix="`cd ../../OpenXM; pwd`") \ |
|
fi |
fi |
@touch ./.configure_with_pari_done |
@touch ./.configure_done |
|
|
configure-small: configure |
configure-static: fetch |
-@if [ ! -f ./.configure_small_done ]; then \ |
@if [ ! -f ./.configure_done ]; then \ |
mkdir $(ASIR_SMALL) ; \ |
(cd $(ASIR) ; \ |
(cd $(ASIR_SMALL) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; \ |
./configure --enable-static-gmp --enable-plot --prefix="`cd ../../OpenXM; pwd`") \ |
rm -f config.status config.log ; \ |
|
./configure --prefix="`cd ../../OpenXM; pwd`") \ |
|
fi |
fi |
@touch ./.configure_small_done |
@touch ./.configure_done |
|
|
configure-xmkmf: |
configure-interval: fetch |
@if [ ! -f ./.configure_done ]; then \ |
@if [ ! -f ./.configure_done ]; then \ |
(cd $(ASIR) ; ./configure-xmkmf -plot -pari ) \ |
(cd $(ASIR) ; \ |
|
./configure --enable-plot --enable-interval --prefix="`cd ../../OpenXM; pwd`") \ |
fi |
fi |
@touch ./.configure_done |
@touch ./.configure_done |
|
|
configure-xmkmf-with-pari: configure-xmkmf |
|
-@if [ ! -f ./.configure_with_pari_done ]; then \ |
|
mkdir $(ASIR_PARI) ; \ |
|
(cd $(ASIR_PARI) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; ./configure-xmkmf -pari ) \ |
|
fi |
|
@touch ./.configure_with_pari_done |
|
|
|
configure-xmkmf-small: configure-xmkmf |
|
-@if [ ! -f ./.configure_small_done ]; then \ |
|
mkdir $(ASIR_SMALL) ; \ |
|
(cd $(ASIR_SMALL) ; ../../OpenXM/bin/lndir.sh ../asir2000 ; ./configure-xmkmf ) \ |
|
fi |
|
@touch ./.configure_small_done |
|
|
|
install-pari: |
install-pari: |
@if [ ! -f ./.install-pari_done ]; then \ |
@if [ ! -f ./.install-pari_done ]; then \ |
(cd $(PARI) ; make install) \ |
(cd ${PARI} ; ${MAKE} install) \ |
fi |
fi |
@touch ./.install-pari_done |
@touch ./.install-pari_done |