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