[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx

File: [local] / OpenXM / src / kan96xx / Attic / Makefile (download)

Revision 1.35, Thu Dec 4 07:49:24 2003 UTC (20 years, 6 months ago) by takayama
Branch: MAIN
Changes since 1.34: +4 -1 lines

"doPolymake" calls polymake to make several constructions for polytopes.
[action data_in_polymake_tfb_format] doPolymake
         [result_in_tfb result_in_tree errors]
polymake, polymake2tfb, ox_k0 must be installed.
Example:
 [(FACETS) (polymake.data(polymake.POINTS([[1,0,0],[1,1,0],[1,0,1],[1,0,0]])))]
         doPolymake /rr set

#  $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.35 2003/12/04 07:49:24 takayama Exp $
#
# Building kan96xx depends on
#   install-gmp, install-gc [install-asir-gc] 
#
OpenXM_HOME=../..
OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib
OpenXM_bin=${OpenXM_HOME}/bin
OpenXM_lib=${OpenXM_HOME}/lib

RM=rm

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
sm1-nogc : all-plugin
	(cd Kan; make sm1.nogc)
##########################################################
configure: configure_symbolic_links 
	if test ! -f ./.configure_done  ; \
	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-exec install-man install-document
install-exec: clean-for-install all-sm1
	install Kan/sm1 ${OpenXM_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


##############
clean-for-install :
	${RM} -f ${OpenXM_bin}/sm1
clean-done:
	${RM} -f ./.*done
clean : clean-done
	${RM} -f ./.*done
	(cd Kan; make clean)
	(cd plugin; make clean)
	(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)