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

Annotation of OpenXM/src/k097/Makefile.in, Revision 1.8

1.8     ! takayama    1: # $OpenXM: OpenXM/src/k097/Makefile.in,v 1.7 2015/09/29 01:52:14 takayama Exp $
1.1       takayama    2: #
                      3: #  Depends on  all-kan96xx [source tree of kan96xx at ${Kan96xx} is required]
                      4: #              install-gmp, install-gc, install-util
                      5: # targets
                      6: #  all
                      7: #  intall: install-exec
                      8: #  install-exec: all install-lib
                      9: #  install-for-debug
                     10: #
1.5       takayama   11: OpenXM_HOME=@prefix@
1.1       takayama   12: OpenXM_include=${OpenXM_HOME}/include
                     13: OpenXM_lib=${OpenXM_HOME}/lib
1.5       takayama   14: #
                     15: OpenXM_HOME_debug=../..
                     16: OpenXM_include_debug=${OpenXM_HOME_debug}/include
                     17: OpenXM_lib_debug=${OpenXM_HOME_debug}/lib
                     18: #
1.1       takayama   19: BDATE =19970416
                     20: LOAD_K_PATH ='"/usr/local/lib/k0/"'
                     21: LOAD_SM1_PATH2 ='"/this_directory_does_not_exists/"'
                     22: CFLAGS= @CFLAGS@ -D_BSD_SOURCE -g -DLOAD_K_PATH=${LOAD_K_PATH} -DLOAD_SM1_PATH2=${LOAD_SM1_PATH2}
                     23: #STATIC_LINK_FLAG=-static
                     24: STATIC_LINK_FLAG=
                     25: ## Kan source.  kan sources must be built up by hand.
1.5       takayama   26: Kan96xx=${OpenXM_HOME_debug}/src/kan96xx
1.1       takayama   27: MYYACC = bison
                     28: YACCPREFIX = -p KC
                     29: RM=rm
                     30: Kan96xx_Kan=${Kan96xx}/Kan
                     31: PATHFINDER=-lox_pathfinder
                     32: CC=@CC@
                     33: LIBS=@LIBS@ -L${OpenXM_lib}
1.8     ! takayama   34: # new
        !            35: KANLIB_SHARED = ${Kan96xx}/Kan/kanlib.a -L${OpenXM_lib_debug} -lgmp -lgc
        !            36: KANLIB_STATIC = ${Kan96xx}/Kan/kanlib.a -L${OpenXM_lib_debug} ${OpenXM_lib}/libgmp.a ${OpenXM_lib}/libgc.a -Wl,-no_pie
        !            37: KANLIB=@KANLIB@
1.1       takayama   38:
                     39: all : configure d0 k0 ox_k0
                     40: configure: Makefile
                     41:
                     42: Makefile: Makefile.in
1.5       takayama   43:        (rm -f .configure_done ; ./make-configure)
1.1       takayama   44:
                     45: .c.o:
                     46:        ${CC}  ${CFLAGS} -I${OpenXM_include} -c  $<
                     47:
                     48: d0 : simple.tab.o d.o dic.o dm.c  ${OpenXM_lib}/libox_pathfinder.a
                     49:        ${CC} ${STATIC_LINK_FLAG} ${CFLAGS}  -o d0 dm.c d.o dic.o simple.tab.o ${LIBS} ${PATHFINDER}
                     50:
                     51: d.o : d.c simple.tab.h Stable/sm1symbol.h
                     52:        ${CC} -I${OpenXM_include} ${CFLAGS}  -o d.o -c d.c
                     53:
                     54: simple.tab.o : simple.tab.c
                     55:        ${CC} ${CFLAGS}  -o simple.tab.o -c simple.tab.c
                     56:
                     57: simple.tab.c : simple.y d.h
                     58:        $(MYYACC) $(YACCPREFIX) simple.y
                     59:
                     60: simple.tab.h : simple.y d.h
                     61:        $(MYYACC) $(YACCPREFIX) -d simple.y
                     62:
                     63: Stable/sm1symbo.h : Stable/reserved.txt
                     64:        (cd Stable; make)
                     65:
                     66: clean:
1.6       takayama   67:        rm -f simple d0 k0 test0 *.o *~  simple.output asir-tmp.t asir-tmp.tt asir-tmp-out.t asir-tmp-out.tt k2 .*_done
1.1       takayama   68:        (cd Stable; make clean)
                     69:        (cd try; make clean)
                     70: ##     rm -f simple.tab.c simple.tab.h
                     71:
                     72: test:   d0
                     73:        touch t.sm1
                     74:        /bin/rm t.sm1
                     75:        ./d0 <test.ccc >t.sm1
                     76:
                     77: slib:   d0
                     78:        touch slib.sm1
                     79:        /bin/rm slib.sm1
                     80:        ./d0 -DebugMode <slib.k >slib.sm1
                     81:
                     82: slib.sm1: slib.k
                     83:        make slib
                     84:
                     85: ####################################################################
                     86: #############    kxx main parts.
                     87: ###################################################################
                     88: KXX = simple.tab.o d.o ki.o dic.o
                     89:
                     90: k0:  k0.o $(KXX) ${Kan96xx_Kan}/kanlib.a ${Kan96xx_Kan}/lookup.h
