version 1.7, 2003/09/02 03:24:48 |
version 1.27, 2022/09/08 10:49:30 |
|
|
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.6 2003/07/21 13:36:41 takayama Exp $ |
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.26 2021/03/24 04:58:32 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 ) |
|
|
all : configure sm1 |
all : configure sm1 |
# .SUFFIXES: |
# .SUFFIXES: |
########################## configuration ############################## |
########################## configuration ############################## |
OpenXM_HOME=../../.. |
OpenXM_HOME=@prefix@ |
OpenXM_include=${OpenXM_HOME}/include |
OpenXM_include=${OpenXM_HOME}/include |
OpenXM_lib=${OpenXM_HOME}/lib |
OpenXM_lib=${OpenXM_HOME}/lib |
|
# |
|
OpenXM_HOME_debug=../../.. |
|
OpenXM_include_debug=${OpenXM_HOME_debug}/include |
|
OpenXM_lib_debug=${OpenXM_HOME_debug}/lib |
|
|
|
AR=@AR@ |
CC=@CC@ |
CC=@CC@ |
RANLIB=@RANLIB@ |
RANLIB=@RANLIB@ |
LIBS=@LIBS@ |
LIBS=@LIBS@ |
LIBS2 = -L${OpenXM_lib} -lgmp -lgc -lox_pathfinder |
LIBS2_SHARED = -L${OpenXM_lib} -lgmp -lgc -lox_pathfinder |
|
LIBS2_STATIC = -L${OpenXM_lib} ${OpenXM_lib}/libgmp.a ${OpenXM_lib}/libgc.a -lox_pathfinder -Wl,-no_pie |
|
LIBS2 = @LIBS2@ |
#GC = nogc.c |
#GC = nogc.c |
#STATIC_LINK_FLAG = -static |
#STATIC_LINK_FLAG = -static |
STATIC_LINK_FLAG = |
STATIC_LINK_FLAG = |
|
|
#### Optimization level etc. |
#### Optimization level etc. |
#### 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_DEFAULT_SOURCE -D_BSD_SOURCE -Wno-trigraphs -fcommon |
|
|
|
|
|
|
################### 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 $(PLUGIN)/oxxml.h $(PLUGIN)/oxcgi.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 $(PLUGIN)/oxxml.a $(PLUGIN)/oxcgi.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 $(PLUGIN)/oxxml.hh $(PLUGIN)/oxcgi.hh $(TRANS)/trans.hh |
|
PLUGIN_SM1 = $(PLUGIN)/sm1Socket.sm1 $(PLUGIN)/file2.sm1 $(PLUGIN)/cmo.sm1 $(PLUGIN)/oxx.sm1 $(TRANS)/trans.sm1 $(TRANS)/polymake.sm1 |
PLUGIN_LINKFLAG = |
PLUGIN_LINKFLAG = |
############################ end of configuration ######################## |
############################ end of configuration ######################## |
|
|
configure: Makefile |
configure: Makefile |
|
|
Makefile: Makefile.in |
Makefile: Makefile.in |
./configure |
sh ./configure --prefix=@prefix@ |
|
|
|
|
HEADERS = datatype.h stackm.h lookup.h extern.h kclass.h |
HEADERS = datatype.h stackm.h lookup.h extern.h kclass.h |
Line 46 HEADERS = datatype.h stackm.h lookup.h extern.h kcla |
|
Line 52 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 |
kanlibK2 = gradedset.o red.o gb.o gbGM.o syz0.o redm.o sugar.o resol.o hilbert.o ecart.o |
kanlibK2 = gradedset.o red.o gb.o gbGM.o syz0.o redm.o sugar.o resol.o hilbert.o ecart.o |
kanlibKclass = Kclass/sample.o Kclass/rawcmo.o Kclass/indeterminate.o |
kanlibKclass = Kclass/sample.o Kclass/rawcmo.o Kclass/indeterminate.o Kclass/tree.o |
|
|
##### Add also to Kclass/Makefile |
##### Add also to Kclass/Makefile |
Kclass/sample.o : $(HEADERS) Kclass/sample.c |
Kclass/sample.o : $(HEADERS) Kclass/sample.c |
(cd Kclass ; make CC=${CC} OpenXM_HOME=../${OpenXM_HOME} CFLAGS='${CFLAGS}' sample.o ) |
(cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' sample.o ) |
Kclass/rawcmo.o : $(HEADERS) Kclass/rawcmo.c |
Kclass/rawcmo.o : $(HEADERS) Kclass/rawcmo.c |
(cd Kclass ; make CC=${CC} OpenXM_HOME=../${OpenXM_HOME} CFLAGS='${CFLAGS}' rawcmo.o ) |
(cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' rawcmo.o ) |
Kclass/indeterminate.o : $(HEADERS) Kclass/indeterminate.c |
Kclass/indeterminate.o : $(HEADERS) Kclass/indeterminate.c |
(cd Kclass ; make CC=${CC} OpenXM_HOME=../${OpenXM_HOME} CFLAGS='${CFLAGS}' indeterminate.o ) |
(cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' indeterminate.o ) |
|
Kclass/tree.o : $(HEADERS) Kclass/tree.c |
|
(cd Kclass ; make CC=${CC} OpenXM_HOME=@prefix@ CFLAGS='${CFLAGS}' tree.o ) |
|
|
|
|
###### |
###### |
Line 89 coeff.o : extern2.h $(HEADERS) |
|
Line 97 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 |
ext.o : extern2.h $(HEADERS) plugin.h plugin.hh Kclass/tree.hh |
sm.o : sm.c $(HEADERS) |
sm.o : sm.c $(HEADERS) |
|
shell.o : shell.c $(HEADERS) plugin.h |
|
|
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 105 $(kanlibS4) : $(HEADERS) gradedset.h |
|
Line 114 $(kanlibS4) : $(HEADERS) gradedset.h |
|
|
|
kanlib.a : $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) kanlib.o ${OpenXM_lib}/libox_pathfinder.a |
kanlib.a : $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) kanlib.o ${OpenXM_lib}/libox_pathfinder.a |
(cd plugin-tmp; /bin/rm -f *.o; ../ar-decomp $(PLUGIN_LIB) ; cp ../kanlib.o .) |
(cd plugin-tmp; /bin/rm -f *.o; ../ar-decomp $(PLUGIN_LIB) ; cp ../kanlib.o .) |
(cd plugin-tmp; ../ar-decomp ${OpenXM_lib}/libox_pathfinder.a) |
(cd plugin-tmp; ../ar-decomp2 ${OpenXM_lib}/libox_pathfinder.a) |
ar ru kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) plugin-tmp/*.o |
if [ ${AR} = ar ]; then \ |
|
ar ru kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) plugin-tmp/*.o ; \ |
|
else \ |
|
libtool -static -o kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) ${OpenXM_lib}/libox_pathfinder.a ; \ |
|
fi |
${RANLIB} kanlib.a |
${RANLIB} kanlib.a |
|
|
############ smacro.h and lookup.h |
############ smacro.h and lookup.h |
Line 115 smacro.h : smacro.sm1 dr.sm1 module1.sm1 sugar.sm1 usa |
|
Line 128 smacro.h : smacro.sm1 dr.sm1 module1.sm1 sugar.sm1 usa |
|
/bin/rm smacro.h |
/bin/rm smacro.h |
cat smacro.sm1 dr.sm1 module1.sm1 sugar.sm1 usage.sm1 $(PLUGIN_SM1) | ./mm >smacro.h |
cat smacro.sm1 dr.sm1 module1.sm1 sugar.sm1 usage.sm1 $(PLUGIN_SM1) | ./mm >smacro.h |
|
|
lookup.h : stackm.h mklookup |
gen-lookup.h : stackm.h mklookup |
touch lookup.h |
touch lookup.h |
/bin/rm lookup.h |
/bin/rm lookup.h |
./mklookup >lookup.h |
./mklookup >lookup.h |
Line 141 plugin.sm1 : Makefile $(PLUGIN_SM1) |
|
Line 154 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 |
|
|
|
|
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 smacro.h *.o *~ *.a mon.out sm1.nogc kanlib.a plugin.h plugin.hh plugin-tmp/*.o Kclass/*.o Kclass/*~ makeconf makeconf.sed |
|
distclean : clean |
|
rm -f Makefile |