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