Annotation of OpenXM_contrib2/asir2000/include/Risa.tmpl, Revision 1.8
1.8 ! noro 1: /* $OpenXM: OpenXM_contrib2/asir2000/include/Risa.tmpl,v 1.7 2000/03/10 03:05:01 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
1.7 noro 32: ASIR_INCDIR=$(ROOTDIR)/include/asir
33: GC_INCDIR=$(ROOTDIR)/include/gc
1.1 noro 34:
35: #if defined(USE_GCC)
36: CC= gcc
37: #else
38: CC= cc
39: #endif
40:
41: CDEBUGFLAGS= -O6
42:
1.8 ! noro 43: #if defined(SunArchitecture)
! 44: #if SystemV4
1.1 noro 45: #if defined(SparcArchitecture)
46: CDEBUGFLAGS= -O6 -mv8
1.8 ! noro 47: #else
! 48: CDEBUGFLAGS= -O6
! 49: #endif
1.5 noro 50: CCOPTIONS = -DSYSV -DSVR4
1.1 noro 51: AR=/usr/ccs/bin/ar cqs
1.6 noro 52: /* ranlib is dummy on Solaris 2. */
53: RANLIB=/usr/ccs/bin/ranlib
1.1 noro 54: #endif
55: #if !SystemV4
56: #if defined(USE_GCC)
57: LOCAL_LDFLAGS= -static
58: #else
59: LOCAL_LDFLAGS= -Bstatic
60: #endif
61: #endif
62: #endif
63:
64: #if defined(MipsArchitecture)
65: #if defined(SGIArchitecture)
66: CC=cc -signed -n32 -mips3
67: CDEBUGFLAGS=-O3
68: #else
69: HEAP_START_ADDR=2000000
70: #if defined(RISA_TOP_DIR)
71: CC= cc -Wl,-D -Wl,$(HEAP_START_ADDR)
72: #endif
73: #endif
74: #endif
75:
76: #if defined(AlphaArchitecture)
77: PARIFLAGS = -DLONG_IS_64BIT
78: #else
79: PARIFLAGS = -DLONG_IS_32BIT
80: #endif
1.4 noro 81:
82: #ifdef USE_PARI
83: PARI=1
1.1 noro 84: PARIINC = $(ROOTDIR)/include/pari
85: PARILIB = $(ROOTDIR)/lib/libpari.a
86: #else
87: PARI=0
88: PARIINC = .
89: PARILIB =
90: #endif
91:
92: #ifdef USE_INET
93: INET=1
94: #else
95: INET=0
96: #endif
97:
98: #ifdef USE_LAPACK
99: LAPACK=1
100: LAPACKLIB = -llapack -lblas -lI77 -lF77
101: #else
102: LAPACK=0
103: LAPACKLIB =
104: #endif
105:
106: #ifdef USE_PLOT
107: DO_PLOT=1
108: #else
109: DO_PLOT=0
110: #endif
111:
112: #ifdef USE_FFT_FLOAT
113: USE_FLOAT=1
114: #else
115: USE_FLOAT=0
116: #endif
117:
118: #ifdef USE_MPI
119: MPI=1
120: MPILIB=-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread
121: MPIINC=/opt/FJSVmpi2/include
122: #else
123: MPI=0
124: MPILIB=
125: MPIINC=.
126: #endif
127:
128: #if !defined(NullParameter)
129: #define NullParameter
130: #endif
131:
132: INCLUDES= -I$(TOP)/include -I$(TOP)/parse -I$(TOP)/io -I$(PARIINC) -I$(MPIINC)
1.2 noro 133: 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>