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

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