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

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

1.20    ! takayama    1: ##  $OpenXM: OpenXM/src/kxx/Makefile.in,v 1.19 2003/07/21 07:32:01 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
1.20    ! takayama   18: OpenXM_include=$(OpenXM_ROOT)/include
1.1       takayama   19: KANHOME=$(OpenXM_ROOT)/src/kan96xx
                     20: CC=@CC@
                     21: RANLIB=@RANLIB@
                     22: LIBS=@LIBS@
                     23: CFLAGS = -g
                     24: DDD=-D_BSD_SOURCE
1.3       takayama   25: #STATIC_LINK_FLAG=-static
1.4       takayama   26: STATIC_LINK_FLAG=
1.1       takayama   27: ########## end of configurations
                     28:
                     29: ### Set the server name in oxmain.c if you do not use the environmental
                     30: ### variable LOAD_SM1_PATH.  cf. $KANHOME/lib/ox.sm1
                     31:
1.19      takayama   32: all : configure all-plugin kanlib.a ox ox_sm1  oxlog ox100start
1.1       takayama   33:
                     34: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
                     35:
1.7       takayama   36: configure: Makefile
                     37:
                     38: Makefile: Makefile.in
                     39:        ./configure
                     40:
                     41: # configure is added to repo for a while.
                     42: configure-old : Makefile.in configure.in
                     43:        echo "Your configure is older than Makefine.in and configure.in"
1.1       takayama   44:        /bin/rm -f .configure_done
1.6       takayama   45:        ./make-configure
                     46: #      autoconf
                     47: #      .error  "Run ./make-configure"
1.1       takayama   48:
                     49: dist :
                     50:        ./makeDist
                     51:
                     52: ## ox_null can no longer be compiled.
                     53:
                     54: ## This is the Makefile at kxx.
                     55: ## 1998, 2/7  , Old version is at S/kan.backup/kxx.tar.gz.19980206
                     56: ##
                     57: .c.o :
                     58:        $(CC)  $(CFLAGS) ${DDD} -c  $<
                     59:
                     60: all-plugin :
                     61:        (cd $(KANHOME)/plugin ; make )
                     62: kanlib.a :
                     63:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     64: ox.a :
                     65:        /bin/rm -f ox.a
                     66:        ln -s $(KANHOME)/plugin/ox.a ox.a
                     67: ox_kan.h : $(KANHOME)/plugin/ox_kan.h
                     68:        /bin/rm -f ox_kan.h
                     69:        ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
                     70:
                     71: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.3       takayama   72:        $(CC) ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(LIBS)
1.16      takayama   73:
                     74: oxd : oxd.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
1.18      takayama   75:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxd.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o oxd  $(LIBS)
                     76: oxd-thread : oxd-thread.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
                     77:        $(CC) -pthread ${STATIC_LINK_FLAG} $(CFLAGS) ${DDD} oxd-thread.c xtag.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o oxd-thread  $(LIBS)
1.1       takayama   78:
                     79: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
1.3       takayama   80:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS)  ${DDD} oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(LIBS) ; \
1.1       takayama   81:
                     82: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
1.3       takayama   83:        $(CC)  ${STATIC_LINK_FLAG} $(CFLAGS)  ${DDD} oxserver00.c sm1stackmachine.o -o ox_sm1  $(LIBS) $(KANLIB)
1.1       takayama   84:
                     85: oxlog : oxlog.c
1.3       takayama   86:        $(CC)   ${STATIC_LINK_FLAG} ${DDD} -o oxlog oxlog.c
1.20    ! takayama   87: ox100start : ox100start.c
        !            88:        $(CC)  -I${OpenXM_include} ${STATIC_LINK_FLAG} ${DDD} -o ox100start ox100start.c -L${OpenXM_lib} -lox_pathfinder
1.1       takayama   89:
                     90:
                     91: ## file2.c file2.h is in SSkan/plugin/
                     92: file2.o : $(KANHOME)/plugin/file2.c  $(KANHOME)/plugin/file2.h
                     93:        $(CC) $(CFLAGS)  ${DDD} -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
                     94:
                     95: nullstackmachine.o : nullstackmachine.c ox_kan.h
                     96: sm1stackmachine.o : sm1stackmachine.c  ox_kan.h
                     97:
                     98: testclient : testclient.c ox.a file2.o ox_kan.h
                     99:        $(CC) $(CFLAGS)  ${DDD} testclient.c -o testclient ox.a file2.o $(LIBS)
                    100:
                    101:
