version 1.1, 1999/10/08 02:12:01 |
version 1.5, 2000/01/19 02:43:13 |
|
|
|
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile,v 1.4 2000/01/18 09:46:52 takayama Exp $ |
all : sm1 |
all : sm1 |
|
# .SUFFIXES: |
########################## configuration ############################## |
########################## configuration ############################## |
#### What C compiler do you use? |
#### What C compiler do you use? |
CC = gcc |
CC = gcc |
|
|
|
|
GMP_HOME = ../gmp |
GMP_HOME = ../gmp |
GMP_HOME2 = ../../gmp |
GMP_HOME2 = ../../gmp |
LIBGMP=$(GMP_HOME)/libgmp.a |
LIBGMP = $(GMP_HOME)/libgmp.a |
## This line is for buggy linux-gmp. |
## This line is for buggy linux-gmp. |
##LIBGMP = $(GMP_HOME)/libgmp.a $(GMP_HOME)/mpn/libmpn.a |
##LIBGMP = $(GMP_HOME)/libgmp.a $(GMP_HOME)/mpn/libmpn.a |
|
|
SOLARISLIB = |
## Library you need on Solaris 2.* |
## If you are using Solaris 2.x and you need to compile sm1 with socket |
SOLARISLIB = -lnsl -lsocket /usr/ucblib/libucb.a |
## interface (make sm1_socket), uncommnet the following line. |
|
## SOLARISLIB = -lnsl -lsocket /usr/ucblib/libucb.a |
|
|
|
################### 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 128 ext.o : extern2.h $(HEADERS) plugin.h plugin.hh |
|
Line 128 ext.o : extern2.h $(HEADERS) plugin.h plugin.hh |
|
MSG0 = msg0.o |
MSG0 = msg0.o |
|
|
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) |
$(CC) -I$(GMP_HOME) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) $(GC) $(PLUGIN_LINKFLAG) $(SOLARISLIB) |
if test `uname` = "SunOS" ; \ |
|
then \ |
|
$(CC) -I$(GMP_HOME) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) $(GC) $(PLUGIN_LINKFLAG) $(SOLARISLIB) ; \ |
|
else \ |
|
$(CC) -I$(GMP_HOME) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) $(GC) $(PLUGIN_LINKFLAG) ; \ |
|
fi |
|
|
|
|
$(kanlibP) : $(HEADERS) gradedset.h extern2.h |
$(kanlibP) : $(HEADERS) gradedset.h extern2.h |
$(kanlibS1) : $(HEADERS) smacro.h gradedset.h |
$(kanlibS1) : $(HEADERS) smacro.h gradedset.h |