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