version 1.1, 1999/10/08 02:12:01 |
version 1.36, 2004/02/23 11:38:36 |
|
|
all : |
# $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.35 2003/12/04 07:49:24 takayama Exp $ |
(cd gc; make) |
# |
(cd gmp; ./configure; make) |
# Building kan96xx depends on |
(cd plugin; make all) |
# install-gmp, install-gc [install-asir-gc] |
(cd Kan; make all) |
# |
|
OpenXM_HOME=../.. |
|
OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib |
|
OpenXM_bin=${OpenXM_HOME}/bin |
|
OpenXM_lib=${OpenXM_HOME}/lib |
|
|
all2 : |
RM=rm |
(cd gc; make) |
|
(cd gmp; ./configure; make) |
|
(cd Kan; make all) |
|
|
|
|
all : all-sm1 all-kanlib.a |
|
|
|
all-sm1 : all-plugin all-trans |
|
(cd Kan; make all) |
|
all-plugin : configure |
|
(cd plugin ; make all) |
|
all-trans: configure |
|
(cd trans ; make all) |
|
all-kanlib.a : all-plugin all-trans |
|
(cd Kan ; make kanlib.a) |
|
|
### 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 : all-plugin |
(cd Kan; make sm1.nogc) |
(cd Kan; make sm1.nogc) |
|
########################################################## |
### generate a distribution. |
configure: configure_symbolic_links |
dist : |
if test ! -f ./.configure_done ; \ |
./makeDist |
then \ |
|
(cd Kan; sh ./configure) ; \ |
|
(cd plugin; sh ./configure) ; \ |
|
(cd trans; sh ./configure) ; \ |
|
fi |
|
@touch ./.configure_done |
|
configure_symbolic_links : |
|
@if test ! -f ./.configure_symbolic_links_done ; \ |
|
then \ |
|
${RM} -f lib Doc/var.sm1 ; \ |
|
ln -f -s ./Doc lib ; \ |
|
(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \ |
|
fi |
|
@touch ./.configure_symbolic_links_done |
############### |
############### |
install : |
install: install-exec install-man |
mkdir /usr/local/lib/sm1 |
install-exec: clean-for-install all-sm1 |
cp lib/* /usr/local/lib/sm1 |
install Kan/sm1 ${OpenXM_bin} |
cp Kan/sm1 /usr/local/bin |
install trans/polymake2tfb ${OpenXM_bin} |
|
install-man : |
|
-cp Doc/sm1.1 ${OpenXM_HOME}/man/man1 |
|
install-document: |
|
-(cd Doc ; make install-document) |
|
install-for-debug : clean-for-install |
|
if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \ |
|
ln -f -s ../src/kan96xx/Kan/sm1.exe ${OpenXM_bin}/sm1.exe ; \ |
|
ln -f -s ../src/kan96xx/trans/polymake2tfb.exe ${OpenXM_bin}/polymake2tfb.exe ; \ |
|
else \ |
|
ln -f -s ../src/kan96xx/Kan/sm1 ${OpenXM_bin}/sm1 ; \ |
|
ln -f -s ../src/kan96xx/trans/polymake2tfb ${OpenXM_bin}/polymake2tfb ; \ |
|
fi |
|
|
############### |
|
install-binary : |
|
/bin/rm -f sm1 |
|
echo ":" > sm1 |
|
echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1 |
|
echo "export LOAD_SM1_PATH" >>sm1 |
|
echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1 |
|
echo -n '$$' >>sm1 |
|
echo '*' >>sm1 |
|
chmod +x sm1 |
|
ln -s sm1 Kan/sm1 |
|
install-binary-solaris : |
|
/bin/rm -f sm1 |
|
/usr/ucb/echo ":" > sm1 |
|
/usr/ucb/echo "LOAD_SM1_PATH=`pwd`/lib/" >>sm1 |
|
/usr/ucb/echo "export LOAD_SM1_PATH" >>sm1 |
|
/usr/ucb/echo -n "`pwd`/`ls Kan/sm1.*` " >>sm1 |
|
/usr/ucb/echo -n '$$' >>sm1 |
|
/usr/ucb/echo '*' >>sm1 |
|
chmod +x sm1 |
|
ln -s sm1 Kan/sm1 |
|
clean-binary : |
|
echo " ../kanbinary* will be removed" |
|
echo "after 10 seconds. To cancel type in ctrl-C." |
|
( sleep 10 ; /bin/rm -rf ../kanbinary* ) |
|
install-openXM-bin : |
|
cp Kan/sm1 ../bin |
|
|
|
############## |
############## |
clean : |
clean-for-install : |
(cd gmp; make distclean) |
${RM} -f ${OpenXM_bin}/sm1 |
(cd gc; make clean) |
clean-done: |
|
${RM} -f ./.*done |
|
clean : clean-done |
|
${RM} -f ./.*done |
(cd Kan; make clean) |
(cd Kan; make clean) |
(cd plugin; make clean) |
(cd plugin; make clean) |
/bin/rm -f sm1 |
(cd trans; make clean) |
|
(cd Doc; make clean) |
|
${RM} -f sm1 gmp gc Doc/var.sm1 lib |
|
distclean: clean |
|
-(cd Kan ; make distclean) |
|
-(cd plugin ; make distclean) |
|
-(cd trans ; make distclean) |
|
-(cd Doc ; make distclean) |
|
|
|
|
### clean also *.a files. |
|
cleana : |
|
(cd gmp; make distclean; /bin/rm -f *.a) |
|
(cd gc; make clean; /bin/rm -f *.a) |
|
(cd Kan; make cleana) |
|
(cd plugin; make clean; /bin/rm -f *.a) |
|