[BACK]Return to Risa.tmpl CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / include

Annotation of OpenXM_contrib2/asir2000/include/Risa.tmpl, Revision 1.21

1.11      noro        1: /*
                      2:  * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
                      3:  * All rights reserved.
                      4:  *
1.21    ! noro        5:  * $OpenXM: OpenXM_contrib2/asir2000/include/Risa.tmpl,v 1.20 2001/03/19 01:26:35 noro Exp $
1.11      noro        6: */
1.4       noro        7: #include "config.h"
                      8:
1.1       noro        9: #define USE_GCC
                     10: /* #define USE_MPI */
                     11: /* #define USE_FFT_FLOAT */
                     12: /* #define USE_LAPACK */
1.15      saito      13: /* #define USE_FEP */
1.18      saito      14: /* #undef OpenXM_HOME */
1.20      noro       15: #define USE_INTERVAL
1.1       noro       16:
1.2       noro       17: #if defined(LinuxArchitecture)
                     18: #if LinuxCLibMajorVersion >= 6 || \
                     19:     (LinuxCLibMajorVersion == 5 && LinuxCLibMinorVersion == 99)
1.3       noro       20: STD_CPP_DEFINES = -traditional -Dlinux -D_BSD_SOURCE $(PROJECT_DEFINES)
                     21: STD_DEFINES = -Dlinux -D_BSD_SOURCE $(PROJECT_DEFINES)
1.9       noro       22: #if 0
                     23: EXTRA_LDOPTIONS=-static
                     24: #endif
1.2       noro       25: #endif
                     26: #endif
                     27:
1.1       noro       28: #if defined(AlphaArchitecture)
                     29: #undef USE_GCC
                     30: #endif
                     31:
                     32: #define SUN4M 1
                     33:
                     34: #if defined(OpenXM_HOME)
                     35: ROOTDIR=OpenXM_HOME
                     36: #else
                     37: ROOTDIR=/usr/local
                     38: #endif
                     39:
                     40: ASIR_BINDIR=$(ROOTDIR)/bin
                     41: ASIR_LIBDIR=$(ROOTDIR)/lib/asir
1.7       noro       42: ASIR_INCDIR=$(ROOTDIR)/include/asir
                     43: GC_INCDIR=$(ROOTDIR)/include/gc
1.1       noro       44:
                     45: #if defined(USE_GCC)
                     46: CC= gcc
                     47: #else
                     48: CC= cc
                     49: #endif
                     50:
1.19      noro       51: CDEBUGFLAGS= -O
1.1       noro       52:
1.8       noro       53: #if defined(SunArchitecture)
                     54: #if SystemV4
1.1       noro       55: #if defined(SparcArchitecture)
1.10      noro       56: CDEBUGFLAGS= -O -mv8
1.8       noro       57: #else
1.10      noro       58: CDEBUGFLAGS= -O
1.8       noro       59: #endif
1.5       noro       60: CCOPTIONS = -DSYSV -DSVR4
1.1       noro       61: AR=/usr/ccs/bin/ar cqs
1.6       noro       62: /* ranlib is dummy on Solaris 2. */
                     63: RANLIB=/usr/ccs/bin/ranlib
1.1       noro       64: #endif
                     65: #if !SystemV4
                     66: #if defined(USE_GCC)
                     67: LOCAL_LDFLAGS= -static
                     68: #else
                     69: LOCAL_LDFLAGS= -Bstatic
                     70: #endif
                     71: #endif
                     72: #endif
                     73:
                     74: #if defined(MipsArchitecture)
                     75: #if defined(SGIArchitecture)
                     76: CC=cc -signed -n32 -mips3
                     77: CDEBUGFLAGS=-O3
                     78: #else
                     79: HEAP_START_ADDR=2000000
                     80: #if defined(RISA_TOP_DIR)
                     81: CC= cc -Wl,-D -Wl,$(HEAP_START_ADDR)
                     82: #endif
                     83: #endif
                     84: #endif
                     85:
                     86: #if defined(AlphaArchitecture)
1.21    ! noro       87: CCOPTIONS =
1.1       noro       88: PARIFLAGS = -DLONG_IS_64BIT
                     89: #else
                     90: PARIFLAGS = -DLONG_IS_32BIT
                     91: #endif
1.4       noro       92:
                     93: #ifdef USE_PARI
                     94: PARI=1
1.1       noro       95: PARIINC = $(ROOTDIR)/include/pari
1.17      saito      96: #if defined(OpenXM_HOME)
1.1       noro       97: PARILIB = $(ROOTDIR)/lib/libpari.a
1.17      saito      98: #else
1.16      saito      99: PARILIB = -L/usr/local/lib -lpari
1.17      saito     100: #endif
1.1       noro      101: #else
                    102: PARI=0
                    103: PARIINC = .
                    104: PARILIB =
                    105: #endif
                    106:
                    107: #ifdef USE_LAPACK
                    108: LAPACK=1
                    109: LAPACKLIB = -llapack -lblas -lI77 -lF77
                    110: #else
                    111: LAPACK=0
                    112: LAPACKLIB =
                    113: #endif
                    114:
                    115: #ifdef USE_PLOT
                    116: DO_PLOT=1
                    117: #else
                    118: DO_PLOT=0
                    119: #endif
                    120:
                    121: #ifdef USE_FFT_FLOAT
                    122: USE_FLOAT=1
                    123: #else
                    124: USE_FLOAT=0
                    125: #endif
                    126:
                    127: #ifdef USE_MPI
                    128: MPI=1
                    129: MPILIB=-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread
                    130: MPIINC=/opt/FJSVmpi2/include
                    131: #else
                    132: MPI=0
                    133: MPILIB=
                    134: MPIINC=.
                    135: #endif
                    136:
1.15      saito     137: #ifdef USE_FEP
                    138: FEP=1
1.17      saito     139: #if defined(OpenXM_HOME)
                    140: FEPLIB= $(ROOTDIR)/lib/libreadline.a
                    141: #else
1.15      saito     142: FEPLIB = -lreadline -ltermcap
1.17      saito     143: #endif
1.15      saito     144: #else
                    145: FEP=0
                    146: FEPLIB =
                    147: #endif
                    148:
                    149:
1.1       noro      150: #if !defined(NullParameter)
                    151: #define NullParameter
                    152: #endif
                    153:
1.15      saito     154: #ifdef USE_INTERVAL
                    155: INTERVALDEF = -DINTERVAL -DITVDEBUG
                    156: INTERVALDEF = -DINTERVAL
                    157: #else
                    158: INTERVALDEF =
                    159: #endif
                    160:
1.1       noro      161: INCLUDES= -I$(TOP)/include -I$(TOP)/parse -I$(TOP)/io -I$(PARIINC) -I$(MPIINC)
1.15      saito     162: DEFINES= $(INTERVALDEF) -DINET=$(INET) -DPARI=$(PARI) -DLAPACK=$(LAPACK) -DDO_PLOT=$(DO_PLOT) -DUSE_FLOAT=$(USE_FLOAT) $(PARIFLAGS) -DHMEXT -DMPI=$(MPI) -DFEP=$(FEP) $(LINUX_EXTRA_DEFINES)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>