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

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

1.32    ! takayama    1: ##  $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.31 2004/06/23 23:04:10 takayama Exp $
1.23      takayama    2: #
                      3: #  Depends on  all-kan96xx [source tree of kan96xx at ${Kan96xx} is required]
                      4: #              install-gmp, install-gc, install-util
                      5: #
1.1       takayama    6: ## Targets :
1.12      takayama    7: ##   all  : generates ox oxlog ox_sm1
1.23      takayama    8: ##   install: install-exec install-document
                      9: ##   install-exec: copy the binaries to ${OpenXM_bin},
                     10: ##             remove symbolic link from $(OpenXM_lib)/sm1 to $(Kan96xx)/Doc/*
                     11: ##             copy $(Kan96xx)/Doc/* to $(OpenXM_lib)/sm1
1.1       takayama   12: ##             Create symbolic links in $(OpenXM_lib)/sm1/bin
                     13: ##   install-for-debug :
                     14: ##             Create symbolic links instead of copying.
                     15: ##   install-document :
                     16: ##             Nothing to do for now.
                     17: ## If you change this file, do not forget to run autoconf and remove .configure_done
                     18: ######### configurations.
1.31      takayama   19: #OpenXM_HOME=../..
                     20: OpenXM_HOME=@prefix@
1.23      takayama   21: Kan96xx=../kan96xx
                     22: OpenXM_bin=${OpenXM_HOME}/bin
                     23: OpenXM_lib=${OpenXM_HOME}/lib
                     24: OpenXM_include=${OpenXM_HOME}/include
                     25: OXWEAVE=${OpenXM_bin}/oxweave
1.26      takayama   26: KANLIB = ${Kan96xx}/Kan/kanlib.a -L${OpenXM_lib} -lgmp -lgc
1.31      takayama   27: #
                     28: OpenXM_HOME_for_debug=../..
                     29: OpenXM_bin_for_debug=${OpenXM_HOME_for_debug}/bin
                     30: OpenXM_lib_for_debug=${OpenXM_HOME_for_debug}/lib
                     31: OpenXM_include_for_debug=${OpenXM_HOME_for_debug}/include
1.23      takayama   32: ########## end of configurations
1.1       takayama   33: CC=@CC@
                     34: RANLIB=@RANLIB@
                     35: LIBS=@LIBS@
1.23      takayama   36: CFLAGS = @CFLAGS@ -g -D_BSD_SOURCE
1.3       takayama   37: #STATIC_LINK_FLAG=-static
1.4       takayama   38: STATIC_LINK_FLAG=
1.23      takayama   39: RM=rm
1.1       takayama   40:
                     41: ### Set the server name in oxmain.c if you do not use the environmental
1.23      takayama   42: ### variable LOAD_SM1_PATH.  cf. $Kan96xx/lib/ox.sm1
1.1       takayama   43:
1.29      takayama   44: all : configure ox ox_sm1  oxlog ox100start ox_texmacs
1.1       takayama   45:
1.23      takayama   46: all2 : ox ox_sm1 testclient oxlog
1.1       takayama   47:
1.7       takayama   48: configure: Makefile
                     49:
                     50: Makefile: Makefile.in
1.32    ! takayama   51:        (rm -f .configure_done ; ./make-configure)
1.7       takayama   52:
                     53: # configure is added to repo for a while.
                     54: configure-old : Makefile.in configure.in
                     55:        echo "Your configure is older than Makefine.in and configure.in"
1.1       takayama   56:        /bin/rm -f .configure_done
1.6       takayama   57:        ./make-configure
                     58: #      autoconf
                     59: #      .error  "Run ./make-configure"
1.1       takayama   60:
1.23      takayama   61: .c.o:
                     62:        ${CC}  ${CFLAGS} -I${OpenXM_include} -c  $<
                     63: ox.a: ${Kan96xx}/plugin/ox.a
1.1       takayama   64:        /bin/rm -f ox.a
1.23      takayama   65:        ln -s ${Kan96xx}/plugin/ox.a ox.a
                     66: ox_kan.h: ${Kan96xx}/plugin/ox_kan.h
