Annotation of OpenXM/src/kan96xx/Makefile, Revision 1.36
1.36 ! takayama 1: # $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.35 2003/12/04 07:49:24 takayama Exp $
1.29 takayama 2: #
3: # Building kan96xx depends on
4: # install-gmp, install-gc [install-asir-gc]
5: #
6: OpenXM_HOME=../..
7: OpenXM_contrib=${OpenXM_HOME}/../OpenXM_contrib
8: OpenXM_bin=${OpenXM_HOME}/bin
9: OpenXM_lib=${OpenXM_HOME}/lib
1.9 takayama 10:
1.29 takayama 11: RM=rm
1.12 takayama 12:
1.29 takayama 13: all : all-sm1 all-kanlib.a
1.9 takayama 14:
1.34 takayama 15: all-sm1 : all-plugin all-trans
1.13 takayama 16: (cd Kan; make all)
1.29 takayama 17: all-plugin : configure
1.13 takayama 18: (cd plugin ; make all)
1.33 takayama 19: all-trans: configure
20: (cd trans ; make all)
1.34 takayama 21: all-kanlib.a : all-plugin all-trans
1.13 takayama 22: (cd Kan ; make kanlib.a)
23:
1.1 maekawa 24: ### When you make sm1 without the garbage collector, type in make sm1.nogc
1.29 takayama 25: sm1-nogc : all-plugin
1.1 maekawa 26: (cd Kan; make sm1.nogc)
1.29 takayama 27: ##########################################################
1.21 takayama 28: configure: configure_symbolic_links
1.29 takayama 29: if test ! -f ./.configure_done ; \
30: then \
1.30 takayama 31: (cd Kan; sh ./configure) ; \
32: (cd plugin; sh ./configure) ; \
1.33 takayama 33: (cd trans; sh ./configure) ; \
1.29 takayama 34: fi
35: @touch ./.configure_done
1.2 takayama 36: configure_symbolic_links :
1.29 takayama 37: @if test ! -f ./.configure_symbolic_links_done ; \
1.17 takayama 38: then \
1.29 takayama 39: ${RM} -f lib Doc/var.sm1 ; \
1.17 takayama 40: ln -f -s ./Doc lib ; \
41: (cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \
42: fi
1.29 takayama 43: @touch ./.configure_symbolic_links_done
1.1 maekawa 44: ###############
1.36 ! takayama 45: install: install-exec install-man
1.31 takayama 46: install-exec: clean-for-install all-sm1
47: install Kan/sm1 ${OpenXM_bin}
1.35 takayama 48: install trans/polymake2tfb ${OpenXM_bin}
1.29 takayama 49: install-man :
50: -cp Doc/sm1.1 ${OpenXM_HOME}/man/man1
51: install-document:
52: -(cd Doc ; make install-document)
53: install-for-debug : clean-for-install
1.28 noro 54: if [ "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.29 takayama 55: ln -f -s ../src/kan96xx/Kan/sm1.exe ${OpenXM_bin}/sm1.exe ; \
1.35 takayama 56: ln -f -s ../src/kan96xx/trans/polymake2tfb.exe ${OpenXM_bin}/polymake2tfb.exe ; \
1.26 takayama 57: else \
1.29 takayama 58: ln -f -s ../src/kan96xx/Kan/sm1 ${OpenXM_bin}/sm1 ; \
1.35 takayama 59: ln -f -s ../src/kan96xx/trans/polymake2tfb ${OpenXM_bin}/polymake2tfb ; \
1.26 takayama 60: fi
1.12 takayama 61:
1.1 maekawa 62:
63: ##############
1.29 takayama 64: clean-for-install :
65: ${RM} -f ${OpenXM_bin}/sm1
66: clean-done:
67: ${RM} -f ./.*done
68: clean : clean-done
69: ${RM} -f ./.*done
1.1 maekawa 70: (cd Kan; make clean)
71: (cd plugin; make clean)
1.33 takayama 72: (cd trans; make clean)
1.29 takayama 73: (cd Doc; make clean)
74: ${RM} -f sm1 gmp gc Doc/var.sm1 lib
1.32 takayama 75: distclean: clean
76: -(cd Kan ; make distclean)
77: -(cd plugin ; make distclean)
1.33 takayama 78: -(cd trans ; make distclean)
1.32 takayama 79: -(cd Doc ; make distclean)
1.1 maekawa 80:
1.8 takayama 81:
1.17 takayama 82:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>