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