version 1.2, 1999/11/03 00:22:49 |
version 1.7, 2000/03/11 01:18:25 |
|
|
### $OpenXM$ |
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile,v 1.6 2000/02/01 04:24:20 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 |
#### Gargabe collector? If GC = nogc.c, then you need to define -DNOGC. |
#### Gargabe collector? If GC = nogc.c, then you need to define -DNOGC. |
GC = ../gc/gc.a |
GC = ../gc/gc.a |
##GC = /fuji/taka/noro/libgc.a |
|
##GC = /dosc/work/noro/libgc.a |
|
#GC = nogc.c |
#GC = nogc.c |
#### -D options |
#### -D options |
DDD = |
DDD = -D_BSD_SOURCE |
#DDD = -DNOGC |
#DDD = -DNOGC -D_BSD_SOURCE |
|
LINKFLAG = -static |
|
|
#### Optimization level etc. |
#### Optimization level etc. |
#CFLAGS = |
#CFLAGS = |
|
|
|
|
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 |
|
|
|
|
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$(GMP_HOME) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) $(GC) $(PLUGIN_LINKFLAG) $(SOLARISLIB) ; \ |
$(CC) ${LINKFLAG} -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 \ |
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) ; \ |
$(CC) ${LINKFLAG} -I$(GMP_HOME) $(CFLAGS) $(DDD) -o sm1 sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanlibS4) $(kanlibP) $(kanlibK) $(kanlibK2) $(kanlibKclass) $(PLUGIN_LIB) $(LIBGMP) $(GC) $(PLUGIN_LINKFLAG) ; \ |
fi |
fi |
|
|
|
|