1 | #!/bin/sh -f |
---|
2 | |
---|
3 | # |
---|
4 | # File produced by the obuild tool version 1.0 |
---|
5 | # for the package snovis with version v1r0. |
---|
6 | # |
---|
7 | |
---|
8 | #//////////////////////////////////////////////// |
---|
9 | # Usage : |
---|
10 | # UNIX> cd some_path/pack/version/obuild |
---|
11 | # ( UNIX> chmod a+x sh/build_snovis_session ) |
---|
12 | # UNIX> sh/build_snovis_session |
---|
13 | # |
---|
14 | #//////////////////////////////////////////////// |
---|
15 | |
---|
16 | obuild_verbose=no |
---|
17 | obuild_debug=no |
---|
18 | obuild_optimize=yes |
---|
19 | obuild_do_not_compile=no |
---|
20 | obuild_dir_bin_o_cleanup=yes |
---|
21 | |
---|
22 | obuild_set_x=no |
---|
23 | while test $# -ge 1 ; do |
---|
24 | case $1 in |
---|
25 | -h) |
---|
26 | echo "Options :" |
---|
27 | echo " -v : verbose." |
---|
28 | echo " -d : build in debug mode." |
---|
29 | echo " -g : build in debug mode." |
---|
30 | echo " -x : execute script with set -x." |
---|
31 | echo " -l : link only, do not (re)compile." |
---|
32 | echo " -k : do not remove result of compilations (.o, .obj)." |
---|
33 | echo "" |
---|
34 | exit ;; |
---|
35 | -v) obuild_verbose=yes ;; |
---|
36 | -x) obuild_set_x=yes ;; |
---|
37 | -d) obuild_debug=yes ;; |
---|
38 | -g) obuild_debug=yes ;; |
---|
39 | -l) obuild_do_not_compile=yes ;; |
---|
40 | -k) obuild_dir_bin_o_cleanup=no ;; |
---|
41 | *) echo "unknown option : $1";exit ;; |
---|
42 | esac |
---|
43 | shift |
---|
44 | done |
---|
45 | |
---|
46 | if [ ${obuild_set_x} = yes ] ; then |
---|
47 | set -x |
---|
48 | fi |
---|
49 | |
---|
50 | if [ ${obuild_debug} = yes ] ; then |
---|
51 | obuild_optimize=no |
---|
52 | fi |
---|
53 | |
---|
54 | if [ "${OBUILD_PLATFORM}" = "" ] ; then |
---|
55 | obuild_platform=`uname` |
---|
56 | else |
---|
57 | obuild_platform=${OBUILD_PLATFORM} |
---|
58 | fi |
---|
59 | |
---|
60 | if [ "${obuild_platform}" = "" ] ; then |
---|
61 | echo "obuild_platform variable not defined." |
---|
62 | exit |
---|
63 | fi |
---|
64 | |
---|
65 | if [ "${OBUILD_DIR_BIN}" = "" ] ; then |
---|
66 | obuild_dir_bin=${obuild_platform}_obuild |
---|
67 | else |
---|
68 | obuild_dir_bin=${OBUILD_DIR_BIN} |
---|
69 | fi |
---|
70 | |
---|
71 | if [ "${obuild_dir_bin}" = "" ] ; then |
---|
72 | echo "obuild_dir_bin variable not defined." |
---|
73 | exit |
---|
74 | fi |
---|
75 | |
---|
76 | obuild_pwd=`pwd` |
---|
77 | obuild_snovis_path=`dirname "${obuild_pwd}"` |
---|
78 | unset obuild_pwd |
---|
79 | |
---|
80 | # Create the bin directory : |
---|
81 | /bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}" |
---|
82 | |
---|
83 | if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then |
---|
84 | if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" ] ; then |
---|
85 | echo "Program source obuild_platform.cpp not found." |
---|
86 | exit |
---|
87 | fi |
---|
88 | if [ "${obuild_cxx_command}" = "" ] ; then |
---|
89 | if [ "${OBUILD_CXX}" != "" ] ; then |
---|
90 | obuild_platform_compiler=${OBUILD_CXX} |
---|
91 | else |
---|
92 | obuild_platform_compiler=c++ |
---|
93 | fi |
---|
94 | else |
---|
95 | obuild_platform_compiler=${obuild_cxx_command} |
---|
96 | fi |
---|
97 | ${obuild_platform_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" "${obuild_snovis_path}/obuild/cpp/obuild_platform.cpp" |
---|
98 | unset obuild_platform_compiler |
---|
99 | if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" ] ; then |
---|
100 | echo "Program obuild_platform not found." |
---|
101 | exit |
---|
102 | fi |
---|
103 | fi |
---|
104 | obuild_platform_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_platform" |
---|
105 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
106 | echo "Variable obuild_platform_exe not defined." |
---|
107 | exit |
---|
108 | fi |
---|
109 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
110 | if [ ${obuild_platform_result} = yes ] ; then |
---|
111 | bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1" |
---|
112 | fi |
---|
113 | unset obuild_platform_result |
---|
114 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
115 | echo "Variable obuild_platform_exe not defined." |
---|
116 | exit |
---|
117 | fi |
---|
118 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
119 | if [ ${obuild_platform_result} = yes ] ; then |
---|
120 | bhep_platform="Darwin" |
---|
121 | fi |
---|
122 | unset obuild_platform_result |
---|
123 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
124 | echo "Variable obuild_platform_exe not defined." |
---|
125 | exit |
---|
126 | fi |
---|
127 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
128 | if [ ${obuild_platform_result} = yes ] ; then |
---|
129 | GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils" |
---|
130 | fi |
---|
131 | unset obuild_platform_result |
---|
132 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
133 | echo "Variable obuild_platform_exe not defined." |
---|
134 | exit |
---|
135 | fi |
---|
136 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
137 | if [ ${obuild_platform_result} = yes ] ; then |
---|
138 | GeomUtils_platform="Darwin-i386" |
---|
139 | fi |
---|
140 | unset obuild_platform_result |
---|
141 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
142 | echo "Variable obuild_platform_exe not defined." |
---|
143 | exit |
---|
144 | fi |
---|
145 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
146 | if [ ${obuild_platform_result} = yes ] ; then |
---|
147 | SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2" |
---|
148 | fi |
---|
149 | unset obuild_platform_result |
---|
150 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
151 | echo "Variable obuild_platform_exe not defined." |
---|
152 | exit |
---|
153 | fi |
---|
154 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
155 | if [ ${obuild_platform_result} = yes ] ; then |
---|
156 | snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova" |
---|
157 | fi |
---|
158 | unset obuild_platform_result |
---|
159 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
160 | echo "Variable obuild_platform_exe not defined." |
---|
161 | exit |
---|
162 | fi |
---|
163 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
164 | if [ ${obuild_platform_result} = yes ] ; then |
---|
165 | CLHEP_home="/usr/local/CLHEP/2.0.3.1" |
---|
166 | fi |
---|
167 | unset obuild_platform_result |
---|
168 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
169 | echo "Variable obuild_platform_exe not defined." |
---|
170 | exit |
---|
171 | fi |
---|
172 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
173 | if [ ${obuild_platform_result} = yes ] ; then |
---|
174 | Geant4_home="/geant4/geant4.8.2" |
---|
175 | fi |
---|
176 | unset obuild_platform_result |
---|
177 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
178 | echo "Variable obuild_platform_exe not defined." |
---|
179 | exit |
---|
180 | fi |
---|
181 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
182 | if [ ${obuild_platform_result} = yes ] ; then |
---|
183 | Geant4_work="${Geant4_home}/Darwin" |
---|
184 | fi |
---|
185 | unset obuild_platform_result |
---|
186 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
187 | echo "Variable obuild_platform_exe not defined." |
---|
188 | exit |
---|
189 | fi |
---|
190 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
191 | if [ ${obuild_platform_result} = yes ] ; then |
---|
192 | Geant4_work="${Geant4_home}/slc3_gcc323" |
---|
193 | fi |
---|
194 | unset obuild_platform_result |
---|
195 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
196 | echo "Variable obuild_platform_exe not defined." |
---|
197 | exit |
---|
198 | fi |
---|
199 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
200 | if [ ${obuild_platform_result} = yes ] ; then |
---|
201 | Geant4_system="Darwin-g++" |
---|
202 | fi |
---|
203 | unset obuild_platform_result |
---|
204 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
205 | echo "Variable obuild_platform_exe not defined." |
---|
206 | exit |
---|
207 | fi |
---|
208 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
209 | if [ ${obuild_platform_result} = yes ] ; then |
---|
210 | Geant4_system="Linux-g++" |
---|
211 | fi |
---|
212 | unset obuild_platform_result |
---|
213 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
214 | echo "Variable obuild_platform_exe not defined." |
---|
215 | exit |
---|
216 | fi |
---|
217 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
218 | if [ ${obuild_platform_result} = yes ] ; then |
---|
219 | Geant4_system="WIN32-VC" |
---|
220 | fi |
---|
221 | unset obuild_platform_result |
---|
222 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
223 | echo "Variable obuild_platform_exe not defined." |
---|
224 | exit |
---|
225 | fi |
---|
226 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
227 | if [ ${obuild_platform_result} = yes ] ; then |
---|
228 | obuild_cxx_command="c++" |
---|
229 | fi |
---|
230 | unset obuild_platform_result |
---|
231 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
232 | echo "Variable obuild_platform_exe not defined." |
---|
233 | exit |
---|
234 | fi |
---|
235 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
236 | if [ ${obuild_platform_result} = yes ] ; then |
---|
237 | obuild_cxx_command="c++" |
---|
238 | fi |
---|
239 | unset obuild_platform_result |
---|
240 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
241 | echo "Variable obuild_platform_exe not defined." |
---|
242 | exit |
---|
243 | fi |
---|
244 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` |
---|
245 | if [ ${obuild_platform_result} = yes ] ; then |
---|
246 | obuild_cxx_command="cxx" |
---|
247 | fi |
---|
248 | unset obuild_platform_result |
---|
249 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
250 | echo "Variable obuild_platform_exe not defined." |
---|
251 | exit |
---|
252 | fi |
---|
253 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
254 | if [ ${obuild_platform_result} = yes ] ; then |
---|
255 | obuild_cxx_command="cl.exe" |
---|
256 | fi |
---|
257 | unset obuild_platform_result |
---|
258 | if [ "${obuild_cxx_command}" = "" ] ; then |
---|
259 | echo "Variable obuild_cxx_command not defined." |
---|
260 | exit |
---|
261 | fi |
---|
262 | |
---|
263 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
264 | echo "Variable obuild_platform_exe not defined." |
---|
265 | exit |
---|
266 | fi |
---|
267 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
268 | if [ ${obuild_platform_result} = yes ] ; then |
---|
269 | obuild_cxx_optimize="-O" |
---|
270 | fi |
---|
271 | unset obuild_platform_result |
---|
272 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
273 | echo "Variable obuild_platform_exe not defined." |
---|
274 | exit |
---|
275 | fi |
---|
276 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
277 | if [ ${obuild_platform_result} = yes ] ; then |
---|
278 | obuild_cxx_optimize="-O" |
---|
279 | fi |
---|
280 | unset obuild_platform_result |
---|
281 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
282 | echo "Variable obuild_platform_exe not defined." |
---|
283 | exit |
---|
284 | fi |
---|
285 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` |
---|
286 | if [ ${obuild_platform_result} = yes ] ; then |
---|
287 | obuild_cxx_optimize="-O" |
---|
288 | fi |
---|
289 | unset obuild_platform_result |
---|
290 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
291 | echo "Variable obuild_platform_exe not defined." |
---|
292 | exit |
---|
293 | fi |
---|
294 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
295 | if [ ${obuild_platform_result} = yes ] ; then |
---|
296 | obuild_cxx_optimize="/O2" |
---|
297 | fi |
---|
298 | unset obuild_platform_result |
---|
299 | |
---|
300 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
301 | echo "Variable obuild_platform_exe not defined." |
---|
302 | exit |
---|
303 | fi |
---|
304 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
305 | if [ ${obuild_platform_result} = yes ] ; then |
---|
306 | obuild_cxx_debug="-g" |
---|
307 | fi |
---|
308 | unset obuild_platform_result |
---|
309 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
310 | echo "Variable obuild_platform_exe not defined." |
---|
311 | exit |
---|
312 | fi |
---|
313 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
314 | if [ ${obuild_platform_result} = yes ] ; then |
---|
315 | obuild_cxx_debug="-g" |
---|
316 | fi |
---|
317 | unset obuild_platform_result |
---|
318 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
319 | echo "Variable obuild_platform_exe not defined." |
---|
320 | exit |
---|
321 | fi |
---|
322 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` |
---|
323 | if [ ${obuild_platform_result} = yes ] ; then |
---|
324 | obuild_cxx_debug="-g" |
---|
325 | fi |
---|
326 | unset obuild_platform_result |
---|
327 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
328 | echo "Variable obuild_platform_exe not defined." |
---|
329 | exit |
---|
330 | fi |
---|
331 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
332 | if [ ${obuild_platform_result} = yes ] ; then |
---|
333 | obuild_cxx_debug="/ZI /Od" |
---|
334 | fi |
---|
335 | unset obuild_platform_result |
---|
336 | |
---|
337 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
338 | echo "Variable obuild_platform_exe not defined." |
---|
339 | exit |
---|
340 | fi |
---|
341 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
342 | if [ ${obuild_platform_result} = yes ] ; then |
---|
343 | obuild_cxx_options="-fPIC" |
---|
344 | fi |
---|
345 | unset obuild_platform_result |
---|
346 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
347 | echo "Variable obuild_platform_exe not defined." |
---|
348 | exit |
---|
349 | fi |
---|
350 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
351 | if [ ${obuild_platform_result} = yes ] ; then |
---|
352 | obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3" |
---|
353 | fi |
---|
354 | unset obuild_platform_result |
---|
355 | |
---|
356 | if [ ${obuild_debug} = yes ] ; then |
---|
357 | obuild_cxx_debug_local=${obuild_cxx_debug} |
---|
358 | else |
---|
359 | obuild_cxx_debug_local= |
---|
360 | fi |
---|
361 | |
---|
362 | if [ ${obuild_optimize} = yes ] ; then |
---|
363 | obuild_cxx_optimize_local=${obuild_cxx_optimize} |
---|
364 | else |
---|
365 | obuild_cxx_optimize_local= |
---|
366 | fi |
---|
367 | |
---|
368 | if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then |
---|
369 | if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then |
---|
370 | echo "Program source obuild_find.cpp not found." |
---|
371 | exit |
---|
372 | fi |
---|
373 | if [ "${obuild_cxx_command}" = "" ] ; then |
---|
374 | if [ "${OBUILD_CXX}" != "" ] ; then |
---|
375 | obuild_find_compiler=${OBUILD_CXX} |
---|
376 | else |
---|
377 | obuild_find_compiler=c++ |
---|
378 | fi |
---|
379 | else |
---|
380 | obuild_find_compiler=${obuild_cxx_command} |
---|
381 | fi |
---|
382 | ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" |
---|
383 | unset obuild_find_compiler |
---|
384 | if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then |
---|
385 | echo "Program obuild_find not found." |
---|
386 | exit |
---|
387 | fi |
---|
388 | fi |
---|
389 | obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" |
---|
390 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
391 | echo "Variable obuild_find_exe not defined." |
---|
392 | exit |
---|
393 | fi |
---|
394 | obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'` |
---|
395 | if [ "${obuild_HDF5_path}" = "" ] ; then |
---|
396 | echo "Can't find HDF5 package." |
---|
397 | exit |
---|
398 | fi |
---|
399 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
400 | echo "Variable obuild_find_exe not defined." |
---|
401 | exit |
---|
402 | fi |
---|
403 | obuild_AIDA_path=`"${obuild_find_exe}" AIDA 'v3r2p1'` |
---|
404 | if [ "${obuild_AIDA_path}" = "" ] ; then |
---|
405 | echo "Can't find AIDA package." |
---|
406 | exit |
---|
407 | fi |
---|
408 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
409 | echo "Variable obuild_find_exe not defined." |
---|
410 | exit |
---|
411 | fi |
---|
412 | obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'` |
---|
413 | if [ "${obuild_G4Lab_path}" = "" ] ; then |
---|
414 | echo "Can't find G4Lab package." |
---|
415 | exit |
---|
416 | fi |
---|
417 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
418 | echo "Variable obuild_find_exe not defined." |
---|
419 | exit |
---|
420 | fi |
---|
421 | obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'` |
---|
422 | if [ "${obuild_Lib_path}" = "" ] ; then |
---|
423 | echo "Can't find Lib package." |
---|
424 | exit |
---|
425 | fi |
---|
426 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
427 | echo "Variable obuild_find_exe not defined." |
---|
428 | exit |
---|
429 | fi |
---|
430 | obuild_Slash_path=`"${obuild_find_exe}" Slash 'v1r*'` |
---|
431 | if [ "${obuild_Slash_path}" = "" ] ; then |
---|
432 | echo "Can't find Slash package." |
---|
433 | exit |
---|
434 | fi |
---|
435 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
436 | echo "Variable obuild_find_exe not defined." |
---|
437 | exit |
---|
438 | fi |
---|
439 | obuild_OnX_path=`"${obuild_find_exe}" OnX 'v17r*'` |
---|
440 | if [ "${obuild_OnX_path}" = "" ] ; then |
---|
441 | echo "Can't find OnX package." |
---|
442 | exit |
---|
443 | fi |
---|
444 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
445 | echo "Variable obuild_find_exe not defined." |
---|
446 | exit |
---|
447 | fi |
---|
448 | obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'` |
---|
449 | if [ "${obuild_HDF5_path}" = "" ] ; then |
---|
450 | echo "Can't find HDF5 package." |
---|
451 | exit |
---|
452 | fi |
---|
453 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
454 | echo "Variable obuild_find_exe not defined." |
---|
455 | exit |
---|
456 | fi |
---|
457 | obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'` |
---|
458 | if [ "${obuild_G4Lab_path}" = "" ] ; then |
---|
459 | echo "Can't find G4Lab package." |
---|
460 | exit |
---|
461 | fi |
---|
462 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
463 | echo "Variable obuild_find_exe not defined." |
---|
464 | exit |
---|
465 | fi |
---|
466 | obuild_G4Lab_path=`"${obuild_find_exe}" G4Lab 'v8r*'` |
---|
467 | if [ "${obuild_G4Lab_path}" = "" ] ; then |
---|
468 | echo "Can't find G4Lab package." |
---|
469 | exit |
---|
470 | fi |
---|
471 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
472 | echo "Variable obuild_find_exe not defined." |
---|
473 | exit |
---|
474 | fi |
---|
475 | obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'` |
---|
476 | if [ "${obuild_Lib_path}" = "" ] ; then |
---|
477 | echo "Can't find Lib package." |
---|
478 | exit |
---|
479 | fi |
---|
480 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
481 | echo "Variable obuild_find_exe not defined." |
---|
482 | exit |
---|
483 | fi |
---|
484 | obuild_expat_path=`"${obuild_find_exe}" expat 'v1r*'` |
---|
485 | if [ "${obuild_expat_path}" = "" ] ; then |
---|
486 | echo "Can't find expat package." |
---|
487 | exit |
---|
488 | fi |
---|
489 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
490 | echo "Variable obuild_find_exe not defined." |
---|
491 | exit |
---|
492 | fi |
---|
493 | obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'` |
---|
494 | if [ "${obuild_Lib_path}" = "" ] ; then |
---|
495 | echo "Can't find Lib package." |
---|
496 | exit |
---|
497 | fi |
---|
498 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
499 | echo "Variable obuild_find_exe not defined." |
---|
500 | exit |
---|
501 | fi |
---|
502 | obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'` |
---|
503 | if [ "${obuild_zlib_path}" = "" ] ; then |
---|
504 | echo "Can't find zlib package." |
---|
505 | exit |
---|
506 | fi |
---|
507 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
508 | echo "Variable obuild_find_exe not defined." |
---|
509 | exit |
---|
510 | fi |
---|
511 | obuild_Lib_path=`"${obuild_find_exe}" Lib 'v8r*'` |
---|
512 | if [ "${obuild_Lib_path}" = "" ] ; then |
---|
513 | echo "Can't find Lib package." |
---|
514 | exit |
---|
515 | fi |
---|
516 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
517 | echo "Variable obuild_find_exe not defined." |
---|
518 | exit |
---|
519 | fi |
---|
520 | obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'` |
---|
521 | if [ "${obuild_HEPVis_path}" = "" ] ; then |
---|
522 | echo "Can't find HEPVis package." |
---|
523 | exit |
---|
524 | fi |
---|
525 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
526 | echo "Variable obuild_find_exe not defined." |
---|
527 | exit |
---|
528 | fi |
---|
529 | obuild_HEPVis_path=`"${obuild_find_exe}" HEPVis 'v6r*'` |
---|
530 | if [ "${obuild_HEPVis_path}" = "" ] ; then |
---|
531 | echo "Can't find HEPVis package." |
---|
532 | exit |
---|
533 | fi |
---|
534 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
535 | echo "Variable obuild_find_exe not defined." |
---|
536 | exit |
---|
537 | fi |
---|
538 | obuild_jpeg_path=`"${obuild_find_exe}" jpeg 'v1r*'` |
---|
539 | if [ "${obuild_jpeg_path}" = "" ] ; then |
---|
540 | echo "Can't find jpeg package." |
---|
541 | exit |
---|
542 | fi |
---|
543 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
544 | echo "Variable obuild_find_exe not defined." |
---|
545 | exit |
---|
546 | fi |
---|
547 | obuild_dvi2bitmap_path=`"${obuild_find_exe}" dvi2bitmap 'v1r*'` |
---|
548 | if [ "${obuild_dvi2bitmap_path}" = "" ] ; then |
---|
549 | echo "Can't find dvi2bitmap package." |
---|
550 | exit |
---|
551 | fi |
---|
552 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
553 | echo "Variable obuild_find_exe not defined." |
---|
554 | exit |
---|
555 | fi |
---|
556 | obuild_freetype2_path=`"${obuild_find_exe}" freetype2 'v1r*'` |
---|
557 | if [ "${obuild_freetype2_path}" = "" ] ; then |
---|
558 | echo "Can't find freetype2 package." |
---|
559 | exit |
---|
560 | fi |
---|
561 | if [ "${obuild_find_exe}" = "" ] ; then |
---|
562 | echo "Variable obuild_find_exe not defined." |
---|
563 | exit |
---|
564 | fi |
---|
565 | obuild_CoinGL_path=`"${obuild_find_exe}" CoinGL 'v1r*'` |
---|
566 | if [ "${obuild_CoinGL_path}" = "" ] ; then |
---|
567 | echo "Can't find CoinGL package." |
---|
568 | exit |
---|
569 | fi |
---|
570 | |
---|
571 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
572 | echo "Variable obuild_platform_exe not defined." |
---|
573 | exit |
---|
574 | fi |
---|
575 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
576 | if [ ${obuild_platform_result} = yes ] ; then |
---|
577 | obuild_cxx_includes="-I${SNOVA_ROOT}" |
---|
578 | fi |
---|
579 | unset obuild_platform_result |
---|
580 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
581 | echo "Variable obuild_platform_exe not defined." |
---|
582 | exit |
---|
583 | fi |
---|
584 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
585 | if [ ${obuild_platform_result} = yes ] ; then |
---|
586 | obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include" |
---|
587 | fi |
---|
588 | unset obuild_platform_result |
---|
589 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
590 | echo "Variable obuild_platform_exe not defined." |
---|
591 | exit |
---|
592 | fi |
---|
593 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
594 | if [ ${obuild_platform_result} = yes ] ; then |
---|
595 | obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include" |
---|
596 | fi |
---|
597 | unset obuild_platform_result |
---|
598 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
599 | echo "Variable obuild_platform_exe not defined." |
---|
600 | exit |
---|
601 | fi |
---|
602 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
603 | if [ ${obuild_platform_result} = yes ] ; then |
---|
604 | obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include" |
---|
605 | fi |
---|
606 | unset obuild_platform_result |
---|
607 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
608 | echo "Variable obuild_platform_exe not defined." |
---|
609 | exit |
---|
610 | fi |
---|
611 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
612 | if [ ${obuild_platform_result} = yes ] ; then |
---|
613 | obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include" |
---|
614 | fi |
---|
615 | unset obuild_platform_result |
---|
616 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
617 | echo "Variable obuild_platform_exe not defined." |
---|
618 | exit |
---|
619 | fi |
---|
620 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
621 | if [ ${obuild_platform_result} = yes ] ; then |
---|
622 | obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include" |
---|
623 | fi |
---|
624 | unset obuild_platform_result |
---|
625 | obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\"" |
---|
626 | obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_AIDA_path}/src/cpp\"" |
---|
627 | obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_G4Lab_path}/include\"" |
---|
628 | obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Lib_path}/include\"" |
---|
629 | obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_Slash_path}\"" |
---|
630 | |
---|
631 | if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then |
---|
632 | /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_snovis_session" |
---|
633 | fi |
---|
634 | |
---|
635 | /bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/app_snovis_session" |
---|
636 | |
---|
637 | # Compile snovis_session files : |
---|
638 | if [ ${obuild_do_not_compile} = no ] ; then |
---|
639 | |
---|
640 | if [ ${obuild_verbose} = yes ] ; then set -x;fi |
---|
641 | cd "${obuild_snovis_path}/${obuild_dir_bin}" |
---|
642 | eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_snovis_session/snovis_session.o ../applications/snovis_session.cc |
---|
643 | obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi |
---|
644 | cd "${obuild_snovis_path}/obuild" |
---|
645 | |
---|
646 | if [ ${obuild_verbose} = yes ] ; then set +x;fi |
---|
647 | |
---|
648 | fi #do_not_compile |
---|
649 | |
---|
650 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
651 | echo "Variable obuild_platform_exe not defined." |
---|
652 | exit |
---|
653 | fi |
---|
654 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
655 | if [ ${obuild_platform_result} = yes ] ; then |
---|
656 | obuild_cxx_linker_command="c++" |
---|
657 | fi |
---|
658 | unset obuild_platform_result |
---|
659 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
660 | echo "Variable obuild_platform_exe not defined." |
---|
661 | exit |
---|
662 | fi |
---|
663 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
664 | if [ ${obuild_platform_result} = yes ] ; then |
---|
665 | obuild_cxx_linker_command="c++" |
---|
666 | fi |
---|
667 | unset obuild_platform_result |
---|
668 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
669 | echo "Variable obuild_platform_exe not defined." |
---|
670 | exit |
---|
671 | fi |
---|
672 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` |
---|
673 | if [ ${obuild_platform_result} = yes ] ; then |
---|
674 | obuild_cxx_linker_command="cxx" |
---|
675 | fi |
---|
676 | unset obuild_platform_result |
---|
677 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
678 | echo "Variable obuild_platform_exe not defined." |
---|
679 | exit |
---|
680 | fi |
---|
681 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
682 | if [ ${obuild_platform_result} = yes ] ; then |
---|
683 | obuild_cxx_linker_command="link.exe" |
---|
684 | fi |
---|
685 | unset obuild_platform_result |
---|
686 | if [ "${obuild_cxx_linker_command}" = "" ] ; then |
---|
687 | echo "Variable obuild_cxx_linker_command not defined." |
---|
688 | exit |
---|
689 | fi |
---|
690 | |
---|
691 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
692 | echo "Variable obuild_platform_exe not defined." |
---|
693 | exit |
---|
694 | fi |
---|
695 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
696 | if [ ${obuild_platform_result} = yes ] ; then |
---|
697 | obuild_cxx_linker_debug="-g" |
---|
698 | fi |
---|
699 | unset obuild_platform_result |
---|
700 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
701 | echo "Variable obuild_platform_exe not defined." |
---|
702 | exit |
---|
703 | fi |
---|
704 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
705 | if [ ${obuild_platform_result} = yes ] ; then |
---|
706 | obuild_cxx_linker_debug="-g" |
---|
707 | fi |
---|
708 | unset obuild_platform_result |
---|
709 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
710 | echo "Variable obuild_platform_exe not defined." |
---|
711 | exit |
---|
712 | fi |
---|
713 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` |
---|
714 | if [ ${obuild_platform_result} = yes ] ; then |
---|
715 | obuild_cxx_linker_debug="-g" |
---|
716 | fi |
---|
717 | unset obuild_platform_result |
---|
718 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
719 | echo "Variable obuild_platform_exe not defined." |
---|
720 | exit |
---|
721 | fi |
---|
722 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
723 | if [ ${obuild_platform_result} = yes ] ; then |
---|
724 | obuild_cxx_linker_debug="/DEBUG" |
---|
725 | fi |
---|
726 | unset obuild_platform_result |
---|
727 | |
---|
728 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
729 | echo "Variable obuild_platform_exe not defined." |
---|
730 | exit |
---|
731 | fi |
---|
732 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
733 | if [ ${obuild_platform_result} = yes ] ; then |
---|
734 | obuild_cxx_linker_options="/nologo" |
---|
735 | fi |
---|
736 | unset obuild_platform_result |
---|
737 | |
---|
738 | if [ ${obuild_debug} = yes ] ; then |
---|
739 | obuild_cxx_linker_debug_local=${obuild_cxx_linker_debug} |
---|
740 | else |
---|
741 | obuild_cxx_linker_debug_local= |
---|
742 | fi |
---|
743 | |
---|
744 | if [ ${obuild_optimize} = yes ] ; then |
---|
745 | obuild_cxx_linker_optimize_local=${obuild_cxx_linker_optimize} |
---|
746 | else |
---|
747 | obuild_cxx_linker_optimize_local= |
---|
748 | fi |
---|
749 | obuild_linked_paths="-L\"${obuild_OnX_path}/${obuild_dir_bin}\"" |
---|
750 | obuild_linked_libraries=" -lOnXCore" |
---|
751 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snovis_path}/${obuild_dir_bin}\"" |
---|
752 | obuild_linked_libraries="${obuild_linked_libraries} -lsnova" |
---|
753 | obuild_linked_libraries="${obuild_linked_libraries} -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom" |
---|
754 | obuild_linked_libraries="${obuild_linked_libraries} -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils" |
---|
755 | obuild_linked_libraries="${obuild_linked_libraries} -L${BHEP_ROOT}/Darwin/lib -lbhep" |
---|
756 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\"" |
---|
757 | obuild_linked_libraries="${obuild_linked_libraries} -losc_HDF5" |
---|
758 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_G4Lab_path}/${obuild_dir_bin}\"" |
---|
759 | obuild_linked_libraries="${obuild_linked_libraries} -lG4LabUIOnX" |
---|
760 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_G4Lab_path}/${obuild_dir_bin}\"" |
---|
761 | obuild_linked_libraries="${obuild_linked_libraries} -lG4LabCore" |
---|
762 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
763 | echo "Variable obuild_platform_exe not defined." |
---|
764 | exit |
---|
765 | fi |
---|
766 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
767 | if [ ${obuild_platform_result} = yes ] ; then |
---|
768 | obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global" |
---|
769 | fi |
---|
770 | unset obuild_platform_result |
---|
771 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
772 | echo "Variable obuild_platform_exe not defined." |
---|
773 | exit |
---|
774 | fi |
---|
775 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
776 | if [ ${obuild_platform_result} = yes ] ; then |
---|
777 | obuild_linked_libraries="${obuild_linked_libraries} -L${CLHEP_home}/lib -lCLHEP" |
---|
778 | fi |
---|
779 | unset obuild_platform_result |
---|
780 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\"" |
---|
781 | obuild_linked_libraries="${obuild_linked_libraries} -lLibXML" |
---|
782 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_expat_path}/${obuild_dir_bin}\"" |
---|
783 | obuild_linked_libraries="${obuild_linked_libraries} -losc_expat" |
---|
784 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\"" |
---|
785 | obuild_linked_libraries="${obuild_linked_libraries} -lLibZip" |
---|
786 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\"" |
---|
787 | obuild_linked_libraries="${obuild_linked_libraries} -losc_z" |
---|
788 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_Lib_path}/${obuild_dir_bin}\"" |
---|
789 | obuild_linked_libraries="${obuild_linked_libraries} -lLibUtils" |
---|
790 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\"" |
---|
791 | obuild_linked_libraries="${obuild_linked_libraries} -lHEPVisGeometry" |
---|
792 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HEPVis_path}/${obuild_dir_bin}\"" |
---|
793 | obuild_linked_libraries="${obuild_linked_libraries} -lHEPVisUtils" |
---|
794 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_jpeg_path}/${obuild_dir_bin}\"" |
---|
795 | obuild_linked_libraries="${obuild_linked_libraries} -losc_jpeg" |
---|
796 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_dvi2bitmap_path}/${obuild_dir_bin}\"" |
---|
797 | obuild_linked_libraries="${obuild_linked_libraries} -losc_dvi2bitmap" |
---|
798 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_freetype2_path}/${obuild_dir_bin}\"" |
---|
799 | obuild_linked_libraries="${obuild_linked_libraries} -losc_freetype2" |
---|
800 | obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_CoinGL_path}/${obuild_dir_bin}\"" |
---|
801 | obuild_linked_libraries="${obuild_linked_libraries} -losc_Coin" |
---|
802 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
803 | echo "Variable obuild_platform_exe not defined." |
---|
804 | exit |
---|
805 | fi |
---|
806 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
807 | if [ ${obuild_platform_result} = yes ] ; then |
---|
808 | obuild_linked_libraries="${obuild_linked_libraries} -framework OpenGL -framework AGL" |
---|
809 | fi |
---|
810 | unset obuild_platform_result |
---|
811 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
812 | echo "Variable obuild_platform_exe not defined." |
---|
813 | exit |
---|
814 | fi |
---|
815 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` |
---|
816 | if [ ${obuild_platform_result} = yes ] ; then |
---|
817 | obuild_linked_libraries="${obuild_linked_libraries} -framework ApplicationServices" |
---|
818 | fi |
---|
819 | unset obuild_platform_result |
---|
820 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
821 | echo "Variable obuild_platform_exe not defined." |
---|
822 | exit |
---|
823 | fi |
---|
824 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` |
---|
825 | if [ ${obuild_platform_result} = yes ] ; then |
---|
826 | obuild_linked_libraries="${obuild_linked_libraries} -L/usr/lib -lGLU -lGL -lm" |
---|
827 | fi |
---|
828 | unset obuild_platform_result |
---|
829 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
830 | echo "Variable obuild_platform_exe not defined." |
---|
831 | exit |
---|
832 | fi |
---|
833 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` |
---|
834 | if [ ${obuild_platform_result} = yes ] ; then |
---|
835 | obuild_linked_libraries="${obuild_linked_libraries} glu32.lib opengl32.lib gdi32.lib user32.lib" |
---|
836 | fi |
---|
837 | unset obuild_platform_result |
---|
838 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
839 | echo "Variable obuild_platform_exe not defined." |
---|
840 | exit |
---|
841 | fi |
---|
842 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` |
---|
843 | if [ ${obuild_platform_result} = yes ] ; then |
---|
844 | obuild_linked_libraries="${obuild_linked_libraries} -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm" |
---|
845 | fi |
---|
846 | unset obuild_platform_result |
---|
847 | if [ "${obuild_platform_exe}" = "" ] ; then |
---|
848 | echo "Variable obuild_platform_exe not defined." |
---|
849 | exit |
---|
850 | fi |
---|
851 | obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` |
---|
852 | if [ ${obuild_platform_result} = yes ] ; then |
---|
853 | obuild_linked_libraries="${obuild_linked_libraries} -lpthread" |
---|
854 | fi |
---|
855 | unset obuild_platform_result |
---|
856 | |
---|
857 | # Link snovis_session : |
---|
858 | cd "${obuild_snovis_path}/${obuild_dir_bin}" |
---|
859 | obuild_objs=`find ./app_snovis_session -name '*.o' -print` |
---|
860 | /bin/rm -f ./snovis_session |
---|
861 | if [ ${obuild_verbose} = yes ] ; then set -x;fi |
---|
862 | eval ${obuild_cxx_linker_command} ${obuild_cxx_linker_debug_local} ${obuild_cxx_linker_optimize_local} ${obuild_cxx_linker_options} -o \"${obuild_snovis_path}/${obuild_dir_bin}/snovis_session\" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries} |
---|
863 | obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi |
---|
864 | if [ ${obuild_verbose} = yes ] ; then set +x;fi |
---|
865 | cd "${obuild_snovis_path}/obuild" |
---|
866 | |
---|
867 | # Some cleanup : |
---|
868 | if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then |
---|
869 | /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_snovis_session" |
---|
870 | fi |
---|
871 | /bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" |
---|
872 | |
---|