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

Annotation of OpenXM/src/kan96xx/Kan/Makefile.in, Revision 1.22

1.22    ! takayama    1: ###  $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.21 2004/09/24 07:10:06 takayama Exp $
1.7       takayama    2: #
                      3: #   depends on install-gmp, install-gc [install-asir-gc]
                      4: #              ( cd ../plugin ; make )
                      5: #
                      6: all : configure sm1
1.1       takayama    7: # .SUFFIXES:
                      8: ########################## configuration ##############################
1.19      takayama    9: OpenXM_HOME=@prefix@
1.7       takayama   10: OpenXM_include=${OpenXM_HOME}/include
                     11: OpenXM_lib=${OpenXM_HOME}/lib
1.19      takayama   12: #
                     13: OpenXM_HOME_debug=../../..
                     14: OpenXM_include_debug=${OpenXM_HOME_debug}/include
                     15: OpenXM_lib_debug=${OpenXM_HOME_debug}/lib
1.7       takayama   16:
1.22    ! takayama   17: AR=@AR@
1.7       takayama   18: CC=@CC@
                     19: RANLIB=@RANLIB@
                     20: LIBS=@LIBS@
                     21: LIBS2 = -L${OpenXM_lib} -lgmp -lgc -lox_pathfinder
1.1       takayama   22: #GC = nogc.c
                     23: #STATIC_LINK_FLAG = -static
                     24: STATIC_LINK_FLAG =
                     25:
                     26: #### Optimization level etc.
1.7       takayama   27: #### option  for gdb CFLAGS = -g,   optimize -O, profile -p, -DNOGC
                     28: CFLAGS = @CFLAGS@ -D_BSD_SOURCE
                     29:
1.1       takayama   30: ###################  Plugin modules
                     31: ####  (2) cmo, file2, socket
                     32: PLUGIN = ../plugin
1.14      takayama   33: TRANS = ../trans
1.21      takayama   34: PLUGIN_PROTOTYPE  = $(PLUGIN)/mathcap.h $(PLUGIN)/file2.h $(PLUGIN)/sm1Socket.h  $(PLUGIN)/cmo.h $(PLUGIN)/ox.h $(PLUGIN)/oxxml.h $(PLUGIN)/oxcgi.h $(TRANS)/trans.h
                     35: PLUGIN_LIB  = $(PLUGIN)/sm1Socket.a  $(PLUGIN)/cmo.a $(PLUGIN)/file2.a $(PLUGIN)/ox.a $(PLUGIN)/oxxml.a $(PLUGIN)/oxcgi.a $(TRANS)/trans.a
                     36: PLUGIN_EXT = $(PLUGIN)/file2.hh $(PLUGIN)/sm1Socket.hh $(PLUGIN)/cmo.hh  $(PLUGIN)/ox.hh $(PLUGIN)/oxxml.hh $(PLUGIN)/oxcgi.hh $(TRANS)/trans.hh
1.18      takayama   37: PLUGIN_SM1 = $(PLUGIN)/sm1Socket.sm1 $(PLUGIN)/file2.sm1 $(PLUGIN)/cmo.sm1 $(PLUGIN)/oxx.sm1 $(TRANS)/trans.sm1 $(TRANS)/polymake.sm1
1.1       takayama   38: PLUGIN_LINKFLAG =
                     39: ############################ end of configuration ########################
                     40:
1.7       takayama   41: configure: Makefile
                     42:
                     43: Makefile: Makefile.in
1.19      takayama   44:        sh ./configure --prefix=@prefix@
1.7       takayama   45:
                     46:
1.1       takayama   47: HEADERS = datatype.h  stackm.h lookup.h extern.h  kclass.h
                     48: .c.o :
1.7       takayama   49:        ${CC} -I${OpenXM_include} ${CFLAGS} ${DDD} -c  $<
1.1       takayama   50:
                     51: kanlibP = kanExport0.o kanExport1.o
                     52: kanlibS1 = stackmachine.o
1.15      takayama   53: kanlibS2 = scanner.o scanner2.o list.o global.o kclass.o shell.o
1.1       takayama   54: kanlibS3 = usage.o option.o
                     55: kanlibS4 = primitive.o
1.2       takayama   56: kanlibK = matrix.o poly4.o replace.o poly3.o poly3a.o poly.o output.o coeff.o order.o switch.o poly2.o parser.o parserpass0.o rat.o ext.o
1.4       takayama   57: kanlibK2 = gradedset.o red.o gb.o gbGM.o syz0.o redm.o sugar.o resol.o hilbert.o ecart.o
1.11      takayama   58: kanlibKclass = Kclass/sample.o Kclass/rawcmo.o Kclass/indeterminate.o Kclass/tree.o
1.1       takayama   59:
                     60: ##### Add also to Kclass/Makefile
                     61: Kclass/sample.o : $(HEADERS) Kclass/sample.c
