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

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

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

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