[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.25

1.11      noro        1: /*
                      2:  * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
                      3:  * All rights reserved.
                      4:  *
1.25    ! noro        5:  * $OpenXM: OpenXM_contrib2/asir2000/include/Risa.tmpl,v 1.24 2001/06/15 07:56:05 noro Exp $
1.11      noro        6: */
1.4       noro        7: #include "config.h"
                      8:
1.23      noro        9: /* #define USE_GCC */
1.1       noro       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.22      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.23      noro       28: #if defined(AlphaArchitecture) || defined(DarwinArchitecture)
1.1       noro       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.25    ! noro       51: CDEBUGFLAGS= -O3
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
1.23      noro       91: #endif
                     92:
                     93: #if defined(DarwinArchitecture)
                     94: CCOPTIONS =
1.24      noro       95: #endif
                     96:
                     97: #if defined(AIXArchitecture)
                     98: CC = cc -qchars=signed
1.1       noro       99: #endif
1.4       noro      100:
                    101: #ifdef USE_PARI
                    102: PARI=1
1.1       noro      103: PARIINC = $(ROOTDIR)/include/pari
1.17      saito     104: #if defined(OpenXM_HOME)
1.1       noro      105: PARILIB = $(ROOTDIR)/lib/libpari.a
1.17      saito     106: #else
1.16      saito     107: PARILIB = -L/usr/local/lib -lpari
1.17      saito     108: #endif
1.1       noro      109: #else
                    110: PARI=0
                    111: PARIINC = .
                    112: PARILIB =
                    113: #endif
                    114:
                    115: #ifdef USE_LAPACK
                    116: LAPACK=1
                    117: LAPACKLIB = -llapack -lblas -lI77 -lF77
                    118: #else
                    119: LAPACK=0
                    120: LAPACKLIB =
                    121: #endif
                    122:
                    123: #ifdef USE_PLOT
                    124: DO_PLOT=1
                    125: #else
                    126: DO_PLOT=0
                    127: #endif
                    128:
                    129: #ifdef USE_FFT_FLOAT
                    130: USE_FLOAT=1
                    131: #else
                    132: USE_FLOAT=0
                    133: #endif
                    134:
                    135: #ifdef USE_MPI
                    136: MPI=1
                    137: MPILIB=-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread
                    138: MPIINC=/opt/FJSVmpi2/include
                    139: #else
                    140: MPI=0
                    141: MPILIB=
                    142: MPIINC=.
                    143: #endif
                    144:
1.15      saito     145: #ifdef USE_FEP
                    146: FEP=1
1.17      saito     147: #if defined(OpenXM_HOME)
                    148: FEPLIB= $(ROOTDIR)/lib/libreadline.a
                    149: #else
1.15      saito     150: FEPLIB = -lreadline -ltermcap
1.17      saito     151: #endif
1.15      saito     152: #else
                    153: FEP=0
                    154: FEPLIB =
                    155: #endif
                    156:
                    157:
1.1       noro      158: #if !defined(NullParameter)
                    159: #define NullParameter
                    160: #endif
                    161:
1.15      saito     162: #ifdef USE_INTERVAL
                    163: INTERVALDEF = -DINTERVAL -DITVDEBUG
                    164: INTERVALDEF = -DINTERVAL
                    165: #else
                    166: INTERVALDEF =
                    167: #endif
                    168:
1.1       noro      169: INCLUDES= -I$(TOP)/include -I$(TOP)/parse -I$(TOP)/io -I$(PARIINC) -I$(MPIINC)
1.15      saito     170: 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>