source: snovis/trunk/obuild/sh/build_app_prog_snova @ 153

Last change on this file since 153 was 153, checked in by barrand, 15 years ago
  • Property svn:executable set to *
File size: 18.8 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 v1r1.
6#
7
8#////////////////////////////////////////////////
9# Usage :
10#   UNIX> cd some_path/pack/version/obuild
11# ( UNIX> chmod a+x sh/build_prog_snova )
12#   UNIX> sh/build_prog_snova
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
111CLHEP_home="/usr/local/CLHEP/2.0.3.1"
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} 'UNIX'`
119if [ ${obuild_platform_result} = yes ] ; then
120Geant4_home="/usr/local/geant4/8.2"
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} 'Darwin'`
128if [ ${obuild_platform_result} = yes ] ; then
129obuild_cxx_command="c++"
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} 'Linux'`
137if [ ${obuild_platform_result} = yes ] ; then
138obuild_cxx_command="c++"
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} 'OSF1'`
146if [ ${obuild_platform_result} = yes ] ; then
147obuild_cxx_command="cxx"
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} 'Windows_NT'`
155if [ ${obuild_platform_result} = yes ] ; then
156obuild_cxx_command="cl.exe"
157fi
158unset obuild_platform_result
159if [ "${obuild_cxx_command}" = "" ] ; then
160  echo "Variable obuild_cxx_command not defined."
161  exit
162fi
163
164if [ "${obuild_platform_exe}" = "" ] ; then
165  echo "Variable obuild_platform_exe not defined."
166  exit
167fi
168obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
169if [ ${obuild_platform_result} = yes ] ; then
170obuild_cxx_optimize="-O"
171fi
172unset obuild_platform_result
173if [ "${obuild_platform_exe}" = "" ] ; then
174  echo "Variable obuild_platform_exe not defined."
175  exit
176fi
177obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
178if [ ${obuild_platform_result} = yes ] ; then
179obuild_cxx_optimize="-O"
180fi
181unset obuild_platform_result
182if [ "${obuild_platform_exe}" = "" ] ; then
183  echo "Variable obuild_platform_exe not defined."
184  exit
185fi
186obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
187if [ ${obuild_platform_result} = yes ] ; then
188obuild_cxx_optimize="-O"
189fi
190unset obuild_platform_result
191if [ "${obuild_platform_exe}" = "" ] ; then
192  echo "Variable obuild_platform_exe not defined."
193  exit
194fi
195obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
196if [ ${obuild_platform_result} = yes ] ; then
197obuild_cxx_optimize="/O2"
198fi
199unset obuild_platform_result
200
201if [ "${obuild_platform_exe}" = "" ] ; then
202  echo "Variable obuild_platform_exe not defined."
203  exit
204fi
205obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
206if [ ${obuild_platform_result} = yes ] ; then
207obuild_cxx_debug="-g"
208fi
209unset obuild_platform_result
210if [ "${obuild_platform_exe}" = "" ] ; then
211  echo "Variable obuild_platform_exe not defined."
212  exit
213fi
214obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
215if [ ${obuild_platform_result} = yes ] ; then
216obuild_cxx_debug="-g"
217fi
218unset obuild_platform_result
219if [ "${obuild_platform_exe}" = "" ] ; then
220  echo "Variable obuild_platform_exe not defined."
221  exit
222fi
223obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
224if [ ${obuild_platform_result} = yes ] ; then
225obuild_cxx_debug="-g"
226fi
227unset obuild_platform_result
228if [ "${obuild_platform_exe}" = "" ] ; then
229  echo "Variable obuild_platform_exe not defined."
230  exit
231fi
232obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
233if [ ${obuild_platform_result} = yes ] ; then
234obuild_cxx_debug="/ZI /Od"
235fi
236unset obuild_platform_result
237
238if [ "${obuild_platform_exe}" = "" ] ; then
239  echo "Variable obuild_platform_exe not defined."
240  exit
241fi
242obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
243if [ ${obuild_platform_result} = yes ] ; then
244obuild_cxx_options="-fPIC"
245fi
246unset obuild_platform_result
247if [ "${obuild_platform_exe}" = "" ] ; then
248  echo "Variable obuild_platform_exe not defined."
249  exit
250fi
251obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
252if [ ${obuild_platform_result} = yes ] ; then
253obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
254fi
255unset obuild_platform_result
256
257if [ ${obuild_debug} = yes ] ; then
258  obuild_cxx_debug_local=${obuild_cxx_debug}
259else
260  obuild_cxx_debug_local=
261fi
262
263if [ ${obuild_optimize} = yes ] ; then
264  obuild_cxx_optimize_local=${obuild_cxx_optimize}
265else
266  obuild_cxx_optimize_local=
267fi
268
269if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
270  if [ ! -e "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp" ] ; then
271    echo "Program source obuild_find.cpp not found."
272    exit
273  fi
274  if [ "${obuild_cxx_command}" = "" ] ; then
275    if [  "${OBUILD_CXX}" != "" ] ; then
276      obuild_find_compiler=${OBUILD_CXX}
277    else
278      obuild_find_compiler=c++
279    fi
280  else
281    obuild_find_compiler=${obuild_cxx_command}
282  fi
283  ${obuild_find_compiler} -o "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" "${obuild_snovis_path}/obuild/cpp/obuild_find.cpp"
284  unset obuild_find_compiler
285  if [ ! -e "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find" ] ; then
286    echo "Program obuild_find not found."
287    exit
288  fi
289fi
290obuild_find_exe="${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
291if [ "${obuild_find_exe}" = "" ] ; then
292  echo "Variable obuild_find_exe not defined."
293  exit
294fi
295obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
296if [ "${obuild_snova_path}" = "" ] ; then
297  echo "Can't find snova package."
298  exit
299fi
300if [ "${obuild_find_exe}" = "" ] ; then
301  echo "Variable obuild_find_exe not defined."
302  exit
303fi
304obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
305if [ "${obuild_snova_path}" = "" ] ; then
306  echo "Can't find snova package."
307  exit
308fi
309if [ "${obuild_find_exe}" = "" ] ; then
310  echo "Variable obuild_find_exe not defined."
311  exit
312fi
313obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
314if [ "${obuild_snova_path}" = "" ] ; then
315  echo "Can't find snova package."
316  exit
317fi
318if [ "${obuild_find_exe}" = "" ] ; then
319  echo "Variable obuild_find_exe not defined."
320  exit
321fi
322obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
323if [ "${obuild_snova_path}" = "" ] ; then
324  echo "Can't find snova package."
325  exit
326fi
327if [ "${obuild_find_exe}" = "" ] ; then
328  echo "Variable obuild_find_exe not defined."
329  exit
330fi
331obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
332if [ "${obuild_bhep_path}" = "" ] ; then
333  echo "Can't find bhep package."
334  exit
335fi
336if [ "${obuild_find_exe}" = "" ] ; then
337  echo "Variable obuild_find_exe not defined."
338  exit
339fi
340obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
341if [ "${obuild_HDF5_path}" = "" ] ; then
342  echo "Can't find HDF5 package."
343  exit
344fi
345if [ "${obuild_find_exe}" = "" ] ; then
346  echo "Variable obuild_find_exe not defined."
347  exit
348fi
349obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
350if [ "${obuild_snova_path}" = "" ] ; then
351  echo "Can't find snova package."
352  exit
353fi
354if [ "${obuild_find_exe}" = "" ] ; then
355  echo "Variable obuild_find_exe not defined."
356  exit
357fi
358obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
359if [ "${obuild_snova_path}" = "" ] ; then
360  echo "Can't find snova package."
361  exit
362fi
363if [ "${obuild_find_exe}" = "" ] ; then
364  echo "Variable obuild_find_exe not defined."
365  exit
366fi
367obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
368if [ "${obuild_snova_path}" = "" ] ; then
369  echo "Can't find snova package."
370  exit
371fi
372if [ "${obuild_find_exe}" = "" ] ; then
373  echo "Variable obuild_find_exe not defined."
374  exit
375fi
376obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
377if [ "${obuild_snova_path}" = "" ] ; then
378  echo "Can't find snova package."
379  exit
380fi
381if [ "${obuild_find_exe}" = "" ] ; then
382  echo "Variable obuild_find_exe not defined."
383  exit
384fi
385obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
386if [ "${obuild_bhep_path}" = "" ] ; then
387  echo "Can't find bhep package."
388  exit
389fi
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_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'`
404if [ "${obuild_zlib_path}" = "" ] ; then
405  echo "Can't find zlib package."
406  exit
407fi
408
409obuild_cxx_includes="-I\"${obuild_snova_path}\""
410obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/GeomUtils/include\""
411obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNvertex/include\""
412obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNgeom2/include\""
413obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}\""
414if [ "${obuild_platform_exe}" = "" ] ; then
415  echo "Variable obuild_platform_exe not defined."
416  exit
417fi
418obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
419if [ ${obuild_platform_result} = yes ] ; then
420obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include"
421fi
422unset obuild_platform_result
423if [ "${obuild_platform_exe}" = "" ] ; then
424  echo "Variable obuild_platform_exe not defined."
425  exit
426fi
427obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
428if [ ${obuild_platform_result} = yes ] ; then
429obuild_cxx_includes="${obuild_cxx_includes} -I${Geant4_home}/include"
430fi
431unset obuild_platform_result
432obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\""
433
434if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
435  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_prog_snova"
436fi
437
438/bin/mkdir -p "${obuild_snovis_path}/${obuild_dir_bin}/app_prog_snova"
439
440# Compile prog_snova files :
441if [ ${obuild_do_not_compile} = no ] ; then
442
443if [ ${obuild_verbose} = yes ] ; then set -x;fi
444cd "${obuild_snovis_path}/${obuild_dir_bin}"
445 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./app_prog_snova/prog_snova2.o \"../applications/prog_snova2.cxx\"
446obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
447cd "${obuild_snovis_path}/obuild"
448
449if [ ${obuild_verbose} = yes ] ; then set +x;fi
450
451fi #do_not_compile
452
453if [ "${obuild_platform_exe}" = "" ] ; then
454  echo "Variable obuild_platform_exe not defined."
455  exit
456fi
457obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
458if [ ${obuild_platform_result} = yes ] ; then
459obuild_cxx_linker_command="c++"
460fi
461unset obuild_platform_result
462if [ "${obuild_platform_exe}" = "" ] ; then
463  echo "Variable obuild_platform_exe not defined."
464  exit
465fi
466obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
467if [ ${obuild_platform_result} = yes ] ; then
468obuild_cxx_linker_command="c++"
469fi
470unset obuild_platform_result
471if [ "${obuild_platform_exe}" = "" ] ; then
472  echo "Variable obuild_platform_exe not defined."
473  exit
474fi
475obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
476if [ ${obuild_platform_result} = yes ] ; then
477obuild_cxx_linker_command="cxx"
478fi
479unset obuild_platform_result
480if [ "${obuild_platform_exe}" = "" ] ; then
481  echo "Variable obuild_platform_exe not defined."
482  exit
483fi
484obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
485if [ ${obuild_platform_result} = yes ] ; then
486obuild_cxx_linker_command="link.exe"
487fi
488unset obuild_platform_result
489if [ "${obuild_cxx_linker_command}" = "" ] ; then
490  echo "Variable obuild_cxx_linker_command not defined."
491  exit
492fi
493
494if [ "${obuild_platform_exe}" = "" ] ; then
495  echo "Variable obuild_platform_exe not defined."
496  exit
497fi
498obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
499if [ ${obuild_platform_result} = yes ] ; then
500obuild_cxx_linker_debug="-g"
501fi
502unset obuild_platform_result
503if [ "${obuild_platform_exe}" = "" ] ; then
504  echo "Variable obuild_platform_exe not defined."
505  exit
506fi
507obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
508if [ ${obuild_platform_result} = yes ] ; then
509obuild_cxx_linker_debug="-g"
510fi
511unset obuild_platform_result
512if [ "${obuild_platform_exe}" = "" ] ; then
513  echo "Variable obuild_platform_exe not defined."
514  exit
515fi
516obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'`
517if [ ${obuild_platform_result} = yes ] ; then
518obuild_cxx_linker_debug="-g"
519fi
520unset obuild_platform_result
521if [ "${obuild_platform_exe}" = "" ] ; then
522  echo "Variable obuild_platform_exe not defined."
523  exit
524fi
525obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
526if [ ${obuild_platform_result} = yes ] ; then
527obuild_cxx_linker_debug="/DEBUG"
528fi
529unset obuild_platform_result
530
531if [ "${obuild_platform_exe}" = "" ] ; then
532  echo "Variable obuild_platform_exe not defined."
533  exit
534fi
535obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
536if [ ${obuild_platform_result} = yes ] ; then
537obuild_cxx_linker_options="/nologo"
538fi
539unset obuild_platform_result
540
541if [ ${obuild_debug} = yes ] ; then
542  obuild_cxx_linker_debug_local=${obuild_cxx_linker_debug}
543else
544  obuild_cxx_linker_debug_local=
545fi
546
547if [ ${obuild_optimize} = yes ] ; then
548  obuild_cxx_linker_optimize_local=${obuild_cxx_linker_optimize}
549else
550  obuild_cxx_linker_optimize_local=
551fi
552obuild_linked_paths="-L\"${obuild_snova_path}/${obuild_dir_bin}\""
553obuild_linked_libraries=" -lsnova"
554obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
555obuild_linked_libraries="${obuild_linked_libraries}  -lsnvertex"
556obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
557obuild_linked_libraries="${obuild_linked_libraries}  -lsngeom"
558obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
559obuild_linked_libraries="${obuild_linked_libraries}  -lgeomutils"
560obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_bhep_path}/${obuild_dir_bin}\""
561obuild_linked_libraries="${obuild_linked_libraries}  -lbhep"
562if [ "${obuild_platform_exe}" = "" ] ; then
563  echo "Variable obuild_platform_exe not defined."
564  exit
565fi
566obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
567if [ ${obuild_platform_result} = yes ] ; then
568obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
569fi
570unset obuild_platform_result
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_linked_libraries="${obuild_linked_libraries} -L${CLHEP_home}/lib -lCLHEP"
578fi
579unset obuild_platform_result
580obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\""
581obuild_linked_libraries="${obuild_linked_libraries}  -losc_HDF5"
582obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_zlib_path}/${obuild_dir_bin}\""
583obuild_linked_libraries="${obuild_linked_libraries}  -losc_z"
584
585# Link prog_snova :
586cd "${obuild_snovis_path}/${obuild_dir_bin}"
587obuild_objs=`find ./app_prog_snova -name '*.o' -print`
588/bin/rm -f ./prog_snova
589if [ ${obuild_verbose} = yes ] ; then set -x;fi
590 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}/prog_snova\" ${obuild_objs} ${obuild_linked_paths} ${obuild_linked_libraries}
591obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
592if [ ${obuild_verbose} = yes ] ; then set +x;fi
593cd "${obuild_snovis_path}/obuild"
594
595# Some cleanup :
596if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then
597  /bin/rm -R -f "${obuild_snovis_path}/${obuild_dir_bin}/app_prog_snova"
598fi
599/bin/rm -f "${obuild_snovis_path}/${obuild_dir_bin}/obuild_find"
600
Note: See TracBrowser for help on using the repository browser.