source: snovis/head/obuild/sh/build_app_snovis_session @ 6

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