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

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

1.7     ! takayama    1: # $OpenXM: OpenXM/src/k097/Makefile.in,v 1.6 2013/11/06 06:23:23 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: LIBGMP=-lgmp
                     33: GC = -lgc
                     34: CC=@CC@
                     35: LIBS=@LIBS@ -L${OpenXM_lib}
                     36:
                     37: all : configure d0 k0 ox_k0
                     38: configure: Makefile
                     39:
                     40: Makefile: Makefile.in
1.5       takayama   41:        (rm -f .configure_done ; ./make-configure)
1.1       takayama   42:
                     43: .c.o:
                     44:        ${CC}  ${CFLAGS} -I${OpenXM_include} -c  $<
                     45:
                     46: d0 : simple.tab.o d.o dic.o dm.c  ${OpenXM_lib}/libox_pathfinder.a
                     47:        ${CC} ${STATIC_LINK_FLAG} ${CFLAGS}  -o d0 dm.c d.o dic.o simple.tab.o ${LIBS} ${PATHFINDER}
                     48:
                     49: d.o : d.c simple.tab.h Stable/sm1symbol.h
                     50:        ${CC} -I${OpenXM_include} ${CFLAGS}  -o d.o -c d.c
                     51:
                     52: simple.tab.o : simple.tab.c
                     53:        ${CC} ${CFLAGS}  -o simple.tab.o -c simple.tab.c
                     54:
                     55: simple.tab.c : simple.y d.h
                     56:        $(MYYACC) $(YACCPREFIX) simple.y
                     57:
                     58: simple.tab.h : simple.y d.h
                     59:        $(MYYACC) $(YACCPREFIX) -d simple.y
                     60:
                     61: Stable/sm1symbo.h : Stable/reserved.txt
                     62:        (cd Stable; make)
                     63:
                     64: clean:
1.6       takayama   65:        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   66:        (cd Stable; make clean)
                     67:        (cd try; make clean)
                     68: ##     rm -f simple.tab.c simple.tab.h
                     69:
                     70: test:   d0
                     71:        touch t.sm1
                     72:        /bin/rm t.sm1
                     73:        ./d0 <test.ccc >t.sm1
                     74:
                     75: slib:   d0
                     76:        touch slib.sm1
                     77:        /bin/rm slib.sm1
                     78:        ./d0 -DebugMode <slib.k >slib.sm1
                     79:
                     80: slib.sm1: slib.k
                     81:        make slib
                     82:
                     83: ####################################################################
                     84: #############    kxx main parts.
                     85: ###################################################################
                     86: KXX = simple.tab.o d.o ki.o dic.o
                     87:
                     88: k0:  k0.o $(KXX) ${Kan96xx_Kan}/kanlib.a ${Kan96xx_Kan}/lookup.h
                     89:        ${CC} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o k0 k0.o $(KXX)  ${Kan96xx_Kan}/kanlib.a ${LIBS} $(LIBGMP) $(GC)
                     90:
                     91: k0.o: k2.c
                     92:        ${CC} -c ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o k0.o k2.c
                     93:
                     94: ki.o: ki.c
                     95:        ${CC} -c ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o ki.o ki.c
                     96:
                     97: dic.o: dic.c d.h
                     98:        ${CC} -c ${CFLAGS}   -o dic.o dic.c
                     99:
                    100: ${Kan96xx_Kan}/kanlib.a: ${Kan96xx_Kan}/sm1
                    101:        (cd ${Kan96xx_Kan}; make kanlib.a)
                    102:
                    103: ${Kan96xx_Kan}/lookup.h :
                    104:        (cd ${Kan96xx_Kan}; make lookup.h)
                    105:
                    106:
                    107: ox_k0: ox_k0.o k0 sm1sm.o
                    108:        ${CC} ${STATIC_LINK_FLAG} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o ox_k0 ox_k0.c sm1sm.c $(KXX)  ${Kan96xx_Kan}/kanlib.a ${LIBS} ${LIBGMP} ${GC}
                    109: ox_k0.o: ox_k0.c
                    110: sm1sm.o: sm1sm.c
                    111: ##########
                    112: ## A sample to compilation:  source is test0.c, output is test0
                    113: test0:  test0.c  $(KXX) ${Kan96xx_Kan}/kanlib.a ${Kan96xx_Kan}/lookup.h
                    114:        ${CC} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o test0 test0.c $(KXX) ${Kan96xx_Kan}/kanlib.a ${LIBS} ${LIBGMP} ${GC}
                    115:
                    116: clean-for-install:
                    117:        ${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  118:        ${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  119:
                    120: install: install-exec
                    121: install-exec: all clean-for-install install-lib
1.3       ohara     122:        install -c -s k0  ${OpenXM_HOME}/bin
                    123:        install -c -s d0  ${OpenXM_HOME}/bin
                    124:        install -c -s ox_k0 ${OpenXM_HOME}/bin
1.4       takayama  125:        rm -f ${OpenXM_HOME}/lib/sm1/bin/ox_k0
1.7     ! takayama  126:        if [  "`uname | sed -e 's/_.*$$//'`" = "CYGWIN" ]; then \
        !           127:          make install-gen-link-windows ; \
        !           128:        elif [  "`uname | sed -e 's/_.*$$//'`" = "MSYS" ];  then \
        !           129:          make install-gen-link-windows ; \
        !           130:        else \
        !           131:          make install-gen-link ; \
        !           132:        fi
        !           133:
        !           134: install-gen-link:
1.4       takayama  135:        ( cd ${OpenXM_HOME}/lib/sm1/bin ; ln -s ../../../../bin/ox_k0 ox_k0)
1.7     ! takayama  136: install-gen-link-windows:
        !           137:        ( cp ox_k0 ${OpenXM_HOME}/lib/sm1/bin )
1.1       takayama  138:
                    139: install-for-debug: clean-for-install all install-lib-for-debug
1.7     ! takayama  140:
1.5       takayama  141:        (cd ${OpenXM_HOME_debug}/bin ; ln -s ../src/k097/k0 k0)
                    142:        (cd ${OpenXM_HOME_debug}/bin ; ln -s ../src/k097/d0 d0)
                    143:        (cd ${OpenXM_HOME_debug}/bin ; ln -s ../src/k097/ox_k0 ox_k0)
                    144:        (cd ${OpenXM_HOME_debug}/lib/sm1/bin ; ln -s ../../../../src/k097/ox_k0 ox_k0)
1.1       takayama  145:
                    146: install-lib:
                    147:        ${RM} -rf ${OpenXM_lib}/k097
                    148:        mkdir ${OpenXM_lib}/k097
                    149:        cp -f ${Kan96xx}/Doc/var.sm1 ${OpenXM_lib}/k097
                    150:        cp -rf *.sm1 *.k *.kk debug lib ${OpenXM_lib}/k097
                    151:
                    152: install-lib-for-debug :
1.5       takayama  153:        ${RM} -rf ${OpenXM_lib_debug}/k097
                    154:        ln -s ../src/k097 ${OpenXM_lib_debug}/k097

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