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

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

1.1     ! takayama    1: # $OpenXM$
        !             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: #
        !            11: OpenXM_HOME=../..
        !            12: OpenXM_include=${OpenXM_HOME}/include
        !            13: OpenXM_lib=${OpenXM_HOME}/lib
        !            14: BDATE =19970416
        !            15: LOAD_K_PATH ='"/usr/local/lib/k0/"'
        !            16: LOAD_SM1_PATH2 ='"/this_directory_does_not_exists/"'
        !            17: CFLAGS= @CFLAGS@ -D_BSD_SOURCE -g -DLOAD_K_PATH=${LOAD_K_PATH} -DLOAD_SM1_PATH2=${LOAD_SM1_PATH2}
        !            18: #STATIC_LINK_FLAG=-static
        !            19: STATIC_LINK_FLAG=
        !            20: ## Kan source.  kan sources must be built up by hand.
        !            21: Kan96xx=${OpenXM_HOME}/src/kan96xx
        !            22: MYYACC = bison
        !            23: YACCPREFIX = -p KC
        !            24: RM=rm
        !            25: Kan96xx_Kan=${Kan96xx}/Kan
        !            26: PATHFINDER=-lox_pathfinder
        !            27: LIBGMP=-lgmp
        !            28: GC = -lgc
        !            29: CC=@CC@
        !            30: LIBS=@LIBS@ -L${OpenXM_lib}
        !            31:
        !            32: all : configure d0 k0 ox_k0
        !            33: configure: Makefile
        !            34:
        !            35: Makefile: Makefile.in
        !            36:        ./configure
        !            37:
        !            38: .c.o:
        !            39:        ${CC}  ${CFLAGS} -I${OpenXM_include} -c  $<
        !            40:
        !            41: d0 : simple.tab.o d.o dic.o dm.c  ${OpenXM_lib}/libox_pathfinder.a
        !            42:        ${CC} ${STATIC_LINK_FLAG} ${CFLAGS}  -o d0 dm.c d.o dic.o simple.tab.o ${LIBS} ${PATHFINDER}
        !            43:
        !            44: d.o : d.c simple.tab.h Stable/sm1symbol.h
        !            45:        ${CC} -I${OpenXM_include} ${CFLAGS}  -o d.o -c d.c
        !            46:
        !            47: simple.tab.o : simple.tab.c
        !            48:        ${CC} ${CFLAGS}  -o simple.tab.o -c simple.tab.c
        !            49:
        !            50: simple.tab.c : simple.y d.h
        !            51:        $(MYYACC) $(YACCPREFIX) simple.y
        !            52:
        !            53: simple.tab.h : simple.y d.h
        !            54:        $(MYYACC) $(YACCPREFIX) -d simple.y
        !            55:
        !            56: Stable/sm1symbo.h : Stable/reserved.txt
        !            57:        (cd Stable; make)
        !            58:
        !            59: clean:
        !            60:        rm -f simple d0 k0 test0 *.o *~  simple.output asir-tmp.t asir-tmp.tt asir-tmp-out.t asir-tmp-out.tt k2
        !            61:        (cd Stable; make clean)
        !            62:        (cd try; make clean)
        !            63: ##     rm -f simple.tab.c simple.tab.h
        !            64:
        !            65: test:   d0
        !            66:        touch t.sm1
        !            67:        /bin/rm t.sm1
        !            68:        ./d0 <test.ccc >t.sm1
        !            69:
        !            70: slib:   d0
        !            71:        touch slib.sm1
        !            72:        /bin/rm slib.sm1
        !            73:        ./d0 -DebugMode <slib.k >slib.sm1
        !            74:
        !            75: slib.sm1: slib.k
        !            76:        make slib
        !            77:
        !            78: ####################################################################
        !            79: #############    kxx main parts.
        !            80: ###################################################################
        !            81: KXX = simple.tab.o d.o ki.o dic.o
        !            82:
        !            83: k0:  k0.o $(KXX) ${Kan96xx_Kan}/kanlib.a ${Kan96xx_Kan}/lookup.h
        !            84:        ${CC} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o k0 k0.o $(KXX)  ${Kan96xx_Kan}/kanlib.a ${LIBS} $(LIBGMP) $(GC)
        !            85:
        !            86: k0.o: k2.c
        !            87:        ${CC} -c ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o k0.o k2.c
        !            88:
        !            89: ki.o: ki.c
        !            90:        ${CC} -c ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o ki.o ki.c
        !            91:
        !            92: dic.o: dic.c d.h
        !            93:        ${CC} -c ${CFLAGS}   -o dic.o dic.c
        !            94:
        !            95: ${Kan96xx_Kan}/kanlib.a: ${Kan96xx_Kan}/sm1
        !            96:        (cd ${Kan96xx_Kan}; make kanlib.a)
        !            97:
        !            98: ${Kan96xx_Kan}/lookup.h :
        !            99:        (cd ${Kan96xx_Kan}; make lookup.h)
        !           100:
        !           101:
        !           102: ox_k0: ox_k0.o k0 sm1sm.o
        !           103:        ${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}
        !           104: ox_k0.o: ox_k0.c
        !           105: sm1sm.o: sm1sm.c
        !           106: ##########
        !           107: ## A sample to compilation:  source is test0.c, output is test0
        !           108: test0:  test0.c  $(KXX) ${Kan96xx_Kan}/kanlib.a ${Kan96xx_Kan}/lookup.h
        !           109:        ${CC} ${CFLAGS}  -I${OpenXM_include} -I${Kan96xx_Kan} -o test0 test0.c $(KXX) ${Kan96xx_Kan}/kanlib.a ${LIBS} ${LIBGMP} ${GC}
        !           110:
        !           111: clean-for-install:
        !           112:        ${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
        !           113:
        !           114: install: install-exec
        !           115: install-exec: all clean-for-install install-lib
        !           116:        cp -f k0 d0 ${OpenXM_HOME}/bin
        !           117:        cp -f ox_k0 ${OpenXM_HOME}/bin
        !           118:        cp -f ox_k0 ${OpenXM_HOME}/lib/sm1/bin
        !           119:
        !           120: install-for-debug: clean-for-install all install-lib-for-debug
        !           121:        (cd ${OpenXM_HOME}/bin ; ln -s ../src/k097/k0 k0)
        !           122:        (cd ${OpenXM_HOME}/bin ; ln -s ../src/k097/d0 d0)
        !           123:        (cd ${OpenXM_HOME}/bin ; ln -s ../src/k097/ox_k0 ox_k0)
        !           124:        (cd ${OpenXM_HOME}/lib/sm1/bin ; ln -s ../../../../src/k097/ox_k0 ox_k0)
        !           125:
        !           126: install-lib:
        !           127:        ${RM} -rf ${OpenXM_lib}/k097
        !           128:        mkdir ${OpenXM_lib}/k097
        !           129:        cp -f ${Kan96xx}/Doc/var.sm1 ${OpenXM_lib}/k097
        !           130:        cp -rf *.sm1 *.k *.kk debug lib ${OpenXM_lib}/k097
        !           131:
        !           132: install-lib-for-debug :
        !           133:        ${RM} -rf ${OpenXM_lib}/k097
        !           134:        ln -s ../src/k097 ${OpenXM_lib}/k097

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