Annotation of OpenXM_contrib2/asir2000/include/Risa.tmpl, Revision 1.4
1.4 ! noro 1: /* $OpenXM: OpenXM_contrib2/asir2000/include/Risa.tmpl,v 1.3 2000/02/04 09:27:32 noro Exp $ */
! 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
44: AR=/usr/ccs/bin/ar cqs
45: #endif
46: #if !SystemV4
47: #if defined(USE_GCC)
48: LOCAL_LDFLAGS= -static
49: #else
50: LOCAL_LDFLAGS= -Bstatic
51: #endif
52: #endif
53: #endif
54:
55: #if defined(MipsArchitecture)
56: #if defined(SGIArchitecture)
57: CC=cc -signed -n32 -mips3
58: CDEBUGFLAGS=-O3
59: #else
60: HEAP_START_ADDR=2000000
61: #if defined(RISA_TOP_DIR)
62: CC= cc -Wl,-D -Wl,$(HEAP_START_ADDR)
63: #endif
64: #endif
65: #endif
66:
67: #if defined(AlphaArchitecture)
68: PARIFLAGS = -DLONG_IS_64BIT
69: #else
70: PARIFLAGS = -DLONG_IS_32BIT
71: #endif
1.4 ! noro 72:
! 73: #ifdef USE_PARI
! 74: PARI=1
1.1 noro 75: PARIINC = $(ROOTDIR)/include/pari
76: PARILIB = $(ROOTDIR)/lib/libpari.a
77: #else
78: PARI=0
79: PARIINC = .
80: PARILIB =
81: #endif
82:
83: #ifdef USE_INET
84: INET=1
85: #else
86: INET=0
87: #endif
88:
89: #ifdef USE_LAPACK
90: LAPACK=1
91: LAPACKLIB = -llapack -lblas -lI77 -lF77
92: #else
93: LAPACK=0
94: LAPACKLIB =
95: #endif
96:
97: #ifdef USE_PLOT
98: DO_PLOT=1
99: #else
100: DO_PLOT=0
101: #endif
102:
103: #ifdef USE_FFT_FLOAT
104: USE_FLOAT=1
105: #else
106: USE_FLOAT=0
107: #endif
108:
109: #ifdef USE_MPI
110: MPI=1
111: MPILIB=-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread
112: MPIINC=/opt/FJSVmpi2/include
113: #else
114: MPI=0
115: MPILIB=
116: MPIINC=.
117: #endif
118:
119: #if !defined(NullParameter)
120: #define NullParameter
121: #endif
122:
123: INCLUDES= -I$(TOP)/include -I$(TOP)/parse -I$(TOP)/io -I$(PARIINC) -I$(MPIINC)
1.2 noro 124: 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>