1.1       takayama   67:        /bin/rm -f ox_kan.h
1.23      takayama   68:        ln -s ${Kan96xx}/plugin/ox_kan.h ox_kan.h
1.16      takayama   69:
1.23      takayama   70: ox: oxmain.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o
                     71:        ${CC} ${STATIC_LINK_FLAG} ${CFLAGS} oxmain.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o -o ox  ${LIBS}
                     72: oxmain.o: oxmain.c ox_kan.h serversm.h
1.1       takayama   73:
1.23      takayama   74: oxd: oxd.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o
                     75:        ${CC}  ${STATIC_LINK_FLAG} ${CFLAGS} oxd.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o -o oxd  ${LIBS}
                     76: oxd.o: oxd.c ox_kan.h serversm.h
                     77: xtag.o: xtag.c
                     78: oxd-thread: oxd-thread.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o
                     79:        ${CC} -pthread ${STATIC_LINK_FLAG} $(CFLAGS) oxd-thread.o xtag.o ${Kan96xx}/plugin/mytcpio.o ${Kan96xx}/plugin/oxmisc.o file2.o -o oxd-thread  ${LIBS}
                     80: oxd-thread.o: oxd-thread.c ox_kan.h serversm.h
1.1       takayama   81:
1.23      takayama   82: ox_null: oxserver00.o ox.a nullstackmachine.o file2.o
                     83:        ${CC}  ${STATIC_LINK_FLAG} ${CFLAGS} oxserver00.o ox.a nullstackmachine.o file2.o -o ox_null  ${LIBS}
                     84: oxserver00.o: oxserver00.c ox_kan.h serversm.h
1.1       takayama   85:
1.23      takayama   86: ox_sm1: oxserver00.o sm1stackmachine.o ox.a ${Kan96xx}/Kan/kanlib.a
                     87:        ${CC}  ${STATIC_LINK_FLAG} ${CFLAGS} oxserver00.o sm1stackmachine.o -o ox_sm1  ${LIBS} ${KANLIB}
1.1       takayama   88:
1.23      takayama   89: oxlog: oxlog.o
                     90:        ${CC}   ${STATIC_LINK_FLAG} -o oxlog oxlog.o
                     91: oxlog.o: oxlog.c
1.1       takayama   92:
1.23      takayama   93: ox100start : ox100start.o  ${OpenXM_lib}/libox_pathfinder.a
                     94:        ${CC}  -I${OpenXM_include} ${STATIC_LINK_FLAG} -o ox100start ox100start.c -L${OpenXM_lib} -lox_pathfinder
                     95: ox100start.o: ox100start.c
1.1       takayama   96:
1.23      takayama   97: file2.o: ${Kan96xx}/plugin/file2.c  ${Kan96xx}/plugin/file2.h
                     98:        ${CC} $(CFLAGS) -DKXX=1 -I${Kan96xx}/plugin -c ${Kan96xx}/plugin/file2.c
1.1       takayama   99:
1.23      takayama  100: nullstackmachine.o: nullstackmachine.c ox_kan.h
                    101: sm1stackmachine.o: sm1stackmachine.c  ox_kan.h
1.1       takayama  102:
1.23      takayama  103: testclient: testclient.o ox.a file2.o
                    104:        ${CC} ${CFLAGS} testclient.c -o testclient ox.a file2.o ${LIBS}
                    105: testclient.o: testclient.c ox_kan.h
1.1       takayama  106:
                    107:
1.23      takayama  108: testclient2a : testclient2.o ox.a ${Kan96xx}/Kan/kanlib.a
                    109:        ${CC} ${CFLAGS}  -I${Kan96xx}/Kan testclient2.o ox.a  -o testclient2a  ${LIBS} ${KANLIB}
                    110: testclient2.o: testclient2.c ox_kan.h
