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

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

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