=================================================================== RCS file: /home/cvs/OpenXM/src/k097/Attic/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.8 diff -u -p -r1.1.1.1 -r1.8 --- OpenXM/src/k097/Attic/Makefile 1999/10/08 02:12:14 1.1.1.1 +++ OpenXM/src/k097/Attic/Makefile 2000/01/20 08:33:30 1.8 @@ -1,9 +1,18 @@ +# $OpenXM: OpenXM/src/k097/Makefile,v 1.7 2000/01/17 21:12:22 takayama Exp $ +# targets +# all +# compile +# intall : all install-lib +# +# todo : install-lib-for-debug +# BDATE =19970416 CC = gcc GC = $(KHOME)/gc/gc.a +OpenXM_lib=../../lib ## Kan source. kan sources must be built up by hand. -KHOME = ../SSkan +KHOME = ../kan96xx ## @@ -11,15 +20,14 @@ LOAD_K_PATH ='"/usr/local/lib/k0/"' LOAD_SM1_PATH2 ='"/home/nobuki/SSkan/Kan/"' ## GMP_HOME = $(KHOME)/gmp -##LIBGMP=$(GMP_HOME)/libgmp.a +LIBGMP=$(GMP_HOME)/libgmp.a ## This line is for buggy linux-gmp. -LIBGMP = $(GMP_HOME)/libgmp.a $(GMP_HOME)/mpn/libmpn.a +## LIBGMP = $(GMP_HOME)/libgmp.a $(GMP_HOME)/mpn/libmpn.a EXTRALIB = ########### end of configuration. ### These are to switch k2 linux and k2 solaris version. -SOLARIS_SLIB = -#SOLARIS_SLIB = -lsocket -lnsl -lc /usr/ucblib/libucb.a +SOLARIS_SLIB = -lsocket -lnsl -lc /usr/ucblib/libucb.a ### if you use K2LFLAG below, you don't need ALIB. #K2LFLAG = -lm $(SOLARIS_ALIB) K2LFLAG = -lfunc -lparse -lengine -lm -Wl,-rpath,/usr/X11R6/lib @@ -90,7 +98,12 @@ KXX = simple.tab.o d.o ki.o dic.o KXXASIR = simple.tab.o d.o ki-asir.o dic.o k0 : k0.o $(KXX) $(KAN_HOME)/kanlib.a $(GC) $(GMP) $(KAN_HOME)/lookup.h - $(CC) $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) + if test `uname` = "SunOS" ; \ + then \ + $(CC) $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) $(SOLARIS_SLIB) ; \ + else \ + $(CC) $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) ; \ + fi k0.o : k2.c $(CC) -c $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0.o k2.c @@ -148,10 +161,23 @@ test0 : test0.c $(KXX) $(KAN_HOME)/kanlib.a $(GC) $ -install : all - cp --f k0 d0 $(HOME)/.Hbin +install0 : all + cp -f k0 d0 $(HOME)/.Hbin cp lib/mklib $(HOME)/.Hbin echo "Set the environment variable in $(HOME)/bin/mklib" + +install : all install-lib + cp -f k0 d0 ../../bin + +install-lib : + /bin/rm -rf $(OpenXM_lib)/k097 + mkdir $(OpenXM_lib)/k097 + cp -f $(KHOME)/Doc/var.sm1 $(OpenXM_lib)/k097 + cp -rf *.sm1 *.k *.kk debug $(OpenXM_lib)/k097 + +install-for-debug : + /bin/rm -rf $(OpenXM_lib)/k097 + ln -s ../src/k097 $(OpenXM_lib)/k097 dist : ./makeDist