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

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

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

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