version 1.23, 2000/08/31 13:35:09 |
version 1.25, 2000/12/25 06:19:10 |
|
|
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.22 2000/08/31 13:27:33 takayama Exp $ |
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.24 2000/09/17 03:12:10 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-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) |
|
|
|
|
configure: configure_symbolic_links |
configure: configure_symbolic_links |
|
|
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 |