version 1.12, 2003/11/24 02:13:40 |
version 1.15, 2003/11/24 12:38:17 |
|
|
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.11 2003/11/21 02:10:37 takayama Exp $ |
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.14 2003/11/24 08:16:13 takayama Exp $ |
# |
# |
# depends on install-gmp, install-gc [install-asir-gc] |
# depends on install-gmp, install-gc [install-asir-gc] |
# ( cd ../plugin ; make ) |
# ( cd ../plugin ; make ) |
Line 22 STATIC_LINK_FLAG = |
|
Line 22 STATIC_LINK_FLAG = |
|
#### option for gdb CFLAGS = -g, optimize -O, profile -p, -DNOGC |
#### option for gdb CFLAGS = -g, optimize -O, profile -p, -DNOGC |
CFLAGS = @CFLAGS@ -D_BSD_SOURCE |
CFLAGS = @CFLAGS@ -D_BSD_SOURCE |
|
|
YACC=yacc -d |
|
|
|
################### Plugin modules |
################### Plugin modules |
#### (2) cmo, file2, socket |
#### (2) cmo, file2, socket |
PLUGIN = ../plugin |
PLUGIN = ../plugin |
PLUGIN_PROTOTYPE = $(PLUGIN)/mathcap.h $(PLUGIN)/file2.h $(PLUGIN)/sm1Socket.h $(PLUGIN)/cmo.h $(PLUGIN)/ox.h |
TRANS = ../trans |
PLUGIN_LIB = $(PLUGIN)/sm1Socket.a $(PLUGIN)/cmo.a $(PLUGIN)/file2.a $(PLUGIN)/ox.a |
PLUGIN_PROTOTYPE = $(PLUGIN)/mathcap.h $(PLUGIN)/file2.h $(PLUGIN)/sm1Socket.h $(PLUGIN)/cmo.h $(PLUGIN)/ox.h $(TRANS)/trans.h |
PLUGIN_EXT = $(PLUGIN)/file2.hh $(PLUGIN)/sm1Socket.hh $(PLUGIN)/cmo.hh $(PLUGIN)/ox.hh |
PLUGIN_LIB = $(PLUGIN)/sm1Socket.a $(PLUGIN)/cmo.a $(PLUGIN)/file2.a $(PLUGIN)/ox.a $(TRANS)/trans.a |
PLUGIN_SM1 = $(PLUGIN)/sm1Socket.sm1 $(PLUGIN)/file2.sm1 $(PLUGIN)/cmo.sm1 $(PLUGIN)/oxx.sm1 |
PLUGIN_EXT = $(PLUGIN)/file2.hh $(PLUGIN)/sm1Socket.hh $(PLUGIN)/cmo.hh $(PLUGIN)/ox.hh $(TRANS)/trans.hh |
|
PLUGIN_SM1 = $(PLUGIN)/sm1Socket.sm1 $(PLUGIN)/file2.sm1 $(PLUGIN)/cmo.sm1 $(PLUGIN)/oxx.sm1 $(TRANS)/trans.sm1 |
PLUGIN_LINKFLAG = |
PLUGIN_LINKFLAG = |
############################ end of configuration ######################## |
############################ end of configuration ######################## |
|
|
Line 46 HEADERS = datatype.h stackm.h lookup.h extern.h kcla |
|
Line 45 HEADERS = datatype.h stackm.h lookup.h extern.h kcla |
|
|
|
kanlibP = kanExport0.o kanExport1.o |
kanlibP = kanExport0.o kanExport1.o |
kanlibS1 = stackmachine.o |
kanlibS1 = stackmachine.o |
kanlibS2 = scanner.o scanner2.o list.o global.o kclass.o |
kanlibS2 = scanner.o scanner2.o list.o global.o kclass.o shell.o |
kanlibS3 = usage.o option.o |
kanlibS3 = usage.o option.o |
kanlibS4 = primitive.o |
kanlibS4 = primitive.o |
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 |
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 |
Line 91 coeff.o : extern2.h $(HEADERS) |
|
Line 90 coeff.o : extern2.h $(HEADERS) |
|
output.o : extern2.h $(HEADERS) |
output.o : extern2.h $(HEADERS) |
poly.o : extern2.h $(HEADERS) |
poly.o : extern2.h $(HEADERS) |
rat.o : extern2.h $(HEADERS) |
rat.o : extern2.h $(HEADERS) |
ext.o : extern2.h $(HEADERS) plugin.h plugin.hh Kclass/tree.hh |
ext.o : extern2.h $(HEADERS) plugin.h plugin.hh Kclass/tree.hh shell.hh |
sm.o : sm.c $(HEADERS) |
sm.o : sm.c $(HEADERS) |
|
shell.o : shell.c $(HEADERS) |
|
|
sm1 : sm.o $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) |
sm1 : sm.o $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) |
${CC} -I${OpenXM_include} $(CFLAGS) -o sm1 sm.o $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(PLUGIN_LINKFLAG) $(LIBS2) $(LIBS) |
${CC} -I${OpenXM_include} $(CFLAGS) -o sm1 sm.o $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(PLUGIN_LINKFLAG) $(LIBS2) $(LIBS) |
Line 142 plugin.h : Makefile $(PLUGIN_PROTOTYPE) |
|
Line 142 plugin.h : Makefile $(PLUGIN_PROTOTYPE) |
|
plugin.sm1 : Makefile $(PLUGIN_SM1) |
plugin.sm1 : Makefile $(PLUGIN_SM1) |
rm -f plugin.sm1 |
rm -f plugin.sm1 |
echo '%% Do not edit this file.' > plugin.sm1 |
echo '%% Do not edit this file.' > plugin.sm1 |
|
|
## Data converters |
|
kanlibConverter=yylex_polymake.o yy_polymake.tab.o |
|
|
|
polymake2tfb: yymain_polymake.o yylex_polymake.o yy_polymake.tab.o |
|
${CC} $(CFLAGS) -o polymake2tfb yymain_polymake.o yylex_polymake.o yy_polymake.tab.o -L${OpenXM_lib} -lgc |
|
yymain_polymake.o:yymain_polymake.c yy_polymake.tab.h |
|
yylex_polymake.o:yylex_polymake.c yylex_polymake.h yy_polymake.tab.h |
|
yy_polymake.tab.o : yy_polymake.tab.c |
|
yy_polymake.tab.c : yy_polymake.y yylex_polymake.h |
|
${YACC} -b yy_polymake -p PM yy_polymake.y |
|
yy_polymake.tab.h : yy_polymake.y yylex_polymake.h |
|
${YACC} -b yy_polymake -p PM yy_polymake.y |
|
|
|
clean : |
clean : |
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 |
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 |