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