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

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

1.15    ! takayama    1: ##  $OpenXM: OpenXM/src/kxx/Makefile,v 1.14 2000/01/02 07:35:15 takayama Exp $
        !             2: ## Targets :
        !             3: ##   all  : generates ox oxlog ox_sm1 oxweave
        !             4: ##   install : copy the binaries to $(OpenXM_bin),
        !             5: ##             remove symbolic link from $(OpenXM_lib)/sm1 to $(KANHOME)/Doc/*
        !             6: ##             copy $(KANHOME)/Doc/* to $(OpenXM_lib)/sm1
        !             7: ##             Create symbolic links in $(OpenXM_lib)/sm1/bin
        !             8: ##   install-for-debug :
        !             9: ##             Create symbolic links instead of copying.
        !            10:
1.2       takayama   11: ######### configurations.
1.15    ! takayama   12: OpenXM_contrib=../../../OpenXM_contrib
        !            13: OpenXM_ROOT=../../../OpenXM
        !            14: OpenXM_bin=$(OpenXM_ROOT)/bin
        !            15: OpenXM_lib=$(OpenXM_ROOT)/lib
1.1       maekawa    16: KANHOME = ../SSkan
                     17: LFLAG =
1.4       takayama   18: SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a
1.1       maekawa    19: CFLAGS = -g
1.15    ! takayama   20: ########## end of configurations
1.1       maekawa    21:
                     22: ### Set the server name in oxmain.c if you do not use the environmental
                     23: ### variable LOAD_SM1_PATH.  cf. $KANHOME/lib/ox.sm1
                     24:
1.6       takayama   25: all : all-plugin kanlib.a ox ox_sm1  oxlog oxweave
1.1       maekawa    26:
                     27: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
                     28:
                     29: dist :
                     30:        ./makeDist
                     31:
                     32: ## ox_null can no longer be compiled.
                     33:
                     34: ## This is the Makefile at kxx.
                     35: ## 1998, 2/7  , Old version is at S/kan.backup/kxx.tar.gz.19980206
                     36: ##
                     37: .c.o :
                     38:        gcc  $(CFLAGS) -c  $<
                     39:
                     40: all-plugin :
                     41:        (cd $(KANHOME)/plugin ; make )
                     42: kanlib.a :
                     43:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     44: ox.a :
                     45:        /bin/rm -f ox.a
                     46:        ln -s $(KANHOME)/plugin/ox.a ox.a
                     47: ox_kan.h :
                     48:        /bin/rm -f ox_kan.h
                     49:        ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
                     50:
                     51: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.4       takayama   52:        if test `uname` = "SunOS" ; \
                     53:        then \
                     54:        gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(SOLARISLFLAG) ; \
                     55:        else \
                     56:        gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(LFLAG) ; \
                     57:        fi
1.1       maekawa    58:
                     59: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.4       takayama   60:        if test `uname` = "SunOS" ; \
                     61:        then \
                     62:        gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(SOLARISLFLAG) ; \
                     63:        else \
                     64:        gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(LFLAG) ; \
                     65:        fi
1.1       maekawa    66:
                     67: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
                     68:        (cd $(KANHOME)/Kan ; make kanlib.a)
1.4       takayama   69:        if test `uname` = "SunOS" ; \
                     70:        then \
                     71:        gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1  $(SOLARISLFLAG) $(KANLIB) ; \
                     72:        else \
                     73:        gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1  $(LFLAG) $(KANLIB) ; \
                     74:        fi
1.1       maekawa    75:
                     76: oxlog : oxlog.c
                     77:        gcc -o oxlog oxlog.c
1.6       takayama   78:
1.13      takayama   79: oxweave : oxweave.c oxweaveUsage.h
1.12      takayama   80:        gcc -o oxweave -g oxweave.c
1.1       maekawa    81:
                     82: ## file2.c file2.h is in SSkan/plugin/
                     83: file2.o : $(KANHOME)/plugin/file2.c  $(KANHOME)/plugin/file2.h
                     84:        gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
                     85:
                     86: nullstackmachine.o : nullstackmachine.c ox_kan.h
                     87: sm1stackmachine.o : sm1stackmachine.c  ox_kan.h
                     88:
                     89: testclient : testclient.c ox.a file2.o ox_kan.h
                     90:        gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG)
                     91:
                     92:
