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

Annotation of OpenXM/src/kxx/Makefile, Revision 1.14

1.2       takayama    1: ######### configurations.
1.14    ! takayama    2: ##  $OpenXM: OpenXM/src/kxx/Makefile,v 1.13 1999/12/14 06:41:03 takayama Exp $
1.1       maekawa     3: KANHOME = ../SSkan
                      4:
                      5: LFLAG =
1.4       takayama    6: SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a
1.1       maekawa     7:
                      8: CFLAGS = -g
                      9:
                     10: ########## end of configurations
                     11: ### Set the server name in oxmain.c if you do not use the environmental
                     12: ### variable LOAD_SM1_PATH.  cf. $KANHOME/lib/ox.sm1
                     13:
1.6       takayama   14: all : all-plugin kanlib.a ox ox_sm1  oxlog oxweave
1.1       maekawa    15:
                     16: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
                     17:
                     18: dist :
                     19:        ./makeDist
                     20:
                     21: ## ox_null can no longer be compiled.
                     22:
                     23: ## This is the Makefile at kxx.
                     24: ## 1998, 2/7  , Old version is at S/kan.backup/kxx.tar.gz.19980206
                     25: ##
                     26: .c.o :
                     27:        gcc  $(CFLAGS) -c  $<
                     28:
                     29: all-plugin :
                     30:        (cd $(KANHOME)/plugin ; make )
                     31: kanlib.a :
                     32:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     33: ox.a :
                     34:        /bin/rm -f ox.a
                     35:        ln -s $(KANHOME)/plugin/ox.a ox.a
                     36: ox_kan.h :
                     37:        /bin/rm -f ox_kan.h
                     38:        ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
                     39:
                     40: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.4       takayama   41:        if test `uname` = "SunOS" ; \
                     42:        then \
                     43:        gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(SOLARISLFLAG) ; \
                     44:        else \
                     45:        gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(LFLAG) ; \
                     46:        fi
1.1       maekawa    47:
                     48: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.4       takayama   49:        if test `uname` = "SunOS" ; \
                     50:        then \
                     51:        gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(SOLARISLFLAG) ; \
                     52:        else \
                     53:        gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(LFLAG) ; \
                     54:        fi
1.1       maekawa    55:
                     56: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
                     57:        (cd $(KANHOME)/Kan ; make kanlib.a)
1.4       takayama   58:        if test `uname` = "SunOS" ; \
                     59:        then \
                     60:        gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1  $(SOLARISLFLAG) $(KANLIB) ; \
                     61:        else \
                     62:        gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1  $(LFLAG) $(KANLIB) ; \
                     63:        fi
1.1       maekawa    64:
                     65: oxlog : oxlog.c
                     66:        gcc -o oxlog oxlog.c
1.6       takayama   67:
1.13      takayama   68: oxweave : oxweave.c oxweaveUsage.h
1.12      takayama   69:        gcc -o oxweave -g oxweave.c
1.1       maekawa    70:
                     71: ## file2.c file2.h is in SSkan/plugin/
                     72: file2.o : $(KANHOME)/plugin/file2.c  $(KANHOME)/plugin/file2.h
                     73:        gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
                     74:
                     75: nullstackmachine.o : nullstackmachine.c ox_kan.h
                     76: sm1stackmachine.o : sm1stackmachine.c  ox_kan.h
                     77:
                     78: testclient : testclient.c ox.a file2.o ox_kan.h
                     79:        gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG)
                     80:
                     81:
1.11      takayama   82: #KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
                     83: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gc/gc.a
1.1       maekawa    84:
                     85: ## file2 should be linked from kanlib.a
                     86:
                     87: testclient2a : testclient2.c ox.a  ox_kan.h $(KANHOME)/Kan/kanlib.a
                     88:        gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a  -o testclient2a  $(LFLAG) $(KANLIB)
                     89:
                     90: testclient2 : testclient2.c  ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
                     91:        gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2  $(LFLAG) $(KANLIB)
                     92:
                     93:
                     94: clean :
1.14    ! takayama   95:        /bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log  ox_sm1 oxlog *~ oxweave openxm-eg.tex openxm-jp.tex
1.1       maekawa    96:
                     97:
1.5       takayama   98: install_lib_bin :
                     99:        /bin/rm -f $(KANHOME)/lib/bin/ox*
1.3       takayama  100:        ln -f -s ../../../bin/ox $(KANHOME)/lib/bin/ox
                    101:        ln -f -s ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog
                    102:        ln -f -s ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1
                    103:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir
                    104:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot
                    105:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc
                    106:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers
                    107:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD
1.1       maekawa   108:
1.5       takayama  109: install : install_lib_bin
1.7       takayama  110:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
                    111:        cp  ox ox_sm1 oxlog oxweave ../bin
1.5       takayama  112:
                    113: install2 : install_lib_bin
1.7       takayama  114:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
1.3       takayama  115:        ln -f -s  ../src/kxx/ox ../bin/ox
                    116:        ln -f -s  ../src/kxx/ox_sm1 ../bin/ox_sm1
                    117:        ln -f -s  ../src/kxx/oxlog ../bin/oxlog
1.7       takayama  118:        ln -f -s  ../src/kxx/oxweave ../bin/oxweave
1.10      takayama  119:
                    120:
                    121: configure:
                    122:        /bin/rm -f ox_kan.h
                    123:        ln -f -s  ../SSkan/plugin/ox_kan.h ox_kan.h
1.1       maekawa   124:
1.14    ! takayama  125: OXWEAVEFLAG=--recursive
        !           126: doc:  openxxx.tex
        !           127:        -/bin/rm openxm-eg.tex openxm-jp.tex
        !           128:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-eg.tex
        !           129:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-jp.tex
        !           130:        ./oxweave $(OXWEAVEFLAG) C eg <openxxx.tex >>openxm-eg.tex
        !           131:        ./oxweave $(OXWEAVEFLAG) C jp <openxxx.tex >>openxm-jp.tex
1.1       maekawa   132:
                    133: clean-binary :
                    134:        echo " ../open-sm1-binary*  will be removed"
                    135:        echo "after 10 seconds. To cancel type in ctrl-C."
                    136:        ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
1.14    ! takayama  137:
        !           138:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>