version 1.18, 2000/02/03 09:30:17 |
version 1.27, 2001/12/24 00:49:56 |
|
|
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.17 2000/02/01 04:24:19 takayama Exp $ |
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.26 2001/05/20 07:48:17 takayama Exp $ |
|
|
## Type in make configure and make all to build all |
## Type in make configure and make all to build all |
|
TOPDIR=../../../OpenXM |
OpenXM_contrib=../../../OpenXM_contrib |
OpenXM_contrib=../../../OpenXM_contrib |
OPENXM_CONTRIB=../../../OpenXM_contrib |
OpenXM_ROOT=${TOPDIR} |
OpenXM_ROOT=../../../OpenXM |
|
OpenXM_bin=$(OpenXM_ROOT)/bin |
OpenXM_bin=$(OpenXM_ROOT)/bin |
|
|
GC=$(OPENXM_CONTRIB)/gc |
GC=${OpenXM_contrib}/gc |
GMP=$(OPENXM_CONTRIB)/gmp |
|
|
|
all : all-gc all-gmp all-plugin all-sm1 all-kanlib.a |
all : all-plugin all-sm1 all-kanlib.a |
## .SUFFIXES: |
## .SUFFIXES: |
|
|
all2 : all-gc all-gmp |
all2 : all-gc |
(cd Kan; make all) |
(cd Kan; make all) |
|
|
all-gc: configure_symbolic_links |
all-gc: configure_symbolic_links |
(cd $(GC) ; make all) |
(cd $(GC) ; make all) |
|
|
all-gmp: configure-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 |
|
|
|
all-sm1 : all-plugin |
all-sm1 : all-plugin |
(cd Kan; make all) |
(cd Kan; make all) |
Line 43 all-kanlib.a : all-plugin |
|
Line 33 all-kanlib.a : all-plugin |
|
sm1.nogc : |
sm1.nogc : |
(cd Kan; make sm1.nogc) |
(cd Kan; make sm1.nogc) |
|
|
configure: configure_symbolic_links configure-gmp |
configure: configure_symbolic_links |
|
(cd Kan; sh configure) |
|
|
configure-gmp: configure_symbolic_links |
|
if test -f $(GMP)/.gmp_configured ; \ |
|
then \ |
|
echo "MESSAGE(kan96xx/Makefile): gmp is already configured. (.gmp_configured) " ; \ |
|
else \ |
|
(cd $(GMP) ; ./configure ; touch .gmp_configured) ; \ |
|
fi |
|
|
|
configure_symbolic_links : |
configure_symbolic_links : |
@if test ! -f ./.done_links ; \ |
@if test ! -f ./.done_links ; \ |
then \ |
then \ |
/bin/rm -f gc gmp lib Doc/var.sm1 ; \ |
/bin/rm -f gc gmp lib Doc/var.sm1 ; \ |
ln -f -s $(OpenXM_contrib)/gc gc ; \ |
ln -f -s ${OpenXM_contrib}/gc gc ; \ |
ln -f -s $(OpenXM_contrib)/gmp gmp ; \ |
ln -f -s ${OpenXM_contrib}/gmp gmp ; \ |
ln -f -s ./Doc lib ; \ |
ln -f -s ./Doc lib ; \ |
(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \ |
(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \ |
fi |
fi |
Line 68 configure_symbolic_links : |
|
Line 51 configure_symbolic_links : |
|
dist : |
dist : |
./makeDist |
./makeDist |
############### |
############### |
install : install-openXM-bin install-document |
install : install-bin-OpenXM install-doc install-man |
|
|
install-usr-local : |
install.man: install-man #aliases |
|
|
|
install-man : |
|
@if [ ! -d $(OpenXM_ROOT)/man ]; then \ |
|
mkdir $(OpenXM_ROOT)/man ; \ |
|
fi |
|
@if [ ! -d $(OpenXM_ROOT)/man/man1 ]; then \ |
|
mkdir $(OpenXM_ROOT)/man/man1 ; \ |
|
fi |
|
-cp Doc/sm1.1 $(OpenXM_ROOT)/man/man1 |
|
|
|
install-usr-local: install-bin-usr-local #alias |
|
|
|
install-bin-usr-local : |
mkdir /usr/local/lib/sm1 |
mkdir /usr/local/lib/sm1 |
cp lib/* /usr/local/lib/sm1 |
cp lib/* /usr/local/lib/sm1 |
cp Kan/sm1 /usr/local/bin |
cp Kan/sm1 /usr/local/bin |
|
|
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 : clean-for-debug |
install-openXM-bin: install-bin-OpenXM #alias |
cp Kan/sm1 $(OpenXM_bin) |
|
|
install-bin-OpenXM: clean-for-debug |
|
if [ "`uname`" = "CYGWIN_NT-5.0" ]; then \ |
|
rm -f $(OpenXM_bin)/sm1.exe ; \ |
|
cp Kan/sm1.exe $(OpenXM_bin) ; \ |
|
else \ |
|
cp Kan/sm1 $(OpenXM_bin) ; \ |
|
fi |
|
|
install-for-debug : |
install-for-debug : |
ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1 |
if [ "`uname`" = "CYGWIN_NT-5.0" ]; then \ |
|
ln -f -s ../src/kan96xx/Kan/sm1.exe $(OpenXM_bin)/sm1.exe ; \ |
|
else \ |
|
ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1 ; \ |
|
fi |
|
|
install-document : |
install-doc: install-document |
(cd Doc ; make install-document) |
|
|
|
|
install-document : #alias |
|
-(cd Doc ; make install-document) |
|
|
############## |
############## |
clean-for-debug : |
clean-for-debug : |
/bin/rm -f $(OpenXM_bin)/sm1 |
/bin/rm -f $(OpenXM_bin)/sm1 |
|
|
clean : |
clean : |
/bin/rm -f ./.done_links |
/bin/rm -f ./.done_links |
if test -f $(GMP)/Makefile ; \ |
|
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 |
|
|
cleana: distclean |
cleana: distclean |
|
|
distclean : clean |
distclean : clean |
if test -f $(GMP)/Makefile ; \ |
|
then \ |
|
(cd $(GMP) ; make distclean) ; \ |
|
fi |
|
-/bin/rm -f $(GMP)/.gmp_configured |
|
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) |
/bin/rm -rf gc gmp lib Doc/var.sm1 |
/bin/rm -rf gc gmp lib Doc/var.sm1 |