version 1.14, 2000/01/17 12:58:16 |
version 1.18, 2000/02/03 09:30:17 |
|
|
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.13 2000/01/17 09:50:20 takayama Exp $ |
## $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.17 2000/02/01 04:24:19 takayama Exp $ |
|
|
## Type in make configure and make all to build all |
## Type in make configure and make all to build all |
OpenXM_contrib=../../../OpenXM_contrib |
OpenXM_contrib=../../../OpenXM_contrib |
Line 10 GC=$(OPENXM_CONTRIB)/gc |
|
Line 10 GC=$(OPENXM_CONTRIB)/gc |
|
GMP=$(OPENXM_CONTRIB)/gmp |
GMP=$(OPENXM_CONTRIB)/gmp |
|
|
all : all-gc all-gmp all-plugin all-sm1 all-kanlib.a |
all : all-gc all-gmp all-plugin all-sm1 all-kanlib.a |
|
## .SUFFIXES: |
|
|
all2 : all-gc all-gmp |
all2 : all-gc all-gmp |
(cd Kan; make all) |
(cd Kan; make all) |
|
|
all-gc: |
all-gc: configure_symbolic_links |
(cd $(GC) ; make all) |
(cd $(GC) ; make all) |
|
|
all-gmp: configure-gmp |
all-gmp: configure-gmp |
Line 30 all-gmp: configure-gmp |
|
Line 31 all-gmp: configure-gmp |
|
all-sm1 : all-plugin |
all-sm1 : all-plugin |
(cd Kan; make all) |
(cd Kan; make all) |
|
|
all-plugin : |
all-plugin : configure_symbolic_links |
(cd plugin ; make all) |
(cd plugin ; make all) |
|
|
all-kanlib.a : all-plugin |
all-kanlib.a : all-plugin |
|
|
|
|
configure: configure_symbolic_links configure-gmp |
configure: configure_symbolic_links configure-gmp |
|
|
configure-gmp: |
configure-gmp: configure_symbolic_links |
if test -f $(GMP)/.gmp_configured ; \ |
if test -f $(GMP)/.gmp_configured ; \ |
then \ |
then \ |
echo "MESSAGE(kan96xx/Makefile): gmp is already configured. (.gmp_configured) " ; \ |
echo "MESSAGE(kan96xx/Makefile): gmp is already configured. (.gmp_configured) " ; \ |
|
|
fi |
fi |
|
|
configure_symbolic_links : |
configure_symbolic_links : |
/bin/rm -f gc gmp lib Doc/var.sm1 |
@if test ! -f ./.done_links ; \ |
ln -f -s $(OpenXM_contrib)/gc gc |
then \ |
ln -f -s $(OpenXM_contrib)/gmp gmp |
/bin/rm -f gc gmp lib Doc/var.sm1 ; \ |
# ln -f -s gmp-2.0.2-ssh-2 gmp |
ln -f -s $(OpenXM_contrib)/gc gc ; \ |
ln -f -s ./Doc lib |
ln -f -s $(OpenXM_contrib)/gmp gmp ; \ |
(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) |
ln -f -s ./Doc lib ; \ |
|
(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \ |
|
fi |
|
@touch ./.done_links |
|
|
### generate a distribution. |
### generate a distribution. |
dist : |
dist : |
Line 110 clean-for-debug : |
|
Line 114 clean-for-debug : |
|
/bin/rm -f $(OpenXM_bin)/sm1 |
/bin/rm -f $(OpenXM_bin)/sm1 |
|
|
clean : |
clean : |
|
/bin/rm -f ./.done_links |
if test -f $(GMP)/Makefile ; \ |
if test -f $(GMP)/Makefile ; \ |
then \ |
then \ |
(cd $(GMP) ; make clean) ; \ |
(cd $(GMP) ; make clean) ; \ |
|
|
### clean also *.a files. |
### clean also *.a files. |
cleana: distclean |
cleana: distclean |
|
|
distclean : |
distclean : clean |
if test -f $(GMP)/Makefile ; \ |
if test -f $(GMP)/Makefile ; \ |
then \ |
then \ |
(cd $(GMP) ; make distclean) ; \ |
(cd $(GMP) ; make distclean) ; \ |
|
|
fi |
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 |
|
|