version 1.2, 1999/11/03 00:22:49 |
version 1.8, 2000/03/13 06:46:39 |
|
|
### $OpenXM$ |
### $OpenXM: OpenXM/src/kan96xx/Kan/Makefile,v 1.7 2000/03/11 01:18:25 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 |
|
STATIC_LINK_FLAG = -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 |
|
|
Line 131 sm1 : sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanl |
|
Line 131 sm1 : sm.c $(kanlibS1) $(kanlibS2) $(kanlibS3) $(kanl |
|
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) -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) ${STATIC_LINK_FLAG} -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 |
|
|
|
|