-
Notifications
You must be signed in to change notification settings - Fork 16
/
GNUmakefile.donev
202 lines (169 loc) · 4.92 KB
/
GNUmakefile.donev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
PRECISION = FLOAT
PRECISION = DOUBLE
PROFILE = TRUE
PROFILE = FALSE
#COMP = CC
#FCOMP = ftn
# for davinci (after module load intel)
COMP = Intel
FCOMP = Intel
#COMP = xlC
#FCOMP = xlf
#COMP = g++
#FCOMP = gfortran
#DEBUG = TRUE
DEBUG = FALSE
#DIM = 2
DIM = 3
MKVERBOSE := t
USE_ARRAYVIEW = TRUE
USE_ARRAYVIEW = FALSE
USE_MPI=TRUE
USE_MPI=FALSE
USE_VOLRENDER = FALSE
#USE_VOLRENDER = TRUE
USE_PARALLELVOLRENDER = TRUE
USE_PARALLELVOLRENDER = FALSE
PBOXLIB_HOME = ..
TOP = $(PBOXLIB_HOME)
include ../mk/Make.defs
EBASE = amrvis
HERE = .
INCLUDE_LOCATIONS += $(HERE)
INCLUDE_LOCATIONS += ../BoxLib
DEFINES += -DBL_PARALLEL_IO
CXXFLAGS += -wd1881
############################################### x includes and libraries
ifeq ($(MACHINE), OSF1)
LIBRARIES += -lXm -lXt -lX11
endif
ifeq ($(WHICHLINUX), ATLAS)
LIBRARY_LOCATIONS += /usr/X11R6/lib64
endif
ifeq ($(WHICHLINUX), DAVINCI)
INCLUDE_LOCATIONS += /usr/common/graphics/openmotif/include
INCLUDE_LOCATIONS += /usr/common/graphics/openmotif/include/Xm
LIBRARY_LOCATIONS += /usr/X11R6/lib
LIBRARY_LOCATIONS += /usr/common/graphics/openmotif/lib
# LIBRARIES += -lXm -lXp -lXt -lXext -lSM -lICE -lXpm -lX11
endif
ifeq ($(MACHINE), Darwin)
INCLUDE_LOCATIONS += /usr/X11R6/include
LIBRARY_LOCATIONS += /usr/X11R6/lib
# LIBRARIES += -lXm -lXp -lXt -lXext -lSM -lICE -lXpm -lX11
LIBRARIES += -lXm -lXp -lXt -lX11
LDFLAGS += -bind_at_load
endif
ifeq ($(MACHINE), Linux)
ifeq ($(WHICHLINUX), INTREPID)
# NOTE: on intrepid, use g++ and gfortran
LIBRARY_LOCATIONS += /usr/X11/lib
INCLUDE_LOCATIONS += /usr/X11/include
LIBRARY_LOCATIONS += /usr/lib
else
LIBRARY_LOCATIONS += /usr/lib64
INCLUDE_LOCATIONS += /usr/include/Xm
INCLUDE_LOCATIONS += /usr/include/
endif
LIBRARIES += -lXm -lXp -lXt -lXext -lSM -lICE -lXpm -lX11
# Joe Grcar 1/9/03: per Vince, the following line is needed on battra
# so I have left it here in commented-out form.
# LIBRARIES += -LlibXm.so.2.1
endif
ifeq ($(MACHINE), AIX)
INCLUDE_LOCATIONS += /usr/include/X11
INCLUDE_LOCATIONS += /usr/include/Xm
#INCLUDE_LOCATIONS += /usr/include/X11/Xaw
LIBRARIES += -lXm -lXt -lX11
DEFINES += -D_ALL_SOURCE
endif
ifeq ($(MACHINE),CRAYX1)
INCLUDE_LOCATIONS += /opt/ctl/motif/2.1.0.0/include
LIBRARY_LOCATIONS += /opt/ctl/motif/2.1.0.0/lib
LIBRARIES += -lXm
LIBRARIES += -lXp
LIBRARIES += -lXext
LIBRARIES += -lSM
LIBRARIES += -lICE
LIBRARIES += -lXt
LIBRARIES += -lX11
endif
ifeq ($(MACHINE), CYGWIN_NT)
#INCLUDE_LOCATIONS += /cygdrive/c/usr/X11R6/include
#LIBRARY_LOCATIONS += /cygdrive/c/usr/X11R6/lib
INCLUDE_LOCATIONS += /usr/X11R6/include
LIBRARY_LOCATIONS += /usr/X11R6/lib
#CXXFLAGS += -fpermissive
#CXXFLAGS += -x c++
# LDFLAGS += -noinhibit-exec
LIBRARIES += -lXm -lXt -lSM -lICE -lXpm -lX11
endif
# JFG: this line is needed on hive
# LIBRARY_LOCATIONS += /usr/X11R6/lib64
############################################### arrayview
ifeq (USE_ARRAYVIEW, TRUE)
DEFINES += -DBL_USE_ARRAYVIEW
ARRAYVIEWDIR = .
INCLUDE_LOCATIONS += $(ARRAYVIEWDIR)
#LIBRARY_LOCATIONS += $(ARRAYVIEWDIR)
#LIBRARIES += -larrayview$(DIM)d.$(machineSuffix)
endif
############################################### volume rendering
ifeq ($(DIM),3)
ifeq ($(MACHINE), T3E)
USE_VOLRENDER = FALSE
endif
ifeq ($(MACHINE), AIX)
# USE_VOLRENDER = FALSE
endif
ifeq ($(USE_VOLRENDER), TRUE)
DEFINES += -DBL_VOLUMERENDER
#VOLPACKDIR = ../../volpack-1.0b3
#VOLPACKDIR = $(PBOXLIB_HOME)/volpack
VOLPACKDIR = ../volpack
#VOLPACKDIR = ../../volpack.test
#VOLPACKDIR = ../../volpack
INCLUDE_LOCATIONS += $(VOLPACKDIR)
LIBRARY_LOCATIONS += $(VOLPACKDIR)
LIBRARIES += -lvolpack
#DEFINES += -DVOLUMEBOXES
endif
endif
# Intel v10 patch by A. Donev (may be necessary on other machines also)
LIBRARIES += /home/donev/HPC/Compilers/icc/lib/intel64/libirc.a
############################################### parallel volume rendering
ifeq ($(DIM),3)
ifeq ($(USE_PARALLELVOLRENDER), TRUE)
DEFINES += -DBL_PARALLELVOLUMERENDER
endif
endif
############################################### other defines
#DEFINES += -DSCROLLBARERROR
#DEFINES += -DFIXDENORMALS
############################################### float fix
# if we are using float override FOPTF which sets -real_size 64
ifeq ($(PRECISION), FLOAT)
ifeq ($(MACHINE), OSF1)
FDEBF += -C
FDEBF += -fpe2
#FDEBF += -fpe0
FOPTF = -fast -O5 -tune ev5
endif
endif
#FDEBF += -fpe1
#FOPTF = -fpe1
#XTRALIBS +=
include $(HERE)/Make.package
#include $(PBOXLIB_HOME)/pBoxLib_2/Make.package
include $(PBOXLIB_HOME)/BoxLib/Make.package
#vpath %.cpp $(HERE) ../pBoxLib_2
#vpath %.H $(HERE) ../pBoxLib_2
vpath %.cpp $(HERE) ../BoxLib
vpath %.H $(HERE) ../BoxLib
vpath %.F $(HERE) ../BoxLib
vpath %.f $(HERE) ../BoxLib
vpath %.a $(LIBRARY_LOCATIONS)
all: $(executable)
#all: AmrVisTool.cpp
# echo $(executable)
include ../mk/Make.rules