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

Annotation of OpenXM/src/kxx/Makefile.in, Revision 1.6

1.6     ! takayama    1: ##  $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.5 2000/09/17 03:12:12 takayama Exp $
1.1       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.
                     10: ##   install-document :
                     11: ##             Nothing to do for now.
                     12: ## If you change this file, do not forget to run autoconf and remove .configure_done
                     13: ######### configurations.
                     14: OpenXM_contrib=../../../OpenXM_contrib
                     15: OpenXM_ROOT=../../../OpenXM
                     16: OpenXM_bin=$(OpenXM_ROOT)/bin
                     17: OpenXM_lib=$(OpenXM_ROOT)/lib
                     18: KANHOME=$(OpenXM_ROOT)/src/kan96xx
                     19: CC=@CC@
                     20: RANLIB=@RANLIB@
                     21: LIBS=@LIBS@
                     22: CFLAGS = -g
                     23: DDD=-D_BSD_SOURCE
1.3       takayama   24: #STATIC_LINK_FLAG=-static
1.4       takayama   25: STATIC_LINK_FLAG=
1.1       takayama   26: ########## end of configurations
                     27:
                     28: ### Set the server name in oxmain.c if you do not use the environmental
                     29: ### variable LOAD_SM1_PATH.  cf. $KANHOME/lib/ox.sm1
                     30:
                     31: all : configure all-plugin kanlib.a ox ox_sm1  oxlog oxweave
                     32:
                     33: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
                     34:
                     35: configure : Makefile.in configure.in
                     36:        echo "You configure is older than Makefine.in and configure.in"
                     37:        /bin/rm -f .configure_done
1.6     ! takayama   38:        ./make-configure
        !            39: #      autoconf
        !            40: #      .error  "Run ./make-configure"
1.1       takayama   41:
                     42: dist :
                     43:        ./makeDist
                     44:
                     45: ## ox_null can no longer be compiled.
                     46:
                     47: ## This is the Makefile at kxx.
                     48: ## 1998, 2/7  , Old version is at S/kan.backup/kxx.tar.gz.19980206
                     49: ##
                     50: .c.o :
                     51:        $(CC)  $(CFLAGS) ${DDD} -c  $<
                     52:
                     53: all-plugin :
                     54:        (cd $(KANHOME)/plugin ; make )
                     55: kanlib.a :
                     56:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     57: ox.a :
                     58:        /bin/rm -f ox.a
                     59:        ln -s $(KANHOME)/plugin/ox.a ox.a
                     60: ox_kan.h : $(KANHOME)/plugin/ox_kan.h
                     61:        /bin/rm -f ox_kan.h
                     62:        ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
                     63:
                     64: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.3       takayama   65:        $(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(LIBS)
1.1       takayama   66:
                     67: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.3       takayama   68:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS)  ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(LIBS) ; \
1.1       takayama   69:
                     70: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
1.3       takayama   71:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS)  ${DDD} oxserver00.c sm1stackmachine.o -o ox_sm1  $(LIBS) $(KANLIB)
1.1       takayama   72:
                     73: oxlog : oxlog.c
1.3       takayama   74:        $(CC)   ${STATIC_LINK_FLAG} ${DDD} -o oxlog oxlog.c
1.1       takayama   75:
                     76: oxweave : oxweave.c oxweaveUsage.h
1.3       takayama   77:        $(CC)   ${STATIC_LINK_FLAG} ${DDD} -o oxweave -g oxweave.c
1.1       takayama   78:
                     79: ## file2.c file2.h is in SSkan/plugin/
                     80: file2.o : $(KANHOME)/plugin/file2.c  $(KANHOME)/plugin/file2.h
                     81:        $(CC) $(CFLAGS)  ${DDD} -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
                     82:
                     83: nullstackmachine.o : nullstackmachine.c ox_kan.h
                     84: sm1stackmachine.o : sm1stackmachine.c  ox_kan.h
                     85:
                     86: testclient : testclient.c ox.a file2.o ox_kan.h
                     87:        $(CC) $(CFLAGS)  ${DDD} testclient.c -o testclient ox.a file2.o $(LIBS)
                     88:
                     89:
1.5       takayama   90: #KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
                     91: KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gc/gc.a
1.1       takayama   92:
                     93: ## file2 should be linked from kanlib.a
                     94:
                     95: testclient2a : testclient2.c ox.a  ox_kan.h $(KANHOME)/Kan/kanlib.a
                     96:        $(CC) $(CFLAGS)  ${DDD} -I$(KANHOME)/Kan testclient2.c ox.a  -o testclient2a  $(LIBS) $(KANLIB)
                     97:
                     98: testclient2 : testclient2.c  ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
                     99:        $(CC) $(CFLAGS)  ${DDD} -I$(KANHOME)/Kan testclient2.c -o testclient2  $(LIBS) $(KANLIB)
                    100:
                    101:
                    102: clean :
                    103:        -/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 .configure_done
                    104:
                    105: distclean : clean clean-for-install
                    106:        /bin/rm -f config.status config.cache config.log
                    107:
                    108: ## install targets.
                    109: install-for-debug : clean-for-install install_lib_bin-for-debug
                    110:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/oxweave
                    111:        ln -f -s  ../src/kxx/ox ../bin/ox
                    112:        ln -f -s  ../src/kxx/ox_sm1 ../bin/ox_sm1
                    113:        ln -f -s  ../src/kxx/oxlog ../bin/oxlog
                    114:        ln -f -s  ../src/kxx/oxweave ../bin/oxweave
                    115:
                    116: install_lib_bin-for-debug :
                    117:        ln -f -s ../src/kan96xx/Doc $(OpenXM_lib)/sm1
                    118:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
                    119:        ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
                    120:        ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
                    121:        ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
                    122:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
                    123:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
                    124:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
                    125:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
                    126:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
                    127:
                    128: install : copy-kan-lib install_lib_bin
                    129:        cp -f ox ox_sm1 oxlog oxweave $(OpenXM_bin)
                    130:
                    131: install_lib_bin :
                    132:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
                    133:        ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
                    134:        ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
                    135:        ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
                    136:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
                    137:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
                    138:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
                    139:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
                    140:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
                    141:
                    142: # This target overrides the symbolic link
                    143: # from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1
                    144: # generated in the top level Makefile
                    145: copy-kan-lib : clean-for-install
                    146:        mkdir $(OpenXM_lib)/sm1
                    147:        touch $(OpenXM_lib)/sm1/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_COPIED_FROM_kan96xx_Doc
                    148:        cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1
                    149:        -/bin/rm -rf $(OpenXM_lib)/sm1/CVS
                    150:        cp $(KANHOME)/Kan/var.sm1 $(OpenXM_lib)/sm1
                    151: clean-for-install :
                    152:        -/bin/rm -rf $(OpenXM_lib)/sm1
                    153:        -/bin/rm -rf $(OpenXM_bin)/oxlog $(OpenXM_bin)/oxweave $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox
                    154:
                    155:
                    156:
                    157: ## openxm document generation.
                    158: install-document :
                    159:        echo "Do nothing for now"
                    160:
                    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
                    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* )
                    173:
                    174:

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