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

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

Revision 1.9, Sat Nov 27 13:24:40 1999 UTC (24 years, 6 months ago) by takayama
Branch: MAIN
Changes since 1.8: +39 -15 lines

If there exists /usr/lib/libgmp.a, then configure will be invoked
in the directory gmp, but "make all"  will not be executed.
Configure is necessary, because kan96xx/plugin/cmo-gmp.c needs
the file gmp/gmp-mparam.h, which is generated by configure.

##  $OpenXM: OpenXM/src/kan96xx/Makefile,v 1.9 1999/11/27 13:24:40 takayama Exp $

## Type in make configure and make all to build all
OpenXM_contrib=../../../OpenXM_contrib

all :   allGC allGMP
	(cd plugin; make all)
	(cd Kan; make all)

all2 :  allGC allGMP
	(cd Kan; make all)

allGC :
	(cd gc; make)
allGMP :   
	if test -f /usr/lib/libgmp.a ; \
	then \
	  echo "Using /usr/lib/libgmp.a" ; \
	  /bin/rm -rf gmp/libgmp.a ; \
	  ln -s /usr/lib/libgmp.a gmp/libgmp.a ; \
	else \
	 (cd gmp; make) ; \
	fi



### When you make sm1 without the garbage collector, type in make sm1.nogc
sm1.nogc :
	(cd Kan; make sm1.nogc)

configure : configure_symbolic_links 
	(cd gmp; ./configure )

configure_symbolic_links :
	/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 gmp-2.0.2-ssh-2 gmp
	ln -f -s ./Doc lib
	(cd Doc; ln -f -s ../Kan/var.sm1 var.sm1)

### generate a distribution.
dist :
	./makeDist
###############
install : 
	mkdir /usr/local/lib/sm1
	cp lib/* /usr/local/lib/sm1
	cp Kan/sm1 /usr/local/bin

###############
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 :
	/bin/rm -f ../bin/sm1
	cp Kan/sm1 ../bin
install2 :
	/bin/rm -f ../bin/sm1
	ln -f -s ../src/kan96xx/Kan/sm1 ../bin/sm1

##############
clean :
	if test -f gmp/Makefile ; \
	then \
	  (cd gmp; make clean) ; \
	fi
	if test -f gc/Makefile ; \
	then \
	  (cd gc; make clean) ; \
	fi
	(cd Kan; make clean)
	(cd plugin; make clean)
	/bin/rm -f sm1


### clean also *.a files.
cleana:  distclean

distclean :
	if test -f gmp/Makefile ; \
	then \
	  (cd gmp; make distclean) ; \
	fi
	if test -f gc/Makefile ; \
	then \
	  (cd gc; make clean; /bin/rm -f *.a) ; \
	fi
	(cd Kan; make cleana)
	(cd plugin; make clean; /bin/rm -f *.a)