version 1.3, 2002/02/09 06:21:02 |
version 1.6, 2003/07/21 13:36:41 |
|
|
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.2 2002/02/04 07:58:28 takayama Exp $ |
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile.in,v 1.5 2003/07/21 12:41:24 takayama Exp $ |
all : sm1 |
all : sm1 |
# .SUFFIXES: |
# .SUFFIXES: |
########################## configuration ############################## |
########################## configuration ############################## |
TOPDIR=../../../../OpenXM |
TOPDIR=../../../../OpenXM |
OpenXM_HOME=${TOPDIR} |
OpenXM_HOME=${TOPDIR} |
OpenXM_include=$(OpenXM_HOME)/include |
OpenXM_include=$(OpenXM_HOME)/include |
|
OpenXM_lib=$(OpenXM_HOME)/lib |
#### What C compiler do you use? |
#### What C compiler do you use? |
CC = gcc |
CC = gcc |
#### Gargabe collector? If GC = nogc.c, then you need to define -DNOGC. |
#### Gargabe collector? If GC = nogc.c, then you need to define -DNOGC. |
|
|
|
|
## Library you need on Solaris 2.* |
## Library you need on Solaris 2.* |
SOLARISLIB = -lnsl -lsocket /usr/ucblib/libucb.a |
SOLARISLIB = -lnsl -lsocket /usr/ucblib/libucb.a |
|
LIBOX_PATHFINDER = -lox_pathfinder |
|
|
################### Plugin modules |
################### Plugin modules |
## Note that you need to make PLUGIN_LIB by your hand. |
## Note that you need to make PLUGIN_LIB by your hand. |
Line 88 kanlibS2 = scanner.o scanner2.o list.o global.o kclass |
|
Line 90 kanlibS2 = scanner.o scanner2.o list.o global.o kclass |
|
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 |
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 |
|
|
##### Add also to Kclass/Makefile |
##### Add also to Kclass/Makefile |
Line 110 gbGM.o : extern2.h gradedset.h $(HEADERS) |
|
Line 112 gbGM.o : extern2.h gradedset.h $(HEADERS) |
|
gb.o : extern2.h gradedset.h $(HEADERS) |
gb.o : extern2.h gradedset.h $(HEADERS) |
red.o : extern2.h gradedset.h $(HEADERS) |
red.o : extern2.h gradedset.h $(HEADERS) |
gradedset.o : extern2.h gradedset.h $(HEADERS) |
gradedset.o : extern2.h gradedset.h $(HEADERS) |
|
ecart.o : extern2.h gradedset.h $(HEADERS) |
|
|
######## |
######## |
matrix.o : extern2.h matrix.h $(HEADERS) |
matrix.o : extern2.h matrix.h $(HEADERS) |
|
|
sm1 : sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) ${GC} |
sm1 : sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) ${GC} |
if test `uname` = "SunOS" ; \ |
if test `uname` = "SunOS" ; \ |
then \ |
then \ |
$(CC) -I$(OpenXM_include) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) ${GC} $(PLUGIN_LINKFLAG) $(SOLARISLIB) ; \ |
$(CC) -I$(OpenXM_include) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) ${GC} $(PLUGIN_LINKFLAG) $(SOLARISLIB) ${LIBOX_PATHFINDER} ; \ |
else \ |
else \ |
$(CC) ${STATIC_LINK_FLAG} -I$(OpenXM_include) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) ${GC} $(PLUGIN_LINKFLAG) ; \ |
$(CC) ${STATIC_LINK_FLAG} -I$(OpenXM_include) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) ${GC} $(PLUGIN_LINKFLAG) ${LIBOX_PATHFINDER} ; \ |
fi |
fi |
|
|
|
|
Line 146 $(kanlibS3) : $(HEADERS) gradedset.h extern2.h |
|
Line 149 $(kanlibS3) : $(HEADERS) gradedset.h extern2.h |
|
$(kanlibS4) : $(HEADERS) gradedset.h |
$(kanlibS4) : $(HEADERS) gradedset.h |
|
|
|
|
kanlib.a : $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) kanlib.o |
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) |
ar ru kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) plugin-tmp/*.o |
ar ru kanlib.a $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) plugin-tmp/*.o |
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib kanlib.a |
../gc/if_not_there ../gc/on_sparc_sunos5 ranlib kanlib.a |
|
|