1.5       takayama  102: #KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
                    103: KANLIB = $(KANHOME)/Kan/kanlib.a $(OpenXM_lib)/libgmp.a $(KANHOME)/gc/gc.a
1.1       takayama  104:
                    105: ## file2 should be linked from kanlib.a
                    106:
                    107: testclient2a : testclient2.c ox.a  ox_kan.h $(KANHOME)/Kan/kanlib.a
                    108:        $(CC) $(CFLAGS)  ${DDD} -I$(KANHOME)/Kan testclient2.c ox.a  -o testclient2a  $(LIBS) $(KANLIB)
                    109:
                    110: testclient2 : testclient2.c  ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
                    111:        $(CC) $(CFLAGS)  ${DDD} -I$(KANHOME)/Kan testclient2.c -o testclient2  $(LIBS) $(KANLIB)
                    112:
                    113:
                    114: clean :
1.19      takayama  115:        -/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 ox100start
1.1       takayama  116:
                    117: distclean : clean clean-for-install
                    118:        /bin/rm -f config.status config.cache config.log
                    119:
                    120: ## install targets.
                    121: install-for-debug : clean-for-install install_lib_bin-for-debug
1.19      takayama  122:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog ../bin/ox100start
1.1       takayama  123:        ln -f -s  ../src/kxx/ox ../bin/ox
                    124:        ln -f -s  ../src/kxx/ox_sm1 ../bin/ox_sm1
                    125:        ln -f -s  ../src/kxx/oxlog ../bin/oxlog
1.19      takayama  126:        ln -f -s  ../src/kxx/ox100start ../bin/ox100start
1.1       takayama  127:
                    128: install_lib_bin-for-debug :
                    129:        ln -f -s ../src/kan96xx/Doc $(OpenXM_lib)/sm1
                    130:        /bin/rm -f $(OpenXM_lib)/sm1/bin/ox*
                    131:        ln -f -s ../../../bin/ox $(OpenXM_lib)/sm1/bin/ox
                    132:        ln -f -s ../../../bin/oxlog $(OpenXM_lib)/sm1/bin/oxlog
                    133:        ln -f -s ../../../bin/ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1
                    134:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_forAsir
                    135:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_gnuplot
                    136:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_phc
                    137:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_tigers
                    138:        ln -f -s ./ox_sm1 $(OpenXM_lib)/sm1/bin/ox_sm1_basicCD
                    139: install : copy-kan-lib install_lib_bin
1.11      noro      140:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
1.19      takayama  141:          cp -f ox.exe ox_sm1.exe oxlog.exe ox100start.exe $(OpenXM_bin) ; \
1.8       takayama  142:        else \
1.19      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
                    151: install_lib_bin_unix :
1.1       takayama  152:        /bin/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 :
                    162:        -mkdir $(OpenXM_lib)/sm1/bin
                    163:        /bin/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
1.15      takayama  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
1.9       takayama  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
                    172:
1.1       takayama  173:
                    174: # This target overrides the symbolic link
                    175: # from $(OpenXM_ROOT)/src/kan96xx/lib to $(OpenXM_lib)/sm1
                    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
                    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.9       takayama  182:          cp $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 ; \
                    183:          mkdir $(OpenXM_lib)/sm1/bin ; \
                    184:        else \
                    185:          cp -r $(KANHOME)/Doc/* $(OpenXM_lib)/sm1 ; \
1.8       takayama  186:        fi
1.1       takayama  187:        -/bin/rm -rf $(OpenXM_lib)/sm1/CVS
1.13      takayama  188:        -/bin/rm -f $(OpenXM_lib)/sm1/var.sm1
1.1       takayama  189:        cp $(KANHOME)/Kan/var.sm1 $(OpenXM_lib)/sm1
                    190: clean-for-install :
                    191:        -/bin/rm -rf $(OpenXM_lib)/sm1
1.19      takayama  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
                    205:        ./oxweave $(OXWEAVEFLAG) C eg <openxxx.tex >>openxm-eg.tex
                    206:        ./oxweave $(OXWEAVEFLAG) C jp <openxxx.tex >>openxm-jp.tex
                    207:
                    208: clean-binary :
                    209:        echo " ../open-sm1-binary*  will be removed"
                    210:        echo "after 10 seconds. To cancel type in ctrl-C."
                    211:        ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )
                    212:
                    213:

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