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

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

1.13    ! takayama    1: ##  $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.12 2002/04/05 01:28:47 takayama Exp $
1.1       takayama    2: ## Targets :
1.12      takayama    3: ##   all  : generates ox oxlog ox_sm1
1.1       takayama    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:
1.12      takayama   31: all : configure all-plugin kanlib.a ox ox_sm1  oxlog
1.1       takayama   32:
                     33: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
                     34:
1.7       takayama   35: configure: Makefile
                     36:
                     37: Makefile: Makefile.in
                     38:        ./configure
                     39:
                     40: # configure is added to repo for a while.
                     41: configure-old : Makefile.in configure.in
                     42:        echo "Your configure is older than Makefine.in and configure.in"
1.1       takayama   43:        /bin/rm -f .configure_done
1.6       takayama   44:        ./make-configure
                     45: #      autoconf
                     46: #      .error  "Run ./make-configure"
1.1       takayama   47:
                     48: dist :
                     49:        ./makeDist
                     50:
                     51: ## ox_null can no longer be compiled.
                     52:
                     53: ## This is the Makefile at kxx.
                     54: ## 1998, 2/7  , Old version is at S/kan.backup/kxx.tar.gz.19980206
                     55: ##
                     56: .c.o :
                     57:        $(CC)  $(CFLAGS) ${DDD} -c  $<
                     58:
                     59: all-plugin :
                     60:        (cd $(KANHOME)/plugin ; make )
                     61: kanlib.a :
                     62:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     63: ox.a :
                     64:        /bin/rm -f ox.a
                     65:        ln -s $(KANHOME)/plugin/ox.a ox.a
                     66: ox_kan.h : $(KANHOME)/plugin/ox_kan.h
                     67:        /bin/rm -f ox_kan.h
                     68:        ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
                     69:
                     70: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.3       takayama   71:        $(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(LIBS)
1.1       takayama   72:
                     73: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.3       takayama   74:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS)  ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(LIBS) ; \
1.1       takayama   75:
                     76: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
1.3       takayama   77:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS)  ${DDD} oxserver00.c sm1stackmachine.o -o ox_sm1  $(LIBS) $(KANLIB)
1.1       takayama   78:
                     79: oxlog : oxlog.c
1.3       takayama   80:        $(CC)   ${STATIC_LINK_FLAG} ${DDD} -o oxlog oxlog.c
1.1       takayama   81:
                     82:
                     83: ## file2.c file2.h is in SSkan/plugin/
                     84: file2.o : $(KANHOME)/plugin/file2.c  $(KANHOME)/plugin/file2.h
                     85:        $(CC) $(CFLAGS)  ${DDD} -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:        $(CC) $(CFLAGS)  ${DDD} testclient.c -o testclient ox.a file2.o $(LIBS)
                     92:
                     93:
1.5       takayama   94: #KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
                     95: KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gc/gc.a
1.1       takayama   96:
                     97: ## file2 should be linked from kanlib.a
                     98:
                     99: testclient2a : testclient2.c ox.a  ox_kan.h $(KANHOME)/Kan/kanlib.a
                    100:        $(CC) $(CFLAGS)  ${DDD} -I$(KANHOME)/Kan testclient2.c ox.a  -o testclient2a  $(LIBS) $(KANLIB)
                    101:
                    102: testclient2 : testclient2.c  ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
                    103:        $(CC) $(CFLAGS)  ${DDD} -I$(KANHOME)/Kan testclient2.c -o testclient2  $(LIBS) $(KANLIB)
                    104:
                    105:
                    106: clean :
1.12      takayama  107:        -/bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log  ox_sm1 oxlog *~ openxm-eg.tex openxm-jp.tex .configure_done
1.1       takayama  108:
                    109: distclean : clean clean-for-install
                    110:        /bin/rm -f config.status config.cache config.log
                    111:
                    112: ## install targets.
                    113: install-for-debug : clean-for-install install_lib_bin-for-debug
1.12      takayama  114:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog
1.1       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
                    118:
                    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: install : copy-kan-lib install_lib_bin
1.11      noro      131:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.12      takayama  132:          cp -f ox.exe ox_sm1.exe oxlog.exe $(OpenXM_bin) ; \
1.8       takayama  133:        else \
1.12      takayama  134:          cp -f ox ox_sm1 oxlog $(OpenXM_bin) ; \
1.8       takayama  135:        fi
1.9       takayama  136: install_lib_bin:
1.11      noro      137:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.9       takayama  138:          make install_lib_bin_windows ; \
                    139:        else \
                    140:          make install_lib_bin_unix ; \
                    141:        fi
                    142: install_lib_bin_unix :
1.1       takayama  143:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
                    144:        ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
                    145:        ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
                    146:        ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
                    147:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
                    148:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
                    149:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
                    150:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
                    151:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
1.9       takayama  152: install_lib_bin_windows :
                    153:        -mkdir $(OpenXM_lib)/sm1/bin
                    154:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
                    155:        cp ox.exe $(OpenXM_lib)/sm1/bin/ox.exe
                    156:        cp oxlog.exe $(OpenXM_lib)/sm1/bin/oxlog.exe
                    157:        cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1.exe
                    158:        cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir.exe
                    159: #      cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot.exe
                    160: #      cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_phc.exe
                    161:        cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_tigers.exe
                    162:        cp ox_sm1.exe $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD.exe
                    163:
1.1       takayama  164:
                    165: # This target overrides the symbolic link
                    166: # from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1
                    167: # generated in the top level Makefile
1.10      takayama  168: # Don't do it: cp $(OpenXM_lib)/sm1/ox-win.sm1 $(OpenXM_lib)/sm1/ox.sm1 ;
1.1       takayama  169: copy-kan-lib : clean-for-install
                    170:        mkdir $(OpenXM_lib)/sm1
                    171:        touch $(OpenXM_lib)/sm1/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_COPIED_FROM_kan96xx_Doc
1.11      noro      172:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.9       takayama  173:          cp $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 ; \
                    174:          mkdir $(OpenXM_lib)/sm1/bin ; \
                    175:        else \
                    176:          cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 ; \
1.8       takayama  177:        fi
1.1       takayama  178:        -/bin/rm -rf $(OpenXM_lib)/sm1/CVS
1.13    ! takayama  179:        -/bin/rm -f $(OpenXM_lib)/sm1/var.sm1
1.1       takayama  180:        cp $(KANHOME)/Kan/var.sm1 $(OpenXM_lib)/sm1
                    181: clean-for-install :
                    182:        -/bin/rm -rf $(OpenXM_lib)/sm1
1.12      takayama  183:        -/bin/rm -rf $(OpenXM_bin)/oxlog $(OpenXM_bin)/ox_sm1 $(OpenXM_bin)/ox
1.1       takayama  184:
                    185:
                    186:
                    187: ## openxm document generation.
                    188: install-document :
                    189:        echo "Do nothing for now"
                    190:
                    191: OXWEAVEFLAG=--recursive
                    192: doc:  openxxx.tex
                    193:        -/bin/rm openxm-eg.tex openxm-jp.tex
                    194:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-eg.tex
                    195:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-jp.tex
                    196:        ./oxweave $(OXWEAVEFLAG) C eg <openxxx.tex >>openxm-eg.tex
                    197:        ./oxweave $(OXWEAVEFLAG) C jp <openxxx.tex >>openxm-jp.tex
                    198:
                    199: clean-binary :
                    200:        echo " ../open-sm1-binary*  will be removed"
                    201:        echo "after 10 seconds. To cancel type in ctrl-C."
                    202:        ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
                    203:
                    204:

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