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