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

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