version 1.3, 1999/10/27 10:22:19 |
version 1.10, 2000/01/10 19:11:59 |
|
|
|
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.9 1999/11/27 13:24:40 takayama Exp $ |
|
|
## Type in make configure and make all to build all |
## Type in make configure and make all to build all |
all : |
OpenXM_contrib=../../../OpenXM_contrib |
(cd gc; make) |
OPENXM_CONTRIB=../../../OpenXM_contrib |
(cd gmp; make) |
GC=$(OPENXM_CONTRIB)/gc |
|
GMP=$(OPENXM_CONTRIB)/gmp |
|
|
|
all : all-gc all-gmp |
(cd plugin; make all) |
(cd plugin; make all) |
(cd Kan; make all) |
(cd Kan; make all) |
|
|
all2 : |
all2 : all-gc all-gmp |
(cd gc; make) |
|
(cd gmp; make) |
|
(cd Kan; make all) |
(cd Kan; make all) |
|
|
|
all-gc: |
|
(cd $(GC) ; make all) |
|
|
|
all-gmp: |
|
if test -f /usr/lib/libgmp.a ; \ |
|
then \ |
|
echo "Using /usr/lib/libgmp.a" ; \ |
|
/bin/rm -rf $(GMP)/libgmp.a ; \ |
|
ln -s /usr/lib/libgmp.a $(GMP)/libgmp.a ; \ |
|
else \ |
|
(cd $(GMP) ; make) ; \ |
|
fi |
|
|
|
|
|
|
### When you make sm1 without the garbage collector, type in make sm1.nogc |
### When you make sm1 without the garbage collector, type in make sm1.nogc |
sm1.nogc : |
sm1.nogc : |
(cd Kan; make sm1.nogc) |
(cd Kan; make sm1.nogc) |
|
|
configure : configure_symbolic_links |
configure : configure_symbolic_links |
(cd gmp; ./configure ) |
(cd $(GMP) ; ./configure ) |
|
|
configure_symbolic_links : |
configure_symbolic_links : |
ln -fs ./gc-4.14 gc |
/bin/rm -f gc gmp lib Doc/var.sm1 |
# ln -fs ./gmp-2.0.2 gmp |
ln -f -s $(OpenXM_contrib)/gc gc |
ln -fs ./gmp-2.0.2-ssh-2 gmp |
ln -f -s $(OpenXM_contrib)/gmp gmp |
ln -fs ./Doc lib |
# ln -f -s gmp-2.0.2-ssh-2 gmp |
|
ln -f -s ./Doc lib |
|
(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) |
|
|
### generate a distribution. |
### generate a distribution. |
dist : |
dist : |
|
|
echo "after 10 seconds. To cancel type in ctrl-C." |
echo "after 10 seconds. To cancel type in ctrl-C." |
( sleep 10 ; /bin/rm -rf ../kanbinary* ) |
( sleep 10 ; /bin/rm -rf ../kanbinary* ) |
install-openXM-bin : |
install-openXM-bin : |
|
/bin/rm -f ../bin/sm1 |
cp Kan/sm1 ../bin |
cp Kan/sm1 ../bin |
|
install2 : |
|
/bin/rm -f ../bin/sm1 |
|
ln -f -s ../src/kan96xx/Kan/sm1 ../bin/sm1 |
|
|
############## |
############## |
clean : |
clean : |
(cd gmp; make distclean) |
if test -f $(GMP)/Makefile ; \ |
(cd gc; make clean) |
then \ |
|
(cd $(GMP) ; make clean) ; \ |
|
fi |
|
if test -f $(GC)/Makefile ; \ |
|
then \ |
|
(cd $(GC); make clean) ; \ |
|
fi |
(cd Kan; make clean) |
(cd Kan; make clean) |
(cd plugin; make clean) |
(cd plugin; make clean) |
/bin/rm -f sm1 |
/bin/rm -f sm1 |
|
|
|
|
### clean also *.a files. |
### clean also *.a files. |
cleana : |
cleana: distclean |
(cd gmp; make distclean; /bin/rm -f *.a) |
|
(cd gc; make clean; /bin/rm -f *.a) |
distclean : |
|
if test -f $(GMP)/Makefile ; \ |
|
then \ |
|
(cd $(GMP) ; make distclean) ; \ |
|
fi |
|
if test -f $(GC)/Makefile ; \ |
|
then \ |
|
(cd $(GC); make clean; /bin/rm -f *.a) ; \ |
|
fi |
(cd Kan; make cleana) |
(cd Kan; make cleana) |
(cd plugin; make clean; /bin/rm -f *.a) |
(cd plugin; make clean; /bin/rm -f *.a) |