1.19      takayama   62:        (cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' sample.o )
1.1       takayama   63: Kclass/rawcmo.o : $(HEADERS) Kclass/rawcmo.c
1.19      takayama   64:        (cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' rawcmo.o )
1.1       takayama   65: Kclass/indeterminate.o : $(HEADERS) Kclass/indeterminate.c
1.19      takayama   66:        (cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' indeterminate.o )
1.11      takayama   67: Kclass/tree.o : $(HEADERS) Kclass/tree.c
1.19      takayama   68:        (cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' tree.o )
1.1       takayama   69:
                     70:
                     71: ######
                     72: redm.o : extern2.h gradedset.h $(HEADERS)
                     73: sugar.o : extern2.h gradedset.h $(HEADERS)
                     74: syz0.o : extern2.h gradedset.h $(HEADERS)
                     75: resol.o : extern2.h gradedset.h $(HEADERS)
                     76: hilbert.o : extern2.h gradedset.h $(HEADERS)
                     77: gbGM.o : extern2.h gradedset.h $(HEADERS)
                     78: gb.o : extern2.h gradedset.h $(HEADERS)
                     79: red.o : extern2.h gradedset.h $(HEADERS)
                     80: gradedset.o : extern2.h gradedset.h $(HEADERS)
1.4       takayama   81: ecart.o : extern2.h gradedset.h $(HEADERS)
1.1       takayama   82:
                     83: ########
                     84: matrix.o : extern2.h matrix.h $(HEADERS)
                     85: poly4.o : extern2.h matrix.h $(HEADERS)
                     86: replace3.o : extern2.h $(HEADERS)
                     87: poly3.o : extern2.h $(HEADERS)
1.2       takayama   88: poly3a.o : extern2.h $(HEADERS)
1.1       takayama   89: parserpass0.o : extern2.h $(HEADERS)
                     90: parser.o : extern2.h $(HEADERS)
                     91: poly2.o : extern2.h $(HEADERS)
                     92: switch.o : extern2.h $(HEADERS) gradedset.h
                     93: order.o : extern2.h $(HEADERS)
                     94: coeff.o : extern2.h $(HEADERS)
                     95: output.o : extern2.h $(HEADERS)
                     96: poly.o : extern2.h $(HEADERS)
                     97: rat.o : extern2.h $(HEADERS)
1.17      takayama   98: ext.o : extern2.h $(HEADERS) plugin.h plugin.hh Kclass/tree.hh
1.7       takayama   99: sm.o : sm.c $(HEADERS)
1.16      takayama  100: shell.o : shell.c $(HEADERS) plugin.h
1.1       takayama  101:
1.7       takayama  102: sm1 : sm.o  $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB)
                    103:        ${CC} -I${OpenXM_include} $(CFLAGS) -o sm1 sm.o $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2)  $(kanlibKclass) $(PLUGIN_LIB) $(PLUGIN_LINKFLAG) $(LIBS2) $(LIBS)
1.1       takayama  104:
                    105:
                    106: $(kanlibP) : $(HEADERS)  gradedset.h extern2.h
                    107: $(kanlibS1) : $(HEADERS) smacro.h  gradedset.h
                    108: $(kanlibS2) : $(HEADERS) gradedset.h extern2.h
                    109: $(kanlibS3) : $(HEADERS) gradedset.h extern2.h
                    110: $(kanlibS4) : $(HEADERS) gradedset.h
                    111:
                    112:
1.5       takayama  113: kanlib.a : $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) kanlib.o ${OpenXM_lib}/libox_pathfinder.a
1.1       takayama  114:        (cd plugin-tmp; /bin/rm -f *.o; ../ar-decomp $(PLUGIN_LIB) ; cp ../kanlib.o .)
1.20      takayama  115:        (cd plugin-tmp; ../ar-decomp2 ${OpenXM_lib}/libox_pathfinder.a)
1.22    ! takayama  116:        if [ ${AR} = ar ]; then \
        !           117:        ar ru kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) plugin-tmp/*.o ; \
        !           118:        else \
        !           119:        libtool -static -o kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) ${OpenXM_lib}/libox_pathfinder.a ; \
        !           120:        fi
1.7       takayama  121:        ${RANLIB} kanlib.a
1.1       takayama  122:
                    123: ############ smacro.h  and lookup.h
                    124: smacro.h : smacro.sm1 dr.sm1 module1.sm1 sugar.sm1 usage.sm1 mm $(PLUGIN_SM1)
                    125:        touch smacro.h
                    126:        /bin/rm smacro.h
                    127:        cat smacro.sm1 dr.sm1 module1.sm1 sugar.sm1 usage.sm1 $(PLUGIN_SM1) | ./mm >smacro.h
                    128:
                    129: lookup.h : stackm.h mklookup
                    130:        touch lookup.h
                    131:        /bin/rm lookup.h
                    132:        ./mklookup >lookup.h
                    133:
                    134: mm : mm.c
                    135:        $(CC) -o mm mm.c
                    136: mklookup : mklookup.c
                    137:        $(CC) -I$(OpenXM_include) -o mklookup mklookup.c
                    138:
                    139:
                    140: ############### plugins
                    141: plugin.hh  : Makefile $(PLUGIN_EXT)
                    142:        rm -f plugin.hh
                    143:        echo '/* Do not edit this file. */' > plugin.hh
                    144:        ./cat0 $(PLUGIN_EXT) >>plugin.hh
                    145:
                    146: plugin.h : Makefile $(PLUGIN_PROTOTYPE)
                    147:        rm -f plugin.h
                    148:        echo '/* Do not edit this file. */' > plugin.h
                    149:        ./cat0 $(PLUGIN_PROTOTYPE) >>plugin.h
                    150:
                    151: plugin.sm1 : Makefile $(PLUGIN_SM1)
                    152:        rm -f plugin.sm1
                    153:        echo '%% Do not edit this file.' > plugin.sm1
                    154:
                    155: clean :
                    156:        rm -f mklookup mm  core sm1 lookup.h smacro.h *.o *~ *.a mon.out sm1.nogc kanlib.a plugin.h plugin.hh plugin-tmp/*.o Kclass/*.o Kclass/*~ makeconf makeconf.sed
1.9       takayama  157: distclean : clean
                    158:        rm -f Makefile

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