Annotation of OpenXM_contrib2/asir2000/include/Risa.tmpl, Revision 1.14
1.11 noro 1: /*
2: * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED
3: * All rights reserved.
4: *
1.14 ! murao 5: * $OpenXM: OpenXM_contrib2/asir2000/include/Risa.tmpl,v 1.13 2000/12/05 01:24:53 noro Exp $
1.11 noro 6: */
1.4 noro 7: #include "config.h"
8:
1.1 noro 9: #define USE_GCC
10: /* #define USE_MPI */
11: /* #define USE_FFT_FLOAT */
12: /* #define USE_LAPACK */
13:
1.2 noro 14: #if defined(LinuxArchitecture)
15: #if LinuxCLibMajorVersion >= 6 || \
16: (LinuxCLibMajorVersion == 5 && LinuxCLibMinorVersion == 99)
1.3 noro 17: STD_CPP_DEFINES = -traditional -Dlinux -D_BSD_SOURCE $(PROJECT_DEFINES)
18: STD_DEFINES = -Dlinux -D_BSD_SOURCE $(PROJECT_DEFINES)
1.9 noro 19: #if 0
20: EXTRA_LDOPTIONS=-static
21: #endif
1.2 noro 22: #endif
23: #endif
24:
1.1 noro 25: #if defined(AlphaArchitecture)
26: #undef USE_GCC
27: #endif
28:
29: #define SUN4M 1
30:
31: #if defined(OpenXM_HOME)
32: ROOTDIR=OpenXM_HOME
33: #else
34: ROOTDIR=/usr/local
35: #endif
36:
37: ASIR_BINDIR=$(ROOTDIR)/bin
38: ASIR_LIBDIR=$(ROOTDIR)/lib/asir
1.7 noro 39: ASIR_INCDIR=$(ROOTDIR)/include/asir
40: GC_INCDIR=$(ROOTDIR)/include/gc
1.1 noro 41:
42: #if defined(USE_GCC)
43: CC= gcc
44: #else
45: CC= cc
46: #endif
47:
1.10 noro 48: CDEBUGFLAGS= -O
1.1 noro 49:
1.8 noro 50: #if defined(SunArchitecture)
51: #if SystemV4
1.1 noro 52: #if defined(SparcArchitecture)
1.10 noro 53: CDEBUGFLAGS= -O -mv8
1.8 noro 54: #else
1.10 noro 55: CDEBUGFLAGS= -O
1.8 noro 56: #endif
1.5 noro 57: CCOPTIONS = -DSYSV -DSVR4
1.1 noro 58: AR=/usr/ccs/bin/ar cqs
1.6 noro 59: /* ranlib is dummy on Solaris 2. */
60: RANLIB=/usr/ccs/bin/ranlib
1.1 noro 61: #endif
62: #if !SystemV4
63: #if defined(USE_GCC)
64: LOCAL_LDFLAGS= -static
65: #else
66: LOCAL_LDFLAGS= -Bstatic
67: #endif
68: #endif
69: #endif
70:
71: #if defined(MipsArchitecture)
72: #if defined(SGIArchitecture)
73: CC=cc -signed -n32 -mips3
74: CDEBUGFLAGS=-O3
75: #else
76: HEAP_START_ADDR=2000000
77: #if defined(RISA_TOP_DIR)
78: CC= cc -Wl,-D -Wl,$(HEAP_START_ADDR)
79: #endif
80: #endif
81: #endif
82:
83: #if defined(AlphaArchitecture)
84: PARIFLAGS = -DLONG_IS_64BIT
85: #else
86: PARIFLAGS = -DLONG_IS_32BIT
87: #endif
1.4 noro 88:
89: #ifdef USE_PARI
90: PARI=1
1.1 noro 91: PARIINC = $(ROOTDIR)/include/pari
92: PARILIB = $(ROOTDIR)/lib/libpari.a
93: #else
94: PARI=0
95: PARIINC = .
96: PARILIB =
97: #endif
98:
99: #ifdef USE_LAPACK
100: LAPACK=1
101: LAPACKLIB = -llapack -lblas -lI77 -lF77
102: #else
103: LAPACK=0
104: LAPACKLIB =
105: #endif
106:
107: #ifdef USE_PLOT
108: DO_PLOT=1
109: #else
110: DO_PLOT=0
111: #endif
112:
113: #ifdef USE_FFT_FLOAT
114: USE_FLOAT=1
115: #else
116: USE_FLOAT=0
117: #endif
118:
119: #ifdef USE_MPI
120: MPI=1
121: MPILIB=-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread
122: MPIINC=/opt/FJSVmpi2/include
123: #else
124: MPI=0
125: MPILIB=
126: MPIINC=.
127: #endif
128:
129: #if !defined(NullParameter)
130: #define NullParameter
131: #endif
132:
133: INCLUDES= -I$(TOP)/include -I$(TOP)/parse -I$(TOP)/io -I$(PARIINC) -I$(MPIINC)
1.14 ! murao 134: DEFINES= -DPARI=$(PARI) -DLAPACK=$(LAPACK) -DDO_PLOT=$(DO_PLOT) -DUSE_FLOAT=$(USE_FLOAT) $(PARIFLAGS) -DMPI=$(MPI) $(LINUX_EXTRA_DEFINES)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>