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

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

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

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