1.1       takayama  111:
1.23      takayama  112: testclient2 : testclient2.o ${Kan96xx}/Kan/kanlib.a ox.a
                    113:        ${CC} ${CFLAGS} -I${Kan96xx}/Kan testclient2.c -o testclient2  ${LIBS} ${KANLIB}
                    114: testclient2.o: testclient.c ox_kan.h
1.1       takayama  115:
1.28      takayama  116: ox_texmacs: ox_texmacs.o ${Kan96xx}/Kan/kanlib.a
                    117:        ${CC}  ${STATIC_LINK_FLAG} ${CFLAGS} ox_texmacs.o -o ox_texmacs  ${LIBS} ${KANLIB}
1.1       takayama  118:
1.23      takayama  119: clean-done:
                    120:        -${RM} -f .configure_done
                    121: clean: clean-done
1.29      takayama  122:        -${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 ox100start .prog.ox100bin* .in.ox100bin* ox_texmacs
1.1       takayama  123: distclean : clean clean-for-install
                    124:        /bin/rm -f config.status config.cache config.log
                    125:
                    126: ## install targets.
                    127: install-for-debug : clean-for-install install_lib_bin-for-debug
1.31      takayama  128:        ${RM} -f ${OpenXM_bin_for_debug}/ox ${OpenXM_bin_for_debug}/ox_sm1 ${OpenXM_bin_for_debug}/oxlog ${OpenXM_bin_for_debug}/ox100start ${OpenXM_bin_for_debug}/ox_texmacs
                    129:        ln -f -s  ../src/kxx/ox ${OpenXM_bin_for_debug}/ox
                    130:        ln -f -s  ../src/kxx/ox_sm1 ${OpenXM_bin_for_debug}/ox_sm1
                    131:        ln -f -s  ../src/kxx/oxlog ${OpenXM_bin_for_debug}/oxlog
                    132:        ln -f -s  ../src/kxx/ox100start ${OpenXM_bin_for_debug}/ox100start
                    133:        ln -f -s  ../src/kxx/ox_texmacs ${OpenXM_bin_for_debug}/ox_texmacs
1.1       takayama  134:
                    135: install_lib_bin-for-debug :
1.31      takayama  136:        ln -f -s ../src/kan96xx/Doc ${OpenXM_lib_for_debug}/sm1
                    137:        ${RM} -f ${OpenXM_lib_for_debug}/sm1/bin/ox*
                    138:        ln -f -s ../../../../bin/ox ${OpenXM_lib_for_debug}/sm1/bin/ox
                    139:        ln -f -s ../../../../bin/oxlog ${OpenXM_lib_for_debug}/sm1/bin/oxlog
                    140:        ln -f -s ../../../../bin/ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1
                    141:        ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_forAsir
                    142:        ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_gnuplot
                    143:        ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_phc
                    144:        ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_tigers
                    145:        ln -f -s ./ox_sm1 ${OpenXM_lib_for_debug}/sm1/bin/ox_sm1_basicCD
1.23      takayama  146: install: install-exec
                    147: install-exec: copy-kan-lib install_lib_bin
1.29      takayama  148:        install ox ox_sm1 oxlog ox100start ox_texmacs ${OpenXM_bin}
1.9       takayama  149: install_lib_bin:
1.11      noro      150:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.9       takayama  151:          make install_lib_bin_windows ; \
                    152:        else \
                    153:          make install_lib_bin_unix ; \
                    154:        fi
1.23      takayama  155: install_lib_bin_unix:
                    156:        ${RM} -f ${OpenXM_lib}/sm1/bin/ox*
                    157:        ln -f -s ../../../bin/ox ${OpenXM_lib}/sm1/bin/ox
                    158:        ln -f -s ../../../bin/oxlog ${OpenXM_lib}/sm1/bin/oxlog
                    159:        ln -f -s ../../../bin/ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1
                    160:        ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_forAsir
                    161:        ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_gnuplot
                    162:        ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_phc
                    163:        ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_tigers
                    164:        ln -f -s ./ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_basicCD
1.9       takayama  165: install_lib_bin_windows :
1.25      takayama  166:        -mkdir ${OpenXM_lib}/sm1/bin
                    167:        ${RM} -f ${OpenXM_lib}/sm1/bin/ox*
                    168:        install ox ${OpenXM_lib}/sm1/bin/ox
                    169:        install oxlog ${OpenXM_lib}/sm1/bin/oxlog
                    170:        install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1
                    171:        install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_forAsir
                    172:        install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_gnuplot
                    173:        install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_phc
                    174:        install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_tigers
                    175:        install ox_sm1 ${OpenXM_lib}/sm1/bin/ox_sm1_basicCD
                    176: #obsolete, it should be removed later
                    177: install_lib_bin_windows_old :
1.23      takayama  178:        -mkdir ${OpenXM_lib}/sm1/bin
                    179:        ${RM} -f ${OpenXM_lib}/sm1/bin/ox*
                    180:        cp ox.exe ${OpenXM_lib}/sm1/bin/ox.exe
                    181:        cp oxlog.exe ${OpenXM_lib}/sm1/bin/oxlog.exe
                    182:        cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1.exe
                    183:        cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1_forAsir.exe
                    184:        cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1_gnuplot.exe
                    185:        cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1_phc.exe
                    186:        cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1_tigers.exe
                    187:        cp ox_sm1.exe ${OpenXM_lib}/sm1/bin/ox_sm1_basicCD.exe
1.9       takayama  188:
1.1       takayama  189:
                    190: # This target overrides the symbolic link
1.23      takayama  191: # from $(OpenXM_HOME)/src/kan96xx/lib to $(OpenXM_lib)/sm1
1.1       takayama  192: # generated in the top level Makefile
1.10      takayama  193: # Don't do it: cp $(OpenXM_lib)/sm1/ox-win.sm1 $(OpenXM_lib)/sm1/ox.sm1 ;
1.1       takayama  194: copy-kan-lib : clean-for-install
1.23      takayama  195:        mkdir ${OpenXM_lib}/sm1
                    196:        touch ${OpenXM_lib}/sm1/DO_NOT_EDIT_THIS_DIRECTORY._ALL_FILES_ARE_COPIED_FROM_kan96xx_Doc
1.14      takayama  197:        -if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.23      takayama  198:          cp ${Kan96xx}/Doc/* ${OpenXM_lib}/sm1 ; \
                    199:          mkdir ${OpenXM_lib}/sm1/bin ; \
1.9       takayama  200:        else \
1.23      takayama  201:          cp -r ${Kan96xx}/Doc/* ${OpenXM_lib}/sm1 ; \
1.8       takayama  202:        fi
1.23      takayama  203:        -/bin/rm -rf ${OpenXM_lib}/sm1/CVS
                    204:        -/bin/rm -f ${OpenXM_lib}/sm1/var.sm1
                    205:        cp ${Kan96xx}/Kan/var.sm1 ${OpenXM_lib}/sm1
1.1       takayama  206: clean-for-install :
1.23      takayama  207:        -/bin/rm -rf ${OpenXM_lib}/sm1
1.29      takayama  208:        -/bin/rm -rf ${OpenXM_bin}/oxlog ${OpenXM_bin}/ox_sm1 ${OpenXM_bin}/ox   ${OpenXM_bin}/ox100start ${OpenXM_bin}/ox_texmacs
1.1       takayama  209:
                    210:
                    211:
                    212: ## openxm document generation.
                    213: install-document :
                    214:        echo "Do nothing for now"
                    215:
                    216: OXWEAVEFLAG=--recursive
                    217: doc:  openxxx.tex
                    218:        -/bin/rm openxm-eg.tex openxm-jp.tex
                    219:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-eg.tex
                    220:        echo "% DO NOT EDIT THIS FILE. This is automatically generated from openxxx.tex" >openxm-jp.tex
1.23      takayama  221:        ${OXWEAVE} ${OXWEAVEFLAG} C eg <openxxx.tex >>openxm-eg.tex
                    222:        ${OXWEAVE} ${OXWEAVEFLAG} C jp <openxxx.tex >>openxm-jp.tex
1.1       takayama  223:

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