1.11      takayama   93: #KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
                     94: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gc/gc.a
1.1       maekawa    95:
                     96: ## file2 should be linked from kanlib.a
                     97:
                     98: testclient2a : testclient2.c ox.a  ox_kan.h $(KANHOME)/Kan/kanlib.a
                     99:        gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a  -o testclient2a  $(LFLAG) $(KANLIB)
                    100:
                    101: testclient2 : testclient2.c  ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
                    102:        gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2  $(LFLAG) $(KANLIB)
                    103:
                    104:
1.15    ! takayama  105: clean :
        !           106:        -/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   107:
1.15    ! takayama  108: distclean : clean clean-for-install
1.5       takayama  109:
1.15    ! takayama  110: ## install targets.
        !           111: install-for-debug : clean-for-install install_lib_bin-for-debug
1.7       takayama  112:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
1.3       takayama  113:        ln -f -s  ../src/kxx/ox ../bin/ox
                    114:        ln -f -s  ../src/kxx/ox_sm1 ../bin/ox_sm1
                    115:        ln -f -s  ../src/kxx/oxlog ../bin/oxlog
1.7       takayama  116:        ln -f -s  ../src/kxx/oxweave ../bin/oxweave
1.10      takayama  117:
1.15    ! takayama  118: install_lib_bin-for-debug :
        !           119:        ln -f -s ../src/kan96xx/Doc $(OpenXM_lib)/sm1
        !           120:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
        !           121:        ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
        !           122:        ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
        !           123:        ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
        !           124:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
        !           125:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
        !           126:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
        !           127:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
        !           128:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
        !           129:
        !           130: install : copy-kan-lib install_lib_bin
        !           131:        cp -f ox ox_sm1 oxlog oxweave $(OpenXM_bin)
        !           132:
        !           133: install_lib_bin :
        !           134:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
        !           135:        ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
        !           136:        ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
        !           137:        ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
        !           138:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
        !           139:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
        !           140:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
        !           141:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
        !           142:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
        !           143:
        !           144: # This target overrides the symbolic link
        !           145: # from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1
        !           146: # generated in the top level Makefile
        !           147: copy-kan-lib : clean-for-install
        !           148:        mkdir $(OpenXM_lib)/sm1
        !           149:        cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1
        !           150:        -/bin/rm -rf $(OpenXM_lib)/sm1/CVS
        !           151:        cp $(KANHOME)/Kan/var.sm1 $(OpenXM_lib)/sm1
        !           152: clean-for-install :
        !           153:        -/bin/rm -rf $(OpenXM_lib)/sm1
        !           154:        -/bin/rm -rf $(OpenXM_bin)/oxlog $(OpenXM_bin)/oxweave $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox
1.10      takayama  155:
                    156: configure:
                    157:        /bin/rm -f ox_kan.h
                    158:        ln -f -s  ../SSkan/plugin/ox_kan.h ox_kan.h
1.1       maekawa   159:
1.15    ! takayama  160: ## openxm document generation.
1.14      takayama  161: OXWEAVEFLAG=--recursive
                    162: doc:  openxxx.tex
                    163:        -/bin/rm openxm-eg.tex openxm-jp.tex
                    164:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-eg.tex
                    165:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-jp.tex
                    166:        ./oxweave $(OXWEAVEFLAG) C eg <openxxx.tex >>openxm-eg.tex
                    167:        ./oxweave $(OXWEAVEFLAG) C jp <openxxx.tex >>openxm-jp.tex
1.1       maekawa   168:
                    169: clean-binary :
                    170:        echo " ../open-sm1-binary*  will be removed"
                    171:        echo "after 10 seconds. To cancel type in ctrl-C."
                    172:        ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
1.14      takayama  173:
                    174:

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