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