1.8     ! takayama   91:        ${CC} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o k0 k0.o $(KXX)  ${KANLIB}
1.1       takayama   92:
                     93: k0.o: k2.c
                     94:        ${CC} -c ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o k0.o k2.c
                     95:
                     96: ki.o: ki.c
                     97:        ${CC} -c ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o ki.o ki.c
                     98:
                     99: dic.o: dic.c d.h
                    100:        ${CC} -c ${CFLAGS}   -o dic.o dic.c
                    101:
                    102: ${Kan96xx_Kan}/kanlib.a: ${Kan96xx_Kan}/sm1
                    103:        (cd ${Kan96xx_Kan}; make kanlib.a)
                    104:
                    105: ${Kan96xx_Kan}/lookup.h :
                    106:        (cd ${Kan96xx_Kan}; make lookup.h)
                    107:
                    108:
                    109: ox_k0: ox_k0.o k0 sm1sm.o
1.8     ! takayama  110:        ${CC} ${STATIC_LINK_FLAG} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o ox_k0 ox_k0.c sm1sm.c $(KXX)  ${KANLIB}
1.1       takayama  111: ox_k0.o: ox_k0.c
                    112: sm1sm.o: sm1sm.c
                    113: ##########
                    114: ## A sample to compilation:  source is test0.c, output is test0
                    115: test0:  test0.c  $(KXX) ${Kan96xx_Kan}/kanlib.a ${Kan96xx_Kan}/lookup.h
1.8     ! takayama  116:        ${CC} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o test0 test0.c $(KXX) ${KANLIB}
1.1       takayama  117:
                    118: clean-for-install:
                    119:        ${RM} -f ${OpenXM_HOME}/bin/k0 ${OpenXM_HOME}/bin/k0.exe ${OpenXM_HOME}/bin/d0 ${OpenXM_HOME}/bin/d0.exe ${OpenXM_HOME}/bin/ox_k0 ${OpenXM_HOME}/bin/ox_k0.exe ${OpenXM_HOME}/lib/sm1/bin/ox_k0 ${OpenXM_HOME}/lib/sm1/bin/ox_k0.exe
1.5       takayama  120:        ${RM} -f ${OpenXM_HOME_debug}/bin/k0 ${OpenXM_HOME_debug}/bin/k0.exe ${OpenXM_HOME_debug}/bin/d0 ${OpenXM_HOME_debug}/bin/d0.exe ${OpenXM_HOME_debug}/bin/ox_k0 ${OpenXM_HOME_debug}/bin/ox_k0.exe ${OpenXM_HOME_debug}/lib/sm1/bin/ox_k0 ${OpenXM_HOME_debug}/lib/sm1/bin/ox_k0.exe
1.1       takayama  121:
                    122: install: install-exec
                    123: install-exec: all clean-for-install install-lib
1.3       ohara     124:        install -c -s k0  ${OpenXM_HOME}/bin
                    125:        install -c -s d0  ${OpenXM_HOME}/bin
                    126:        install -c -s ox_k0 ${OpenXM_HOME}/bin
1.4       takayama  127:        rm -f ${OpenXM_HOME}/lib/sm1/bin/ox_k0
1.7       takayama  128:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
                    129:          make install-gen-link-windows ; \
                    130:        elif [  "`uname | sed -e 's/_.*$$//'`" = "MSYS" ];  then \
                    131:          make install-gen-link-windows ; \
                    132:        else \
                    133:          make install-gen-link ; \
                    134:        fi
                    135:
                    136: install-gen-link:
1.4       takayama  137:        ( cd ${OpenXM_HOME}/lib/sm1/bin ; ln -s ../../../../bin/ox_k0 ox_k0)
1.7       takayama  138: install-gen-link-windows:
                    139:        ( cp ox_k0 ${OpenXM_HOME}/lib/sm1/bin )
1.1       takayama  140:
                    141: install-for-debug: clean-for-install all install-lib-for-debug
1.7       takayama  142:
1.5       takayama  143:        (cd ${OpenXM_HOME_debug}/bin ; ln -s ../src/k097/k0 k0)
                    144:        (cd ${OpenXM_HOME_debug}/bin ; ln -s ../src/k097/d0 d0)
                    145:        (cd ${OpenXM_HOME_debug}/bin ; ln -s ../src/k097/ox_k0 ox_k0)
                    146:        (cd ${OpenXM_HOME_debug}/lib/sm1/bin ; ln -s ../../../../src/k097/ox_k0 ox_k0)
1.1       takayama  147:
                    148: install-lib:
                    149:        ${RM} -rf ${OpenXM_lib}/k097
                    150:        mkdir ${OpenXM_lib}/k097
                    151:        cp -f ${Kan96xx}/Doc/var.sm1 ${OpenXM_lib}/k097
                    152:        cp -rf *.sm1 *.k *.kk debug lib ${OpenXM_lib}/k097
                    153:
                    154: install-lib-for-debug :
1.5       takayama  155:        ${RM} -rf ${OpenXM_lib_debug}/k097
                    156:        ln -s ../src/k097 ${OpenXM_lib_debug}/k097

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