Annotation of OpenXM_contrib2/asir2000/include/Risa.tmpl, Revision 1.6
1.6 ! noro 1: /* $OpenXM: OpenXM_contrib2/asir2000/include/Risa.tmpl,v 1.5 2000/03/01 02:29:18 noro Exp $ */
1.4 noro 2: #include "config.h"
3:
1.1 noro 4: #define USE_GCC
5: #define USE_INET
6: /* #define USE_MPI */
7: /* #define USE_FFT_FLOAT */
8: /* #define USE_LAPACK */
9:
1.2 noro 10: #if defined(LinuxArchitecture)
11: #if LinuxCLibMajorVersion >= 6 || \
12: (LinuxCLibMajorVersion == 5 && LinuxCLibMinorVersion == 99)
1.3 noro 13: STD_CPP_DEFINES = -traditional -Dlinux -D_BSD_SOURCE $(PROJECT_DEFINES)
14: STD_DEFINES = -Dlinux -D_BSD_SOURCE $(PROJECT_DEFINES)
1.2 noro 15: #endif
16: #endif
17:
1.1 noro 18: #if defined(AlphaArchitecture)
19: #undef USE_GCC
20: #endif
21:
22: #define SUN4M 1
23:
24: #if defined(OpenXM_HOME)
25: ROOTDIR=OpenXM_HOME
26: #else
27: ROOTDIR=/usr/local
28: #endif
29:
30: ASIR_BINDIR=$(ROOTDIR)/bin
31: ASIR_LIBDIR=$(ROOTDIR)/lib/asir
32:
33: #if defined(USE_GCC)
34: CC= gcc
35: #else
36: CC= cc
37: #endif
38:
39: CDEBUGFLAGS= -O6
40:
41: #if defined(SparcArchitecture)
42: #if SystemV4
43: CDEBUGFLAGS= -O6 -mv8
1.5 noro 44: CCOPTIONS = -DSYSV -DSVR4
1.1 noro 45: AR=/usr/ccs/bin/ar cqs
1.6 ! noro 46: /* ranlib is dummy on Solaris 2. */
! 47: RANLIB=/usr/ccs/bin/ranlib
1.1 noro 48: #endif
49: #if !SystemV4
50: #if defined(USE_GCC)
51: LOCAL_LDFLAGS= -static
52: #else
53: LOCAL_LDFLAGS= -Bstatic
54: #endif
55: #endif
56: #endif
57:
58: #if defined(MipsArchitecture)
59: #if defined(SGIArchitecture)
60: CC=cc -signed -n32 -mips3
61: CDEBUGFLAGS=-O3
62: #else
63: HEAP_START_ADDR=2000000
64: #if defined(RISA_TOP_DIR)
65: CC= cc -Wl,-D -Wl,$(HEAP_START_ADDR)
66: #endif
67: #endif
68: #endif
69:
70: #if defined(AlphaArchitecture)
71: PARIFLAGS = -DLONG_IS_64BIT
72: #else
73: PARIFLAGS = -DLONG_IS_32BIT
74: #endif
1.4 noro 75:
76: #ifdef USE_PARI
77: PARI=1
1.1 noro 78: PARIINC = $(ROOTDIR)/include/pari
79: PARILIB = $(ROOTDIR)/lib/libpari.a
80: #else
81: PARI=0
82: PARIINC = .
83: PARILIB =
84: #endif
85:
86: #ifdef USE_INET
87: INET=1
88: #else
89: INET=0
90: #endif
91:
92: #ifdef USE_LAPACK
93: LAPACK=1
94: LAPACKLIB = -llapack -lblas -lI77 -lF77
95: #else
96: LAPACK=0
97: LAPACKLIB =
98: #endif
99:
100: #ifdef USE_PLOT
101: DO_PLOT=1
102: #else
103: DO_PLOT=0
104: #endif
105:
106: #ifdef USE_FFT_FLOAT
107: USE_FLOAT=1
108: #else
109: USE_FLOAT=0
110: #endif
111:
112: #ifdef USE_MPI
113: MPI=1
114: MPILIB=-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread
115: MPIINC=/opt/FJSVmpi2/include
116: #else
117: MPI=0
118: MPILIB=
119: MPIINC=.
120: #endif
121:
122: #if !defined(NullParameter)
123: #define NullParameter
124: #endif
125:
126: INCLUDES= -I$(TOP)/include -I$(TOP)/parse -I$(TOP)/io -I$(PARIINC) -I$(MPIINC)
1.2 noro 127: DEFINES= -DINET=$(INET) -DPARI=$(PARI) -DLAPACK=$(LAPACK) -DDO_PLOT=$(DO_PLOT) -DUSE_FLOAT=$(USE_FLOAT) $(PARIFLAGS) -DHMEXT -DMPI=$(MPI) $(LINUX_EXTRA_DEFINES)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>