=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Attic/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.25 diff -u -p -r1.1.1.1 -r1.25 --- OpenXM/src/kan96xx/Attic/Makefile 1999/10/08 02:12:01 1.1.1.1 +++ OpenXM/src/kan96xx/Attic/Makefile 2000/12/25 06:19:10 1.25 @@ -1,24 +1,72 @@ -all : - (cd gc; make) - (cd gmp; ./configure; make) - (cd plugin; make all) +## $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 +TOPDIR=../../../OpenXM +OpenXM_contrib=../../../OpenXM_contrib +OpenXM_ROOT=${TOPDIR} +OpenXM_bin=$(OpenXM_ROOT)/bin + +GC=${OpenXM_contrib}/gc + +all : all-plugin all-sm1 all-kanlib.a +## .SUFFIXES: + +all2 : all-gc (cd Kan; make all) -all2 : - (cd gc; make) - (cd gmp; ./configure; make) +all-gc: configure_symbolic_links + (cd $(GC) ; make all) + + +all-sm1 : all-plugin (cd Kan; make all) +all-plugin : configure_symbolic_links + (cd plugin ; make all) +all-kanlib.a : all-plugin + (cd Kan ; make kanlib.a) + + + ### When you make sm1 without the garbage collector, type in make sm1.nogc sm1.nogc : (cd Kan; make sm1.nogc) +configure: configure_symbolic_links + + +configure_symbolic_links : + @if test ! -f ./.done_links ; \ + then \ + /bin/rm -f gc gmp lib Doc/var.sm1 ; \ + ln -f -s ${OpenXM_contrib}/gc gc ; \ + ln -f -s ${OpenXM_contrib}/gmp gmp ; \ + ln -f -s ./Doc lib ; \ + (cd Doc; ln -f -s ../Kan/var.sm1 var.sm1) ; \ + fi + @touch ./.done_links + ### generate a distribution. dist : ./makeDist ############### -install : +install : install-bin-OpenXM install-doc install-man + +install.man: install-man #aliases + +install-man : + @if [ ! -d $(OpenXM_ROOT)/man ]; then \ + mkdir $(OpenXM_ROOT)/man ; \ + fi + @if [ ! -d $(OpenXM_ROOT)/man/man1 ]; then \ + mkdir $(OpenXM_ROOT)/man/man1 ; \ + fi + -cp Doc/sm1.1 $(OpenXM_ROOT)/man/man1 + +install-usr-local: install-bin-usr-local #alias + +install-bin-usr-local : mkdir /usr/local/lib/sm1 cp lib/* /usr/local/lib/sm1 cp Kan/sm1 /usr/local/bin @@ -48,21 +96,36 @@ 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 +install-openXM-bin: install-bin-OpenXM #alias + +install-bin-OpenXM: clean-for-debug + cp Kan/sm1 $(OpenXM_bin) + +install-for-debug : + ln -f -s ../src/kan96xx/Kan/sm1 $(OpenXM_bin)/sm1 + +install-doc: install-document + +install-document : #alias + -(cd Doc ; make install-document) + ############## +clean-for-debug : + /bin/rm -f $(OpenXM_bin)/sm1 + clean : - (cd gmp; make distclean) - (cd gc; make clean) + /bin/rm -f ./.done_links (cd Kan; make clean) (cd plugin; make clean) /bin/rm -f sm1 ### clean also *.a files. -cleana : - (cd gmp; make distclean; /bin/rm -f *.a) - (cd gc; make clean; /bin/rm -f *.a) +cleana: distclean + +distclean : clean (cd Kan; make cleana) (cd plugin; make clean; /bin/rm -f *.a) + /bin/rm -rf gc gmp lib Doc/var.sm1 +