Changeset 92 for snovis/head/obuild


Ignore:
Timestamp:
Feb 9, 2007, 10:24:37 AM (16 years ago)
Author:
barrand
Message:
 
Location:
snovis/head/obuild
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • snovis/head/obuild/DOS/build.bat

    r6 r92  
    146146IF NOT %obuild_group% == main GOTO end_if_group_0
    147147IF NOT %obuild_do_mains% == yes GOTO end_if_main_0
    148   IF EXIST .\DOS\build_lib_snova.bat (
    149     CALL .\DOS\build_lib_snova.bat %obuild_args%
     148  IF NOT EXIST .\DOS\build_dll_snovis.bat  GOTO end_if_build_0
     149    CALL .\DOS\build_dll_snovis.bat %obuild_args%
    150150    @IF ERRORLEVEL 1 @GOTO obuild_return
    151151    @ECHO OFF
    152   )
     152:end_if_build_0
    153153:end_if_main_0
    154154:end_if_group_0
     
    156156IF NOT %obuild_group% == main GOTO end_if_group_1
    157157IF NOT %obuild_do_mains% == yes GOTO end_if_main_1
    158   IF EXIST .\DOS\build_dll_snovis.bat (
    159     CALL .\DOS\build_dll_snovis.bat %obuild_args%
    160     @IF ERRORLEVEL 1 @GOTO obuild_return
    161     @ECHO OFF
    162   )
    163 :end_if_main_1
    164 :end_if_group_1
    165 
    166 IF NOT %obuild_group% == main GOTO end_if_group_2
    167 IF NOT %obuild_do_mains% == yes GOTO end_if_main_2
    168   IF EXIST .\DOS\build_app_prog_snova.bat (
     158  IF NOT EXIST .\DOS\build_app_prog_snova.bat  GOTO end_if_build_1
    169159    CALL .\DOS\build_app_prog_snova.bat %obuild_args%
    170160    @IF ERRORLEVEL 1 @GOTO obuild_return
    171161    @ECHO OFF
    172   )
    173 :end_if_main_2
    174 :end_if_group_2
    175 IF NOT %obuild_group% == main GOTO end_if_group_3
    176 IF NOT %obuild_do_mains% == yes GOTO end_if_main_3
    177   IF EXIST .\DOS\build_app_snovis_session.bat (
     162:end_if_build_1
     163:end_if_main_1
     164:end_if_group_1
     165IF NOT %obuild_group% == main GOTO end_if_group_2
     166IF NOT %obuild_do_mains% == yes GOTO end_if_main_2
     167  IF NOT EXIST .\DOS\build_app_snovis_session.bat  GOTO end_if_build_2
    178168    CALL .\DOS\build_app_snovis_session.bat %obuild_args%
    179169    @IF ERRORLEVEL 1 @GOTO obuild_return
    180170    @ECHO OFF
    181   )
    182 :end_if_main_3
    183 :end_if_group_3
     171:end_if_build_2
     172:end_if_main_2
     173:end_if_group_2
    184174
    185175:obuild_return
  • snovis/head/obuild/DOS/build_app_prog_snova.bat

    r6 r92  
    8888IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    8989IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
    90   cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
     90  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
    9191  IF EXIST obuild_platform.obj DEL obuild_platform.obj
    9292)
     
    9898cd "%obuild_pwd_snovis_0%"
    9999SET obuild_pwd_snovis_0=
    100 IF %obuild_platform_result% == yes (
    101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
    102 )
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF %obuild_platform_result% == yes (
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
     102:end_if_platform_1
     103SET obuild_platform_result=
     104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     105cd "%obuild_snovis_path%\%obuild_dir_bin%"
     106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     108cd "%obuild_pwd_snovis_0%"
     109SET obuild_pwd_snovis_0=
     110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111111SET bhep_platform=Darwin
    112 )
    113 SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF %obuild_platform_result% == yes (
    121 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
    122 )
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF %obuild_platform_result% == yes (
    131 SET GeomUtils_platform=Darwin-i386
    132 )
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF %obuild_platform_result% == yes (
    141 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
    142 )
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF %obuild_platform_result% == yes (
    151 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
    152 )
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF %obuild_platform_result% == yes (
     112:end_if_platform_3
     113SET obuild_platform_result=
     114FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     115cd "%obuild_snovis_path%\%obuild_dir_bin%"
     116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     118cd "%obuild_pwd_snovis_0%"
     119SET obuild_pwd_snovis_0=
     120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     121SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     122:end_if_platform_5
     123SET obuild_platform_result=
     124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     125cd "%obuild_snovis_path%\%obuild_dir_bin%"
     126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     128cd "%obuild_pwd_snovis_0%"
     129SET obuild_pwd_snovis_0=
     130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     131SET snova_platform=Darwin
     132:end_if_platform_7
     133SET obuild_platform_result=
     134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     135cd "%obuild_snovis_path%\%obuild_dir_bin%"
     136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     138cd "%obuild_pwd_snovis_0%"
     139SET obuild_pwd_snovis_0=
     140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    161141SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    162 )
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF %obuild_platform_result% == yes (
    171 SET Geant4_home=/geant4/geant4.8.2
    172 )
    173 SET obuild_platform_result=
    174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    175 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    176 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF %obuild_platform_result% == yes (
    181 SET Geant4_work=${Geant4_home}/Darwin
    182 )
     142:end_if_platform_9
     143SET obuild_platform_result=
     144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     145cd "%obuild_snovis_path%\%obuild_dir_bin%"
     146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     148cd "%obuild_pwd_snovis_0%"
     149SET obuild_pwd_snovis_0=
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
     151SET Geant4_home=/usr/local/geant4/8.2
     152:end_if_platform_11
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     158cd "%obuild_pwd_snovis_0%"
     159SET obuild_pwd_snovis_0=
     160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     161SET obuild_cxx_command=c++
     162:end_if_platform_12
    183163SET obuild_platform_result=
    184164FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    188168cd "%obuild_pwd_snovis_0%"
    189169SET obuild_pwd_snovis_0=
    190 IF %obuild_platform_result% == yes (
    191 SET Geant4_work=${Geant4_home}/slc3_gcc323
    192 )
    193 SET obuild_platform_result=
    194 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    195 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    196 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    197 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    198 cd "%obuild_pwd_snovis_0%"
    199 SET obuild_pwd_snovis_0=
    200 IF %obuild_platform_result% == yes (
    201 SET Geant4_system=Darwin-g++
    202 )
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     171SET obuild_cxx_command=c++
     172:end_if_platform_13
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     181SET obuild_cxx_command=cxx
     182:end_if_platform_14
     183SET obuild_platform_result=
     184FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     185cd "%obuild_snovis_path%\%obuild_dir_bin%"
     186IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     187FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     188cd "%obuild_pwd_snovis_0%"
     189SET obuild_pwd_snovis_0=
     190IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     191SET obuild_cxx_command=cl.exe
     192:end_if_platform_15
     193SET obuild_platform_result=
     194IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     195
     196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     197cd "%obuild_snovis_path%\%obuild_dir_bin%"
     198IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     199FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     200cd "%obuild_pwd_snovis_0%"
     201SET obuild_pwd_snovis_0=
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_16
    203205SET obuild_platform_result=
    204206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    208210cd "%obuild_pwd_snovis_0%"
    209211SET obuild_pwd_snovis_0=
    210 IF %obuild_platform_result% == yes (
    211 SET Geant4_system=Linux-g++
    212 )
    213 SET obuild_platform_result=
    214 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    215 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    216 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    217 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    218 cd "%obuild_pwd_snovis_0%"
    219 SET obuild_pwd_snovis_0=
    220 IF %obuild_platform_result% == yes (
    221 SET Geant4_system=WIN32-VC
    222 )
    223 SET obuild_platform_result=
    224 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    225 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    226 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    227 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    228 cd "%obuild_pwd_snovis_0%"
    229 SET obuild_pwd_snovis_0=
    230 IF %obuild_platform_result% == yes (
    231 SET obuild_cxx_command=c++
    232 )
     212IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     213SET obuild_cxx_optimize=-O
     214:end_if_platform_17
     215SET obuild_platform_result=
     216FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     217cd "%obuild_snovis_path%\%obuild_dir_bin%"
     218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
     223SET obuild_cxx_optimize=-O
     224:end_if_platform_18
     225SET obuild_platform_result=
     226FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     227cd "%obuild_snovis_path%\%obuild_dir_bin%"
     228IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     229FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     230cd "%obuild_pwd_snovis_0%"
     231SET obuild_pwd_snovis_0=
     232IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     233SET obuild_cxx_optimize=/O2
     234:end_if_platform_19
     235SET obuild_platform_result=
     236
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     241cd "%obuild_pwd_snovis_0%"
     242SET obuild_pwd_snovis_0=
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
     244SET obuild_cxx_debug=-g
     245:end_if_platform_20
    233246SET obuild_platform_result=
    234247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    238251cd "%obuild_pwd_snovis_0%"
    239252SET obuild_pwd_snovis_0=
    240 IF %obuild_platform_result% == yes (
    241 SET obuild_cxx_command=c++
    242 )
     253IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     254SET obuild_cxx_debug=-g
     255:end_if_platform_21
    243256SET obuild_platform_result=
    244257FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    248261cd "%obuild_pwd_snovis_0%"
    249262SET obuild_pwd_snovis_0=
    250 IF %obuild_platform_result% == yes (
    251 SET obuild_cxx_command=cxx
    252 )
    253 SET obuild_platform_result=
    254 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    255 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    256 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    257 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    258 cd "%obuild_pwd_snovis_0%"
    259 SET obuild_pwd_snovis_0=
    260 IF %obuild_platform_result% == yes (
    261 SET obuild_cxx_command=cl.exe
    262 )
    263 SET obuild_platform_result=
    264 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    265 
    266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    267 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    268 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    270 cd "%obuild_pwd_snovis_0%"
    271 SET obuild_pwd_snovis_0=
    272 IF %obuild_platform_result% == yes (
    273 SET obuild_cxx_optimize=-O
    274 )
    275 SET obuild_platform_result=
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
     264SET obuild_cxx_debug=-g
     265:end_if_platform_22
     266SET obuild_platform_result=
     267FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     268cd "%obuild_snovis_path%\%obuild_dir_bin%"
     269IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     270FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     271cd "%obuild_pwd_snovis_0%"
     272SET obuild_pwd_snovis_0=
     273IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
     274SET obuild_cxx_debug=/ZI /Od
     275:end_if_platform_23
     276SET obuild_platform_result=
     277
    276278FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    277279cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    280282cd "%obuild_pwd_snovis_0%"
    281283SET obuild_pwd_snovis_0=
    282 IF %obuild_platform_result% == yes (
    283 SET obuild_cxx_optimize=-O
    284 )
    285 SET obuild_platform_result=
    286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    287 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    288 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    289 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    290 cd "%obuild_pwd_snovis_0%"
    291 SET obuild_pwd_snovis_0=
    292 IF %obuild_platform_result% == yes (
    293 SET obuild_cxx_optimize=-O
    294 )
    295 SET obuild_platform_result=
    296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    297 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    298 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    299 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    300 cd "%obuild_pwd_snovis_0%"
    301 SET obuild_pwd_snovis_0=
    302 IF %obuild_platform_result% == yes (
    303 SET obuild_cxx_optimize=/O2
    304 )
    305 SET obuild_platform_result=
    306 
    307 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    308 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    309 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    310 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    311 cd "%obuild_pwd_snovis_0%"
    312 SET obuild_pwd_snovis_0=
    313 IF %obuild_platform_result% == yes (
    314 SET obuild_cxx_debug=-g
    315 )
    316 SET obuild_platform_result=
    317 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    318 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    319 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    320 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    321 cd "%obuild_pwd_snovis_0%"
    322 SET obuild_pwd_snovis_0=
    323 IF %obuild_platform_result% == yes (
    324 SET obuild_cxx_debug=-g
    325 )
    326 SET obuild_platform_result=
    327 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    328 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    329 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    330 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    331 cd "%obuild_pwd_snovis_0%"
    332 SET obuild_pwd_snovis_0=
    333 IF %obuild_platform_result% == yes (
    334 SET obuild_cxx_debug=-g
    335 )
    336 SET obuild_platform_result=
    337 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    338 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    339 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    340 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    341 cd "%obuild_pwd_snovis_0%"
    342 SET obuild_pwd_snovis_0=
    343 IF %obuild_platform_result% == yes (
    344 SET obuild_cxx_debug=/ZI /Od
    345 )
    346 SET obuild_platform_result=
    347 
    348 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    349 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    350 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    351 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    352 cd "%obuild_pwd_snovis_0%"
    353 SET obuild_pwd_snovis_0=
    354 IF %obuild_platform_result% == yes (
     284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
    355285SET obuild_cxx_options=-fPIC
    356 )
    357 SET obuild_platform_result=
    358 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    359 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    360 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    361 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    362 cd "%obuild_pwd_snovis_0%"
    363 SET obuild_pwd_snovis_0=
    364 IF %obuild_platform_result% == yes (
     286:end_if_platform_24
     287SET obuild_platform_result=
     288FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     289cd "%obuild_snovis_path%\%obuild_dir_bin%"
     290IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     291FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     292cd "%obuild_pwd_snovis_0%"
     293SET obuild_pwd_snovis_0=
     294IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    365295SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    366 )
    367 SET obuild_platform_result=
    368 
    369 IF %obuild_debug% == yes (
     296:end_if_platform_25
     297SET obuild_platform_result=
     298
     299IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_26
    370300  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    371 ) ELSE (
     301  GOTO end_if_db_build_app_prog_snova_sh_26
     302:else_if_db_build_app_prog_snova_sh_26
    372303  SET obuild_cxx_debug_local=
    373 )
    374 IF %obuild_optimize% == yes (
     304:end_if_db_build_app_prog_snova_sh_26
     305
     306IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_27
    375307  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    376 ) ELSE (
     308  GOTO end_if_opt_build_app_prog_snova_sh_27
     309:else_if_opt_build_app_prog_snova_sh_27
    377310  SET obuild_cxx_optimize_local=
    378 )
     311:end_if_opt_build_app_prog_snova_sh_27
     312
    379313
    380314IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    381315IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
    382   cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
     316  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
    383317  IF EXIST obuild_find.obj DEL obuild_find.obj
    384318)
     
    411345cd "%obuild_pwd_snovis_0%"
    412346SET obuild_pwd_snovis_0=
    413 IF %obuild_platform_result% == yes (
    414 SET obuild_cxx_includes=-I${SNOVA_ROOT}
    415 )
    416 SET obuild_platform_result=
    417 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    418 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    419 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    420 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    421 cd "%obuild_pwd_snovis_0%"
    422 SET obuild_pwd_snovis_0=
    423 IF %obuild_platform_result% == yes (
    424 SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include
    425 )
    426 SET obuild_platform_result=
    427 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    428 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    429 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    430 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    431 cd "%obuild_pwd_snovis_0%"
    432 SET obuild_pwd_snovis_0=
    433 IF %obuild_platform_result% == yes (
    434 SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include
    435 )
    436 SET obuild_platform_result=
    437 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    438 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    439 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    440 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    441 cd "%obuild_pwd_snovis_0%"
    442 SET obuild_pwd_snovis_0=
    443 IF %obuild_platform_result% == yes (
    444 SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include
    445 )
    446 SET obuild_platform_result=
    447 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    448 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    449 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    450 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    451 cd "%obuild_pwd_snovis_0%"
    452 SET obuild_pwd_snovis_0=
    453 IF %obuild_platform_result% == yes (
     347IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
     348SET obuild_cxx_includes=-I${snova_home}
     349:end_if_platform_28
     350SET obuild_platform_result=
     351FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     352cd "%obuild_snovis_path%\%obuild_dir_bin%"
     353IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     354FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     355cd "%obuild_pwd_snovis_0%"
     356SET obuild_pwd_snovis_0=
     357IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
     358SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     359:end_if_platform_29
     360SET obuild_platform_result=
     361FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     362cd "%obuild_snovis_path%\%obuild_dir_bin%"
     363IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     364FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     365cd "%obuild_pwd_snovis_0%"
     366SET obuild_pwd_snovis_0=
     367IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
     368SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
     369:end_if_platform_30
     370SET obuild_platform_result=
     371FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     372cd "%obuild_snovis_path%\%obuild_dir_bin%"
     373IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     374FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     375cd "%obuild_pwd_snovis_0%"
     376SET obuild_pwd_snovis_0=
     377IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
     378SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
     379:end_if_platform_31
     380SET obuild_platform_result=
     381FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     382cd "%obuild_snovis_path%\%obuild_dir_bin%"
     383IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     384FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     385cd "%obuild_pwd_snovis_0%"
     386SET obuild_pwd_snovis_0=
     387IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
     388SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
     389:end_if_platform_32
     390SET obuild_platform_result=
     391FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     392cd "%obuild_snovis_path%\%obuild_dir_bin%"
     393IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     394FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     395cd "%obuild_pwd_snovis_0%"
     396SET obuild_pwd_snovis_0=
     397IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    454398SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    455 )
    456 SET obuild_platform_result=
    457 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    458 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    459 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    460 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    461 cd "%obuild_pwd_snovis_0%"
    462 SET obuild_pwd_snovis_0=
    463 IF %obuild_platform_result% == yes (
     399:end_if_platform_33
     400SET obuild_platform_result=
     401FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     402cd "%obuild_snovis_path%\%obuild_dir_bin%"
     403IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     404FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     405cd "%obuild_pwd_snovis_0%"
     406SET obuild_pwd_snovis_0=
     407IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    464408SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    465 )
     409:end_if_platform_34
    466410SET obuild_platform_result=
    467411SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    472416@IF %obuild_verbose% == yes @ECHO ON
    473417cd "%obuild_snovis_path%\%obuild_dir_bin%"
    474 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova.obj  /Tp..\applications\prog_snova.cc
    475 @IF ERRORLEVEL 1 @GOTO obuild_return
     418%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_prog_snova\prog_snova2.obj  /Tp"..\applications\prog_snova2.cxx" 1> cl_exe_error
     419@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
     420@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
    476421cd "%obuild_snovis_path%\obuild"
    477422
     
    484429cd "%obuild_pwd_snovis_0%"
    485430SET obuild_pwd_snovis_0=
    486 IF %obuild_platform_result% == yes (
     431IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    487432SET obuild_cxx_linker_command=c++
    488 )
     433:end_if_platform_37
    489434SET obuild_platform_result=
    490435FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    494439cd "%obuild_pwd_snovis_0%"
    495440SET obuild_pwd_snovis_0=
    496 IF %obuild_platform_result% == yes (
     441IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    497442SET obuild_cxx_linker_command=c++
    498 )
     443:end_if_platform_38
    499444SET obuild_platform_result=
    500445FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    504449cd "%obuild_pwd_snovis_0%"
    505450SET obuild_pwd_snovis_0=
    506 IF %obuild_platform_result% == yes (
     451IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    507452SET obuild_cxx_linker_command=cxx
    508 )
    509 SET obuild_platform_result=
    510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    511 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    512 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    513 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    514 cd "%obuild_pwd_snovis_0%"
    515 SET obuild_pwd_snovis_0=
    516 IF %obuild_platform_result% == yes (
     453:end_if_platform_39
     454SET obuild_platform_result=
     455FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     456cd "%obuild_snovis_path%\%obuild_dir_bin%"
     457IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     458FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     459cd "%obuild_pwd_snovis_0%"
     460SET obuild_pwd_snovis_0=
     461IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    517462SET obuild_cxx_linker_command=link.exe
    518 )
     463:end_if_platform_40
    519464SET obuild_platform_result=
    520465IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    526471cd "%obuild_pwd_snovis_0%"
    527472SET obuild_pwd_snovis_0=
    528 IF %obuild_platform_result% == yes (
     473IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    529474SET obuild_cxx_linker_debug=-g
    530 )
     475:end_if_platform_41
    531476SET obuild_platform_result=
    532477FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    536481cd "%obuild_pwd_snovis_0%"
    537482SET obuild_pwd_snovis_0=
    538 IF %obuild_platform_result% == yes (
     483IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    539484SET obuild_cxx_linker_debug=-g
    540 )
     485:end_if_platform_42
    541486SET obuild_platform_result=
    542487FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    546491cd "%obuild_pwd_snovis_0%"
    547492SET obuild_pwd_snovis_0=
    548 IF %obuild_platform_result% == yes (
     493IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    549494SET obuild_cxx_linker_debug=-g
    550 )
    551 SET obuild_platform_result=
    552 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    553 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    554 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    555 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    556 cd "%obuild_pwd_snovis_0%"
    557 SET obuild_pwd_snovis_0=
    558 IF %obuild_platform_result% == yes (
     495:end_if_platform_43
     496SET obuild_platform_result=
     497FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     498cd "%obuild_snovis_path%\%obuild_dir_bin%"
     499IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     500FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     501cd "%obuild_pwd_snovis_0%"
     502SET obuild_pwd_snovis_0=
     503IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    559504SET obuild_cxx_linker_debug=/DEBUG
    560 )
    561 SET obuild_platform_result=
    562 
    563 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    564 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    565 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    566 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    567 cd "%obuild_pwd_snovis_0%"
    568 SET obuild_pwd_snovis_0=
    569 IF %obuild_platform_result% == yes (
     505:end_if_platform_44
     506SET obuild_platform_result=
     507
     508FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     509cd "%obuild_snovis_path%\%obuild_dir_bin%"
     510IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     511FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     512cd "%obuild_pwd_snovis_0%"
     513SET obuild_pwd_snovis_0=
     514IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    570515SET obuild_cxx_linker_options=/nologo
    571 )
    572 SET obuild_platform_result=
    573 
    574 IF %obuild_debug% == yes (
     516:end_if_platform_45
     517SET obuild_platform_result=
     518
     519IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_46
    575520  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    576 ) ELSE (
     521  GOTO end_if_db_build_app_prog_snova_sh_46
     522:else_if_db_build_app_prog_snova_sh_46
    577523  SET obuild_cxx_linker_debug_local=
    578 )
    579 IF %obuild_optimize% == yes (
     524:end_if_db_build_app_prog_snova_sh_46
     525
     526IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_47
    580527  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    581 ) ELSE (
     528  GOTO end_if_opt_build_app_prog_snova_sh_47
     529:else_if_opt_build_app_prog_snova_sh_47
    582530  SET obuild_cxx_linker_optimize_local=
    583 )
    584 SET obuild_linked_libraries="%obuild_snovis_path%\%obuild_dir_bin%\snova.lib"
    585 SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom
    586 SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils
    587 SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep
    588 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces
    589 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    590 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    591 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    592 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    593 cd "%obuild_pwd_snovis_0%"
    594 SET obuild_pwd_snovis_0=
    595 IF %obuild_platform_result% == yes (
    596 SET 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
    597 )
    598 SET obuild_platform_result=
    599 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    600 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    601 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    602 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    603 cd "%obuild_pwd_snovis_0%"
    604 SET obuild_pwd_snovis_0=
    605 IF %obuild_platform_result% == yes (
     531:end_if_opt_build_app_prog_snova_sh_47
     532
     533SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
     534SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
     535SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces
     536FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     537cd "%obuild_snovis_path%\%obuild_dir_bin%"
     538IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     539FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     540cd "%obuild_pwd_snovis_0%"
     541SET obuild_pwd_snovis_0=
     542IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
     543SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
     544:end_if_platform_51
     545SET obuild_platform_result=
     546FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     547cd "%obuild_snovis_path%\%obuild_dir_bin%"
     548IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     549FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     550cd "%obuild_pwd_snovis_0%"
     551SET obuild_pwd_snovis_0=
     552IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
    606553SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    607 )
     554:end_if_platform_52
    608555SET obuild_platform_result=
    609556SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
  • snovis/head/obuild/DOS/build_app_snovis_session.bat

    r6 r92  
    8888IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    8989IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
    90   cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
     90  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
    9191  IF EXIST obuild_platform.obj DEL obuild_platform.obj
    9292)
     
    9898cd "%obuild_pwd_snovis_0%"
    9999SET obuild_pwd_snovis_0=
    100 IF %obuild_platform_result% == yes (
    101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
    102 )
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF %obuild_platform_result% == yes (
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
     102:end_if_platform_1
     103SET obuild_platform_result=
     104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     105cd "%obuild_snovis_path%\%obuild_dir_bin%"
     106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     108cd "%obuild_pwd_snovis_0%"
     109SET obuild_pwd_snovis_0=
     110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111111SET bhep_platform=Darwin
    112 )
    113 SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    118 cd "%obuild_pwd_snovis_0%"
    119 SET obuild_pwd_snovis_0=
    120 IF %obuild_platform_result% == yes (
    121 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
    122 )
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF %obuild_platform_result% == yes (
    131 SET GeomUtils_platform=Darwin-i386
    132 )
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF %obuild_platform_result% == yes (
    141 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
    142 )
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snovis_0%"
    149 SET obuild_pwd_snovis_0=
    150 IF %obuild_platform_result% == yes (
    151 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
    152 )
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF %obuild_platform_result% == yes (
     112:end_if_platform_3
     113SET obuild_platform_result=
     114FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     115cd "%obuild_snovis_path%\%obuild_dir_bin%"
     116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     118cd "%obuild_pwd_snovis_0%"
     119SET obuild_pwd_snovis_0=
     120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     121SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     122:end_if_platform_5
     123SET obuild_platform_result=
     124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     125cd "%obuild_snovis_path%\%obuild_dir_bin%"
     126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     128cd "%obuild_pwd_snovis_0%"
     129SET obuild_pwd_snovis_0=
     130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     131SET snova_platform=Darwin
     132:end_if_platform_7
     133SET obuild_platform_result=
     134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     135cd "%obuild_snovis_path%\%obuild_dir_bin%"
     136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     138cd "%obuild_pwd_snovis_0%"
     139SET obuild_pwd_snovis_0=
     140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    161141SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    162 )
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF %obuild_platform_result% == yes (
    171 SET Geant4_home=/geant4/geant4.8.2
    172 )
    173 SET obuild_platform_result=
    174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    175 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    176 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF %obuild_platform_result% == yes (
    181 SET Geant4_work=${Geant4_home}/Darwin
    182 )
     142:end_if_platform_9
     143SET obuild_platform_result=
     144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     145cd "%obuild_snovis_path%\%obuild_dir_bin%"
     146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     148cd "%obuild_pwd_snovis_0%"
     149SET obuild_pwd_snovis_0=
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
     151SET Geant4_home=/usr/local/geant4/8.2
     152:end_if_platform_11
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     158cd "%obuild_pwd_snovis_0%"
     159SET obuild_pwd_snovis_0=
     160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     161SET obuild_cxx_command=c++
     162:end_if_platform_12
    183163SET obuild_platform_result=
    184164FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    188168cd "%obuild_pwd_snovis_0%"
    189169SET obuild_pwd_snovis_0=
    190 IF %obuild_platform_result% == yes (
    191 SET Geant4_work=${Geant4_home}/slc3_gcc323
    192 )
    193 SET obuild_platform_result=
    194 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    195 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    196 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    197 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    198 cd "%obuild_pwd_snovis_0%"
    199 SET obuild_pwd_snovis_0=
    200 IF %obuild_platform_result% == yes (
    201 SET Geant4_system=Darwin-g++
    202 )
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     171SET obuild_cxx_command=c++
     172:end_if_platform_13
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     181SET obuild_cxx_command=cxx
     182:end_if_platform_14
     183SET obuild_platform_result=
     184FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     185cd "%obuild_snovis_path%\%obuild_dir_bin%"
     186IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     187FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     188cd "%obuild_pwd_snovis_0%"
     189SET obuild_pwd_snovis_0=
     190IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     191SET obuild_cxx_command=cl.exe
     192:end_if_platform_15
     193SET obuild_platform_result=
     194IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     195
     196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     197cd "%obuild_snovis_path%\%obuild_dir_bin%"
     198IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     199FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     200cd "%obuild_pwd_snovis_0%"
     201SET obuild_pwd_snovis_0=
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_16
    203205SET obuild_platform_result=
    204206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    208210cd "%obuild_pwd_snovis_0%"
    209211SET obuild_pwd_snovis_0=
    210 IF %obuild_platform_result% == yes (
    211 SET Geant4_system=Linux-g++
    212 )
     212IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     213SET obuild_cxx_optimize=-O
     214:end_if_platform_17
     215SET obuild_platform_result=
     216FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     217cd "%obuild_snovis_path%\%obuild_dir_bin%"
     218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
     223SET obuild_cxx_optimize=-O
     224:end_if_platform_18
    213225SET obuild_platform_result=
    214226FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    218230cd "%obuild_pwd_snovis_0%"
    219231SET obuild_pwd_snovis_0=
    220 IF %obuild_platform_result% == yes (
    221 SET Geant4_system=WIN32-VC
    222 )
    223 SET obuild_platform_result=
    224 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    225 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    226 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    227 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    228 cd "%obuild_pwd_snovis_0%"
    229 SET obuild_pwd_snovis_0=
    230 IF %obuild_platform_result% == yes (
    231 SET obuild_cxx_command=c++
    232 )
     232IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     233SET obuild_cxx_optimize=/O2
     234:end_if_platform_19
     235SET obuild_platform_result=
     236
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     241cd "%obuild_pwd_snovis_0%"
     242SET obuild_pwd_snovis_0=
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
     244SET obuild_cxx_debug=-g
     245:end_if_platform_20
    233246SET obuild_platform_result=
    234247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    238251cd "%obuild_pwd_snovis_0%"
    239252SET obuild_pwd_snovis_0=
    240 IF %obuild_platform_result% == yes (
    241 SET obuild_cxx_command=c++
    242 )
     253IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     254SET obuild_cxx_debug=-g
     255:end_if_platform_21
    243256SET obuild_platform_result=
    244257FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    248261cd "%obuild_pwd_snovis_0%"
    249262SET obuild_pwd_snovis_0=
    250 IF %obuild_platform_result% == yes (
    251 SET obuild_cxx_command=cxx
    252 )
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
     264SET obuild_cxx_debug=-g
     265:end_if_platform_22
    253266SET obuild_platform_result=
    254267FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    258271cd "%obuild_pwd_snovis_0%"
    259272SET obuild_pwd_snovis_0=
    260 IF %obuild_platform_result% == yes (
    261 SET obuild_cxx_command=cl.exe
    262 )
    263 SET obuild_platform_result=
    264 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    265 
    266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    267 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    268 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    270 cd "%obuild_pwd_snovis_0%"
    271 SET obuild_pwd_snovis_0=
    272 IF %obuild_platform_result% == yes (
    273 SET obuild_cxx_optimize=-O
    274 )
    275 SET obuild_platform_result=
     273IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
     274SET obuild_cxx_debug=/ZI /Od
     275:end_if_platform_23
     276SET obuild_platform_result=
     277
    276278FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    277279cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    280282cd "%obuild_pwd_snovis_0%"
    281283SET obuild_pwd_snovis_0=
    282 IF %obuild_platform_result% == yes (
    283 SET obuild_cxx_optimize=-O
    284 )
    285 SET obuild_platform_result=
    286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    287 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    288 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    289 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    290 cd "%obuild_pwd_snovis_0%"
    291 SET obuild_pwd_snovis_0=
    292 IF %obuild_platform_result% == yes (
    293 SET obuild_cxx_optimize=-O
    294 )
     284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
     285SET obuild_cxx_options=-fPIC
     286:end_if_platform_24
    295287SET obuild_platform_result=
    296288FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    300292cd "%obuild_pwd_snovis_0%"
    301293SET obuild_pwd_snovis_0=
    302 IF %obuild_platform_result% == yes (
    303 SET obuild_cxx_optimize=/O2
    304 )
    305 SET obuild_platform_result=
    306 
    307 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    308 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    309 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    310 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    311 cd "%obuild_pwd_snovis_0%"
    312 SET obuild_pwd_snovis_0=
    313 IF %obuild_platform_result% == yes (
    314 SET obuild_cxx_debug=-g
    315 )
    316 SET obuild_platform_result=
    317 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    318 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    319 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    320 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    321 cd "%obuild_pwd_snovis_0%"
    322 SET obuild_pwd_snovis_0=
    323 IF %obuild_platform_result% == yes (
    324 SET obuild_cxx_debug=-g
    325 )
    326 SET obuild_platform_result=
    327 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    328 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    329 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    330 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    331 cd "%obuild_pwd_snovis_0%"
    332 SET obuild_pwd_snovis_0=
    333 IF %obuild_platform_result% == yes (
    334 SET obuild_cxx_debug=-g
    335 )
    336 SET obuild_platform_result=
    337 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    338 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    339 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    340 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    341 cd "%obuild_pwd_snovis_0%"
    342 SET obuild_pwd_snovis_0=
    343 IF %obuild_platform_result% == yes (
    344 SET obuild_cxx_debug=/ZI /Od
    345 )
    346 SET obuild_platform_result=
    347 
    348 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    349 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    350 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    351 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    352 cd "%obuild_pwd_snovis_0%"
    353 SET obuild_pwd_snovis_0=
    354 IF %obuild_platform_result% == yes (
    355 SET obuild_cxx_options=-fPIC
    356 )
    357 SET obuild_platform_result=
    358 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    359 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    360 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    361 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    362 cd "%obuild_pwd_snovis_0%"
    363 SET obuild_pwd_snovis_0=
    364 IF %obuild_platform_result% == yes (
     294IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    365295SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    366 )
    367 SET obuild_platform_result=
    368 
    369 IF %obuild_debug% == yes (
     296:end_if_platform_25
     297SET obuild_platform_result=
     298
     299IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_26
    370300  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    371 ) ELSE (
     301  GOTO end_if_db_build_app_snovis_session_sh_26
     302:else_if_db_build_app_snovis_session_sh_26
    372303  SET obuild_cxx_debug_local=
    373 )
    374 IF %obuild_optimize% == yes (
     304:end_if_db_build_app_snovis_session_sh_26
     305
     306IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_27
    375307  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    376 ) ELSE (
     308  GOTO end_if_opt_build_app_snovis_session_sh_27
     309:else_if_opt_build_app_snovis_session_sh_27
    377310  SET obuild_cxx_optimize_local=
    378 )
     311:end_if_opt_build_app_snovis_session_sh_27
     312
    379313
    380314IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    381315IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
    382   cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
     316  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
    383317  IF EXIST obuild_find.obj DEL obuild_find.obj
    384318)
     
    530464cd "%obuild_pwd_snovis_0%"
    531465SET obuild_pwd_snovis_0=
    532 IF %obuild_platform_result% == yes (
    533 SET obuild_cxx_includes=-I${SNOVA_ROOT}
    534 )
    535 SET obuild_platform_result=
    536 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    537 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    538 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    539 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    540 cd "%obuild_pwd_snovis_0%"
    541 SET obuild_pwd_snovis_0=
    542 IF %obuild_platform_result% == yes (
    543 SET obuild_cxx_includes=%obuild_cxx_includes% -I${SNGEOM2_ROOT}/include
    544 )
    545 SET obuild_platform_result=
    546 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    547 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    548 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    549 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    550 cd "%obuild_pwd_snovis_0%"
    551 SET obuild_pwd_snovis_0=
    552 IF %obuild_platform_result% == yes (
    553 SET obuild_cxx_includes=%obuild_cxx_includes% -I${GEOMUTILS_ROOT}/include
    554 )
    555 SET obuild_platform_result=
    556 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    557 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    558 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    559 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    560 cd "%obuild_pwd_snovis_0%"
    561 SET obuild_pwd_snovis_0=
    562 IF %obuild_platform_result% == yes (
    563 SET obuild_cxx_includes=%obuild_cxx_includes% -I${BHEP_ROOT}/Darwin/include
    564 )
    565 SET obuild_platform_result=
    566 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    567 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    568 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    569 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    570 cd "%obuild_pwd_snovis_0%"
    571 SET obuild_pwd_snovis_0=
    572 IF %obuild_platform_result% == yes (
     466IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
     467SET obuild_cxx_includes=-I${snova_home}
     468:end_if_platform_28
     469SET obuild_platform_result=
     470FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     471cd "%obuild_snovis_path%\%obuild_dir_bin%"
     472IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     473FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     474cd "%obuild_pwd_snovis_0%"
     475SET obuild_pwd_snovis_0=
     476IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
     477SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     478:end_if_platform_29
     479SET obuild_platform_result=
     480FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     481cd "%obuild_snovis_path%\%obuild_dir_bin%"
     482IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     483FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     484cd "%obuild_pwd_snovis_0%"
     485SET obuild_pwd_snovis_0=
     486IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
     487SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
     488:end_if_platform_30
     489SET obuild_platform_result=
     490FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     491cd "%obuild_snovis_path%\%obuild_dir_bin%"
     492IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     493FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     494cd "%obuild_pwd_snovis_0%"
     495SET obuild_pwd_snovis_0=
     496IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
     497SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
     498:end_if_platform_31
     499SET obuild_platform_result=
     500FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     501cd "%obuild_snovis_path%\%obuild_dir_bin%"
     502IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     503FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     504cd "%obuild_pwd_snovis_0%"
     505SET obuild_pwd_snovis_0=
     506IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
     507SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
     508:end_if_platform_32
     509SET obuild_platform_result=
     510FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     511cd "%obuild_snovis_path%\%obuild_dir_bin%"
     512IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     513FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     514cd "%obuild_pwd_snovis_0%"
     515SET obuild_pwd_snovis_0=
     516IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    573517SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    574 )
    575 SET obuild_platform_result=
    576 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    577 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    578 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    579 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    580 cd "%obuild_pwd_snovis_0%"
    581 SET obuild_pwd_snovis_0=
    582 IF %obuild_platform_result% == yes (
     518:end_if_platform_33
     519SET obuild_platform_result=
     520FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     521cd "%obuild_snovis_path%\%obuild_dir_bin%"
     522IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     523FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     524cd "%obuild_pwd_snovis_0%"
     525SET obuild_pwd_snovis_0=
     526IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    583527SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    584 )
     528:end_if_platform_34
    585529SET obuild_platform_result=
    586530SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    595539@IF %obuild_verbose% == yes @ECHO ON
    596540cd "%obuild_snovis_path%\%obuild_dir_bin%"
    597 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj  /Tp..\applications\snovis_session.cc
    598 @IF ERRORLEVEL 1 @GOTO obuild_return
     541%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\app_snovis_session\snovis_session.obj  /Tp"..\applications\snovis_session.cc" 1> cl_exe_error
     542@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
     543@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
    599544cd "%obuild_snovis_path%\obuild"
    600545
     
    607552cd "%obuild_pwd_snovis_0%"
    608553SET obuild_pwd_snovis_0=
    609 IF %obuild_platform_result% == yes (
     554IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    610555SET obuild_cxx_linker_command=c++
    611 )
     556:end_if_platform_41
    612557SET obuild_platform_result=
    613558FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    617562cd "%obuild_pwd_snovis_0%"
    618563SET obuild_pwd_snovis_0=
    619 IF %obuild_platform_result% == yes (
     564IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    620565SET obuild_cxx_linker_command=c++
    621 )
     566:end_if_platform_42
    622567SET obuild_platform_result=
    623568FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    627572cd "%obuild_pwd_snovis_0%"
    628573SET obuild_pwd_snovis_0=
    629 IF %obuild_platform_result% == yes (
     574IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    630575SET obuild_cxx_linker_command=cxx
    631 )
     576:end_if_platform_43
    632577SET obuild_platform_result=
    633578FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    637582cd "%obuild_pwd_snovis_0%"
    638583SET obuild_pwd_snovis_0=
    639 IF %obuild_platform_result% == yes (
     584IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    640585SET obuild_cxx_linker_command=link.exe
    641 )
     586:end_if_platform_44
    642587SET obuild_platform_result=
    643588IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    649594cd "%obuild_pwd_snovis_0%"
    650595SET obuild_pwd_snovis_0=
    651 IF %obuild_platform_result% == yes (
     596IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    652597SET obuild_cxx_linker_debug=-g
    653 )
     598:end_if_platform_45
    654599SET obuild_platform_result=
    655600FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    659604cd "%obuild_pwd_snovis_0%"
    660605SET obuild_pwd_snovis_0=
    661 IF %obuild_platform_result% == yes (
     606IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    662607SET obuild_cxx_linker_debug=-g
    663 )
     608:end_if_platform_46
    664609SET obuild_platform_result=
    665610FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    669614cd "%obuild_pwd_snovis_0%"
    670615SET obuild_pwd_snovis_0=
    671 IF %obuild_platform_result% == yes (
     616IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    672617SET obuild_cxx_linker_debug=-g
    673 )
     618:end_if_platform_47
    674619SET obuild_platform_result=
    675620FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    679624cd "%obuild_pwd_snovis_0%"
    680625SET obuild_pwd_snovis_0=
    681 IF %obuild_platform_result% == yes (
     626IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
    682627SET obuild_cxx_linker_debug=/DEBUG
    683 )
     628:end_if_platform_48
    684629SET obuild_platform_result=
    685630
     
    690635cd "%obuild_pwd_snovis_0%"
    691636SET obuild_pwd_snovis_0=
    692 IF %obuild_platform_result% == yes (
     637IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    693638SET obuild_cxx_linker_options=/nologo
    694 )
    695 SET obuild_platform_result=
    696 
    697 IF %obuild_debug% == yes (
     639:end_if_platform_49
     640SET obuild_platform_result=
     641
     642IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_50
    698643  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    699 ) ELSE (
     644  GOTO end_if_db_build_app_snovis_session_sh_50
     645:else_if_db_build_app_snovis_session_sh_50
    700646  SET obuild_cxx_linker_debug_local=
    701 )
    702 IF %obuild_optimize% == yes (
     647:end_if_db_build_app_snovis_session_sh_50
     648
     649IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_51
    703650  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    704 ) ELSE (
     651  GOTO end_if_opt_build_app_snovis_session_sh_51
     652:else_if_opt_build_app_snovis_session_sh_51
    705653  SET obuild_cxx_linker_optimize_local=
    706 )
     654:end_if_opt_build_app_snovis_session_sh_51
     655
    707656SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
    708 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snovis_path%\%obuild_dir_bin%\snova.lib"
    709 SET obuild_linked_libraries=%obuild_linked_libraries% -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom
    710 SET obuild_linked_libraries=%obuild_linked_libraries% -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils
    711 SET obuild_linked_libraries=%obuild_linked_libraries% -L${BHEP_ROOT}/Darwin/lib -lbhep
     657SET obuild_linked_libraries=%obuild_linked_libraries% -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
     658SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
    712659SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
    713660SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
     
    719666cd "%obuild_pwd_snovis_0%"
    720667SET obuild_pwd_snovis_0=
    721 IF %obuild_platform_result% == yes (
    722 SET 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
    723 )
    724 SET obuild_platform_result=
    725 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    726 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    727 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    728 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    729 cd "%obuild_pwd_snovis_0%"
    730 SET obuild_pwd_snovis_0=
    731 IF %obuild_platform_result% == yes (
     668IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
     669SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
     670:end_if_platform_58
     671SET obuild_platform_result=
     672FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     673cd "%obuild_snovis_path%\%obuild_dir_bin%"
     674IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     675FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     676cd "%obuild_pwd_snovis_0%"
     677SET obuild_pwd_snovis_0=
     678IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
    732679SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    733 )
     680:end_if_platform_59
    734681SET obuild_platform_result=
    735682SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
     
    750697cd "%obuild_pwd_snovis_0%"
    751698SET obuild_pwd_snovis_0=
    752 IF %obuild_platform_result% == yes (
     699IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
    753700SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
    754 )
    755 SET obuild_platform_result=
    756 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    757 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    758 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    759 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    760 cd "%obuild_pwd_snovis_0%"
    761 SET obuild_pwd_snovis_0=
    762 IF %obuild_platform_result% == yes (
     701:end_if_platform_71
     702SET obuild_platform_result=
     703FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     704cd "%obuild_snovis_path%\%obuild_dir_bin%"
     705IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     706FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     707cd "%obuild_pwd_snovis_0%"
     708SET obuild_pwd_snovis_0=
     709IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
    763710SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
    764 )
     711:end_if_platform_72
    765712SET obuild_platform_result=
    766713FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    770717cd "%obuild_pwd_snovis_0%"
    771718SET obuild_pwd_snovis_0=
    772 IF %obuild_platform_result% == yes (
     719IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
    773720SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    774 )
     721:end_if_platform_73
    775722SET obuild_platform_result=
    776723FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    780727cd "%obuild_pwd_snovis_0%"
    781728SET obuild_pwd_snovis_0=
    782 IF %obuild_platform_result% == yes (
     729IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
    783730SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    784 )
     731:end_if_platform_74
    785732SET obuild_platform_result=
    786733FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    790737cd "%obuild_pwd_snovis_0%"
    791738SET obuild_pwd_snovis_0=
    792 IF %obuild_platform_result% == yes (
     739IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75
    793740SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    794 )
    795 SET obuild_platform_result=
    796 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    797 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    798 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    799 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    800 cd "%obuild_pwd_snovis_0%"
    801 SET obuild_pwd_snovis_0=
    802 IF %obuild_platform_result% == yes (
     741:end_if_platform_75
     742SET obuild_platform_result=
     743FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     744cd "%obuild_snovis_path%\%obuild_dir_bin%"
     745IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     746FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     747cd "%obuild_pwd_snovis_0%"
     748SET obuild_pwd_snovis_0=
     749IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76
    803750SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    804 )
     751:end_if_platform_76
    805752SET obuild_platform_result=
    806753
  • snovis/head/obuild/DOS/build_dll_snovis.bat

    r6 r92  
    8888IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    8989IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
    90   cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
     90  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
    9191  IF EXIST obuild_platform.obj DEL obuild_platform.obj
    9292)
     
    9898cd "%obuild_pwd_snovis_0%"
    9999SET obuild_pwd_snovis_0=
    100 IF %obuild_platform_result% == yes (
    101 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
    102 )
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF %obuild_platform_result% == yes (
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
     102:end_if_platform_1
     103SET obuild_platform_result=
     104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     105cd "%obuild_snovis_path%\%obuild_dir_bin%"
     106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     108cd "%obuild_pwd_snovis_0%"
     109SET obuild_pwd_snovis_0=
     110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111111SET bhep_platform=Darwin
    112 )
     112:end_if_platform_3
    113113SET obuild_platform_result=
    114114FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    118118cd "%obuild_pwd_snovis_0%"
    119119SET obuild_pwd_snovis_0=
    120 IF %obuild_platform_result% == yes (
    121 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
    122 )
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    125 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snovis_0%"
    129 SET obuild_pwd_snovis_0=
    130 IF %obuild_platform_result% == yes (
    131 SET GeomUtils_platform=Darwin-i386
    132 )
     120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     121SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     122:end_if_platform_5
     123SET obuild_platform_result=
     124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     125cd "%obuild_snovis_path%\%obuild_dir_bin%"
     126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     128cd "%obuild_pwd_snovis_0%"
     129SET obuild_pwd_snovis_0=
     130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     131SET snova_platform=Darwin
     132:end_if_platform_7
    133133SET obuild_platform_result=
    134134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    138138cd "%obuild_pwd_snovis_0%"
    139139SET obuild_pwd_snovis_0=
    140 IF %obuild_platform_result% == yes (
    141 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
    142 )
     140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
     141SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     142:end_if_platform_9
    143143SET obuild_platform_result=
    144144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    148148cd "%obuild_pwd_snovis_0%"
    149149SET obuild_pwd_snovis_0=
    150 IF %obuild_platform_result% == yes (
    151 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
    152 )
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    155 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    157 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snovis_0%"
    159 SET obuild_pwd_snovis_0=
    160 IF %obuild_platform_result% == yes (
    161 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    162 )
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    165 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    166 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    167 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snovis_0%"
    169 SET obuild_pwd_snovis_0=
    170 IF %obuild_platform_result% == yes (
    171 SET Geant4_home=/geant4/geant4.8.2
    172 )
    173 SET obuild_platform_result=
    174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    175 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    176 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF %obuild_platform_result% == yes (
    181 SET Geant4_work=${Geant4_home}/Darwin
    182 )
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
     151SET Geant4_home=/usr/local/geant4/8.2
     152:end_if_platform_11
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     158cd "%obuild_pwd_snovis_0%"
     159SET obuild_pwd_snovis_0=
     160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     161SET obuild_cxx_command=c++
     162:end_if_platform_12
    183163SET obuild_platform_result=
    184164FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    188168cd "%obuild_pwd_snovis_0%"
    189169SET obuild_pwd_snovis_0=
    190 IF %obuild_platform_result% == yes (
    191 SET Geant4_work=${Geant4_home}/slc3_gcc323
    192 )
    193 SET obuild_platform_result=
    194 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    195 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    196 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    197 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    198 cd "%obuild_pwd_snovis_0%"
    199 SET obuild_pwd_snovis_0=
    200 IF %obuild_platform_result% == yes (
    201 SET Geant4_system=Darwin-g++
    202 )
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     171SET obuild_cxx_command=c++
     172:end_if_platform_13
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     181SET obuild_cxx_command=cxx
     182:end_if_platform_14
     183SET obuild_platform_result=
     184FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     185cd "%obuild_snovis_path%\%obuild_dir_bin%"
     186IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     187FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     188cd "%obuild_pwd_snovis_0%"
     189SET obuild_pwd_snovis_0=
     190IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     191SET obuild_cxx_command=cl.exe
     192:end_if_platform_15
     193SET obuild_platform_result=
     194IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     195
     196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     197cd "%obuild_snovis_path%\%obuild_dir_bin%"
     198IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     199FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     200cd "%obuild_pwd_snovis_0%"
     201SET obuild_pwd_snovis_0=
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_16
    203205SET obuild_platform_result=
    204206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    208210cd "%obuild_pwd_snovis_0%"
    209211SET obuild_pwd_snovis_0=
    210 IF %obuild_platform_result% == yes (
    211 SET Geant4_system=Linux-g++
    212 )
     212IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     213SET obuild_cxx_optimize=-O
     214:end_if_platform_17
     215SET obuild_platform_result=
     216FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     217cd "%obuild_snovis_path%\%obuild_dir_bin%"
     218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
     223SET obuild_cxx_optimize=-O
     224:end_if_platform_18
    213225SET obuild_platform_result=
    214226FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    218230cd "%obuild_pwd_snovis_0%"
    219231SET obuild_pwd_snovis_0=
    220 IF %obuild_platform_result% == yes (
    221 SET Geant4_system=WIN32-VC
    222 )
    223 SET obuild_platform_result=
    224 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    225 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    226 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    227 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    228 cd "%obuild_pwd_snovis_0%"
    229 SET obuild_pwd_snovis_0=
    230 IF %obuild_platform_result% == yes (
    231 SET obuild_cxx_command=c++
    232 )
     232IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     233SET obuild_cxx_optimize=/O2
     234:end_if_platform_19
     235SET obuild_platform_result=
     236
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     241cd "%obuild_pwd_snovis_0%"
     242SET obuild_pwd_snovis_0=
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
     244SET obuild_cxx_debug=-g
     245:end_if_platform_20
    233246SET obuild_platform_result=
    234247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    238251cd "%obuild_pwd_snovis_0%"
    239252SET obuild_pwd_snovis_0=
    240 IF %obuild_platform_result% == yes (
    241 SET obuild_cxx_command=c++
    242 )
     253IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     254SET obuild_cxx_debug=-g
     255:end_if_platform_21
    243256SET obuild_platform_result=
    244257FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    248261cd "%obuild_pwd_snovis_0%"
    249262SET obuild_pwd_snovis_0=
    250 IF %obuild_platform_result% == yes (
    251 SET obuild_cxx_command=cxx
    252 )
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
     264SET obuild_cxx_debug=-g
     265:end_if_platform_22
    253266SET obuild_platform_result=
    254267FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    258271cd "%obuild_pwd_snovis_0%"
    259272SET obuild_pwd_snovis_0=
    260 IF %obuild_platform_result% == yes (
    261 SET obuild_cxx_command=cl.exe
    262 )
    263 SET obuild_platform_result=
    264 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    265 
    266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    267 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    268 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    270 cd "%obuild_pwd_snovis_0%"
    271 SET obuild_pwd_snovis_0=
    272 IF %obuild_platform_result% == yes (
    273 SET obuild_cxx_optimize=-O
    274 )
    275 SET obuild_platform_result=
     273IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
     274SET obuild_cxx_debug=/ZI /Od
     275:end_if_platform_23
     276SET obuild_platform_result=
     277
    276278FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    277279cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    280282cd "%obuild_pwd_snovis_0%"
    281283SET obuild_pwd_snovis_0=
    282 IF %obuild_platform_result% == yes (
    283 SET obuild_cxx_optimize=-O
    284 )
    285 SET obuild_platform_result=
    286 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    287 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    288 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    289 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    290 cd "%obuild_pwd_snovis_0%"
    291 SET obuild_pwd_snovis_0=
    292 IF %obuild_platform_result% == yes (
    293 SET obuild_cxx_optimize=-O
    294 )
     284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
     285SET obuild_cxx_options=-fPIC
     286:end_if_platform_24
    295287SET obuild_platform_result=
    296288FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    300292cd "%obuild_pwd_snovis_0%"
    301293SET obuild_pwd_snovis_0=
    302 IF %obuild_platform_result% == yes (
    303 SET obuild_cxx_optimize=/O2
    304 )
    305 SET obuild_platform_result=
    306 
    307 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    308 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    309 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    310 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    311 cd "%obuild_pwd_snovis_0%"
    312 SET obuild_pwd_snovis_0=
    313 IF %obuild_platform_result% == yes (
    314 SET obuild_cxx_debug=-g
    315 )
    316 SET obuild_platform_result=
    317 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    318 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    319 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    320 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    321 cd "%obuild_pwd_snovis_0%"
    322 SET obuild_pwd_snovis_0=
    323 IF %obuild_platform_result% == yes (
    324 SET obuild_cxx_debug=-g
    325 )
    326 SET obuild_platform_result=
    327 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    328 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    329 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    330 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    331 cd "%obuild_pwd_snovis_0%"
    332 SET obuild_pwd_snovis_0=
    333 IF %obuild_platform_result% == yes (
    334 SET obuild_cxx_debug=-g
    335 )
    336 SET obuild_platform_result=
    337 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    338 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    339 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    340 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    341 cd "%obuild_pwd_snovis_0%"
    342 SET obuild_pwd_snovis_0=
    343 IF %obuild_platform_result% == yes (
    344 SET obuild_cxx_debug=/ZI /Od
    345 )
    346 SET obuild_platform_result=
    347 
    348 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    349 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    350 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    351 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    352 cd "%obuild_pwd_snovis_0%"
    353 SET obuild_pwd_snovis_0=
    354 IF %obuild_platform_result% == yes (
    355 SET obuild_cxx_options=-fPIC
    356 )
    357 SET obuild_platform_result=
    358 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    359 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    360 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    361 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    362 cd "%obuild_pwd_snovis_0%"
    363 SET obuild_pwd_snovis_0=
    364 IF %obuild_platform_result% == yes (
     294IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    365295SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    366 )
    367 SET obuild_platform_result=
    368 
    369 IF %obuild_debug% == yes (
     296:end_if_platform_25
     297SET obuild_platform_result=
     298
     299IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_26
    370300  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    371 ) ELSE (
     301  GOTO end_if_db_build_dll_snovis_sh_26
     302:else_if_db_build_dll_snovis_sh_26
    372303  SET obuild_cxx_debug_local=
    373 )
    374 IF %obuild_optimize% == yes (
     304:end_if_db_build_dll_snovis_sh_26
     305
     306IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_27
    375307  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    376 ) ELSE (
     308  GOTO end_if_opt_build_dll_snovis_sh_27
     309:else_if_opt_build_dll_snovis_sh_27
    377310  SET obuild_cxx_optimize_local=
    378 )
     311:end_if_opt_build_dll_snovis_sh_27
     312
    379313
    380314IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    381315IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
    382   cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
     316  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
    383317  IF EXIST obuild_find.obj DEL obuild_find.obj
    384318)
     
    532466cd "%obuild_pwd_snovis_0%"
    533467SET obuild_pwd_snovis_0=
    534 IF %obuild_platform_result% == yes (
     468IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    535469SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    536 )
     470:end_if_platform_37
    537471SET obuild_platform_result=
    538472FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    542476cd "%obuild_pwd_snovis_0%"
    543477SET obuild_pwd_snovis_0=
    544 IF %obuild_platform_result% == yes (
     478IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    545479SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    546 )
     480:end_if_platform_38
    547481SET obuild_platform_result=
    548482
     
    552486@IF %obuild_verbose% == yes @ECHO ON
    553487cd "%obuild_snovis_path%\%obuild_dir_bin%"
    554 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj  /Tp..\source\Callbacks.cxx
    555 @IF ERRORLEVEL 1 @GOTO obuild_return
     488%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Callbacks.obj  /Tp"..\source\Callbacks.cxx" 1> cl_exe_error
     489@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
     490@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
    556491cd "%obuild_snovis_path%\obuild"
    557492
    558493cd "%obuild_snovis_path%\%obuild_dir_bin%"
    559 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj  /Tp..\source\InventorCallbacks.cxx
    560 @IF ERRORLEVEL 1 @GOTO obuild_return
     494%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\InventorCallbacks.obj  /Tp"..\source\InventorCallbacks.cxx" 1> cl_exe_error
     495@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
     496@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
    561497cd "%obuild_snovis_path%\obuild"
    562498
    563499cd "%obuild_snovis_path%\%obuild_dir_bin%"
    564 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj  /Tp..\source\Layouts.cxx
    565 @IF ERRORLEVEL 1 @GOTO obuild_return
     500%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\dll_snovis\Layouts.obj  /Tp"..\source\Layouts.cxx" 1> cl_exe_error
     501@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
     502@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
    566503cd "%obuild_snovis_path%\obuild"
    567504
     
    585522cd "%obuild_pwd_snovis_0%"
    586523SET obuild_pwd_snovis_0=
    587 IF %obuild_platform_result% == yes (
     524IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
    588525SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
    589 )
    590 SET obuild_platform_result=
    591 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    592 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    593 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    594 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    595 cd "%obuild_pwd_snovis_0%"
    596 SET obuild_pwd_snovis_0=
    597 IF %obuild_platform_result% == yes (
     526:end_if_platform_53
     527SET obuild_platform_result=
     528FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     529cd "%obuild_snovis_path%\%obuild_dir_bin%"
     530IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     531FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     532cd "%obuild_pwd_snovis_0%"
     533SET obuild_pwd_snovis_0=
     534IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
    598535SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
    599 )
     536:end_if_platform_54
    600537SET obuild_platform_result=
    601538FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    605542cd "%obuild_pwd_snovis_0%"
    606543SET obuild_pwd_snovis_0=
    607 IF %obuild_platform_result% == yes (
     544IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
    608545SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    609 )
     546:end_if_platform_55
    610547SET obuild_platform_result=
    611548FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    615552cd "%obuild_pwd_snovis_0%"
    616553SET obuild_pwd_snovis_0=
    617 IF %obuild_platform_result% == yes (
     554IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    618555SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    619 )
     556:end_if_platform_56
    620557SET obuild_platform_result=
    621558FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    625562cd "%obuild_pwd_snovis_0%"
    626563SET obuild_pwd_snovis_0=
    627 IF %obuild_platform_result% == yes (
     564IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    628565SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    629 )
     566:end_if_platform_57
    630567SET obuild_platform_result=
    631568FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    635572cd "%obuild_pwd_snovis_0%"
    636573SET obuild_pwd_snovis_0=
    637 IF %obuild_platform_result% == yes (
     574IF NOT %obuild_platform_result% == yes GOTO end_if_platform_58
    638575SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    639 )
     576:end_if_platform_58
    640577SET obuild_platform_result=
    641578
     
    652589
    653590REM # Build the obuild_windef.exe utility program :
    654 cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c"
     591cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snovis_path%\obuild\cpp\obuild_windef.c" 1> NUL
    655592IF EXIST obuild_windef.obj DEL obuild_windef.obj
    656593
    657594REM # Building the .def file :
    658595@IF %obuild_verbose% == yes @ECHO ON
    659 dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc
     596dumpbin.exe /symbols /out:.\dll_snovis\tmp .\dll_snovis\snovis.arc 1> dumpbin_exe_error .\dll_snovis\snovis.arc
     597@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
     598@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
    660599@IF %obuild_verbose% == yes @ECHO OFF
    661600.\obuild_windef.exe snovis < .\dll_snovis\tmp > .\dll_snovis\snovis.def
     
    663602REM # It produces a .exp file.
    664603@IF %obuild_verbose% == yes @ECHO ON
    665 lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def
     604lib.exe /nologo /machine:ix86 /out:.\dll_snovis\snovis.lib /def:.\dll_snovis\snovis.def 1> lib_exe_error
     605@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
     606@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
    666607@IF %obuild_verbose% == yes @ECHO OFF
    667608
  • snovis/head/obuild/setup.bat

    r6 r92  
    4444IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    4545IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" (
    46   cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp"
     46  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snovis_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
    4747  IF EXIST obuild_platform.obj DEL obuild_platform.obj
    4848)
     
    5454cd "%obuild_pwd_snovis_0%"
    5555SET obuild_pwd_snovis_0=
    56 IF %obuild_platform_result% == yes (
    57 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p1
    58 )
     56IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     57SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
     58:end_if_platform_1
    5959SET obuild_platform_result=
    6060FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    6464cd "%obuild_pwd_snovis_0%"
    6565SET obuild_pwd_snovis_0=
    66 IF %obuild_platform_result% == yes (
     66IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    6767SET bhep_platform=Darwin
    68 )
     68:end_if_platform_3
    6969SET obuild_platform_result=
    7070FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    7474cd "%obuild_pwd_snovis_0%"
    7575SET obuild_pwd_snovis_0=
    76 IF %obuild_platform_result% == yes (
    77 SET GeomUtils_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils
    78 )
     76IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
     77SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     78:end_if_platform_5
    7979SET obuild_platform_result=
    8080FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    8484cd "%obuild_pwd_snovis_0%"
    8585SET obuild_pwd_snovis_0=
    86 IF %obuild_platform_result% == yes (
    87 SET GeomUtils_platform=Darwin-i386
    88 )
     86IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     87SET snova_platform=Darwin
     88:end_if_platform_7
    8989SET obuild_platform_result=
    9090FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    9494cd "%obuild_pwd_snovis_0%"
    9595SET obuild_pwd_snovis_0=
    96 IF %obuild_platform_result% == yes (
    97 SET SNgeom2_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2
    98 )
     96IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
     97SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     98:end_if_platform_9
    9999SET obuild_platform_result=
    100100FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    104104cd "%obuild_pwd_snovis_0%"
    105105SET obuild_pwd_snovis_0=
    106 IF %obuild_platform_result% == yes (
    107 SET snova_home=/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova
    108 )
    109 SET obuild_platform_result=
    110 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    111 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    112 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    113 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    114 cd "%obuild_pwd_snovis_0%"
    115 SET obuild_pwd_snovis_0=
    116 IF %obuild_platform_result% == yes (
    117 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    118 )
    119 SET obuild_platform_result=
    120 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    121 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    122 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    123 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    124 cd "%obuild_pwd_snovis_0%"
    125 SET obuild_pwd_snovis_0=
    126 IF %obuild_platform_result% == yes (
    127 SET Geant4_home=/geant4/geant4.8.2
    128 )
    129 SET obuild_platform_result=
    130 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    131 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    132 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    133 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    134 cd "%obuild_pwd_snovis_0%"
    135 SET obuild_pwd_snovis_0=
    136 IF %obuild_platform_result% == yes (
    137 SET Geant4_work=${Geant4_home}/Darwin
    138 )
    139 SET obuild_platform_result=
    140 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    141 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    142 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    143 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    144 cd "%obuild_pwd_snovis_0%"
    145 SET obuild_pwd_snovis_0=
    146 IF %obuild_platform_result% == yes (
    147 SET Geant4_work=${Geant4_home}/slc3_gcc323
    148 )
    149 SET obuild_platform_result=
    150 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    151 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    152 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    153 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    154 cd "%obuild_pwd_snovis_0%"
    155 SET obuild_pwd_snovis_0=
    156 IF %obuild_platform_result% == yes (
    157 SET Geant4_system=Darwin-g++
    158 )
    159 SET obuild_platform_result=
    160 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    161 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    162 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    163 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    164 cd "%obuild_pwd_snovis_0%"
    165 SET obuild_pwd_snovis_0=
    166 IF %obuild_platform_result% == yes (
    167 SET Geant4_system=Linux-g++
    168 )
    169 SET obuild_platform_result=
    170 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    171 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    172 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    173 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    174 cd "%obuild_pwd_snovis_0%"
    175 SET obuild_pwd_snovis_0=
    176 IF %obuild_platform_result% == yes (
    177 SET Geant4_system=WIN32-VC
    178 )
     106IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
     107SET Geant4_home=/usr/local/geant4/8.2
     108:end_if_platform_11
    179109SET obuild_platform_result=
    180110IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
    181111IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" (
    182   cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp"
     112  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snovis_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snovis_path%\obuild\cpp\obuild_find.cpp" 1> NUL
    183113  IF EXIST obuild_find.obj DEL obuild_find.obj
    184114)
     
    214144SET NeutronHPCrossSections=%Geant4_home%\data\G4NDL3.10
    215145
    216 IF NOT DEFINED PATH (
     146IF DEFINED PATH GOTO else_if_path_snovis_17
    217147  SET PATH=%obuild_snovis_path%\%obuild_dir_bin%
    218 ) ELSE (
     148  GOTO end_if_path_snovis_17
     149:else_if_path_snovis_17
    219150  SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin%
    220 )
     151:end_if_path_snovis_17
    221152
    222153:obuild_return
  • snovis/head/obuild/setup.csh

    r6 r92  
    129129set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    130130if ( ${obuild_platform_result} == yes ) then
    131 set bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
     131set bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    132132endif
    133133unset obuild_platform_result
     
    147147set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    148148if ( ${obuild_platform_result} == yes ) then
    149 set GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
    150 endif
    151 unset obuild_platform_result
    152 if ( "${obuild_platform_exe}" == "" ) then
    153   echo "Variable obuild_platform_exe not defined."
    154   exit
    155 endif
    156 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    157 if ( ${obuild_platform_result} == yes ) then
    158 set GeomUtils_platform="Darwin-i386"
     149set snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
     150endif
     151unset obuild_platform_result
     152if ( "${obuild_platform_exe}" == "" ) then
     153  echo "Variable obuild_platform_exe not defined."
     154  exit
     155endif
     156set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
     157if ( ${obuild_platform_result} == yes ) then
     158set snova_platform="Darwin"
    159159endif
    160160unset obuild_platform_result
     
    165165set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    166166if ( ${obuild_platform_result} == yes ) then
    167 set SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
     167set CLHEP_home="/usr/local/CLHEP/2.0.3.1"
    168168endif
    169169unset obuild_platform_result
     
    174174set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    175175if ( ${obuild_platform_result} == yes ) then
    176 set snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
    177 endif
    178 unset obuild_platform_result
    179 if ( "${obuild_platform_exe}" == "" ) then
    180   echo "Variable obuild_platform_exe not defined."
    181   exit
    182 endif
    183 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    184 if ( ${obuild_platform_result} == yes ) then
    185 set CLHEP_home="/usr/local/CLHEP/2.0.3.1"
    186 endif
    187 unset obuild_platform_result
    188 if ( "${obuild_platform_exe}" == "" ) then
    189   echo "Variable obuild_platform_exe not defined."
    190   exit
    191 endif
    192 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    193 if ( ${obuild_platform_result} == yes ) then
    194 set Geant4_home="/geant4/geant4.8.2"
    195 endif
    196 unset obuild_platform_result
    197 if ( "${obuild_platform_exe}" == "" ) then
    198   echo "Variable obuild_platform_exe not defined."
    199   exit
    200 endif
    201 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    202 if ( ${obuild_platform_result} == yes ) then
    203 set Geant4_work="${Geant4_home}/Darwin"
    204 endif
    205 unset obuild_platform_result
    206 if ( "${obuild_platform_exe}" == "" ) then
    207   echo "Variable obuild_platform_exe not defined."
    208   exit
    209 endif
    210 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Linux`
    211 if ( ${obuild_platform_result} == yes ) then
    212 set Geant4_work="${Geant4_home}/slc3_gcc323"
    213 endif
    214 unset obuild_platform_result
    215 if ( "${obuild_platform_exe}" == "" ) then
    216   echo "Variable obuild_platform_exe not defined."
    217   exit
    218 endif
    219 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    220 if ( ${obuild_platform_result} == yes ) then
    221 set Geant4_system="Darwin-g++"
    222 endif
    223 unset obuild_platform_result
    224 if ( "${obuild_platform_exe}" == "" ) then
    225   echo "Variable obuild_platform_exe not defined."
    226   exit
    227 endif
    228 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Linux`
    229 if ( ${obuild_platform_result} == yes ) then
    230 set Geant4_system="Linux-g++"
    231 endif
    232 unset obuild_platform_result
    233 if ( "${obuild_platform_exe}" == "" ) then
    234   echo "Variable obuild_platform_exe not defined."
    235   exit
    236 endif
    237 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Windows_NT`
    238 if ( ${obuild_platform_result} == yes ) then
    239 set Geant4_system="WIN32-VC"
     176set Geant4_home="/usr/local/geant4/8.2"
    240177endif
    241178unset obuild_platform_result
     
    302239if ( ${obuild_platform_result} == yes ) then
    303240  if (  $?DYLD_LIBRARY_PATH ) then
    304     setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
    305   else
    306     setenv DYLD_LIBRARY_PATH "${GeomUtils_home}/Darwin-i386/lib"
     241    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin"
     242  else
     243    setenv DYLD_LIBRARY_PATH "${bhep_home}/Darwin"
    307244  endif
    308245endif
     
    316253if ( ${obuild_platform_result} == yes ) then
    317254  if (  $?LD_LIBRARY_PATH ) then
    318     setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
    319   else
    320     setenv LD_LIBRARY_PATH "${GeomUtils_home}/Darwin-i386/lib"
     255    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${bhep_home}/Darwin"
     256  else
     257    setenv LD_LIBRARY_PATH "${bhep_home}/Darwin"
    321258  endif
    322259endif
     
    338275if ( ${obuild_platform_result} == yes ) then
    339276  if (  $?DYLD_LIBRARY_PATH ) then
    340     setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
    341   else
    342     setenv DYLD_LIBRARY_PATH "${SNgeom2_home}/Darwin-i386/lib"
     277    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${snova_home}/Darwin"
     278  else
     279    setenv DYLD_LIBRARY_PATH "${snova_home}/Darwin"
    343280  endif
    344281endif
     
    352289if ( ${obuild_platform_result} == yes ) then
    353290  if (  $?LD_LIBRARY_PATH ) then
    354     setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
    355   else
    356     setenv LD_LIBRARY_PATH "${SNgeom2_home}/Darwin-i386/lib"
    357   endif
    358 endif
    359 unset obuild_platform_result
    360 endif
    361 unset obuild_platform_result
    362 
    363 if ( "${obuild_platform_exe}" == "" ) then
    364   echo "Variable obuild_platform_exe not defined."
    365   exit
    366 endif
    367 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    368 if ( ${obuild_platform_result} == yes ) then
    369 if ( "${obuild_platform_exe}" == "" ) then
    370   echo "Variable obuild_platform_exe not defined."
    371   exit
    372 endif
    373 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    374 if ( ${obuild_platform_result} == yes ) then
    375   if (  $?DYLD_LIBRARY_PATH ) then
    376     setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
    377   else
    378     setenv DYLD_LIBRARY_PATH "${bhep_home}/Darwin/lib"
    379   endif
    380 endif
    381 unset obuild_platform_result
    382 else
    383 if ( "${obuild_platform_exe}" == "" ) then
    384   echo "Variable obuild_platform_exe not defined."
    385   exit
    386 endif
    387 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    388 if ( ${obuild_platform_result} == yes ) then
    389   if (  $?LD_LIBRARY_PATH ) then
    390     setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
    391   else
    392     setenv LD_LIBRARY_PATH "${bhep_home}/Darwin/lib"
     291    setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${snova_home}/Darwin"
     292  else
     293    setenv LD_LIBRARY_PATH "${snova_home}/Darwin"
    393294  endif
    394295endif
  • snovis/head/obuild/setup.sh

    r6 r92  
    116116obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    117117if [ ${obuild_platform_result} = yes ] ; then
    118 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
     118bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    119119fi
    120120unset obuild_platform_result
     
    134134obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    135135if [ ${obuild_platform_result} = yes ] ; then
    136 GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
    137 fi
    138 unset obuild_platform_result
    139 if [ "${obuild_platform_exe}" = "" ] ; then
    140   echo "Variable obuild_platform_exe not defined."
    141   return
    142 fi
    143 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    144 if [ ${obuild_platform_result} = yes ] ; then
    145 GeomUtils_platform="Darwin-i386"
     136snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
     137fi
     138unset obuild_platform_result
     139if [ "${obuild_platform_exe}" = "" ] ; then
     140  echo "Variable obuild_platform_exe not defined."
     141  return
     142fi
     143obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
     144if [ ${obuild_platform_result} = yes ] ; then
     145snova_platform="Darwin"
    146146fi
    147147unset obuild_platform_result
     
    152152obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    153153if [ ${obuild_platform_result} = yes ] ; then
    154 SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
     154CLHEP_home="/usr/local/CLHEP/2.0.3.1"
    155155fi
    156156unset obuild_platform_result
     
    161161obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    162162if [ ${obuild_platform_result} = yes ] ; then
    163 snova_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/snova"
    164 fi
    165 unset obuild_platform_result
    166 if [ "${obuild_platform_exe}" = "" ] ; then
    167   echo "Variable obuild_platform_exe not defined."
    168   return
    169 fi
    170 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    171 if [ ${obuild_platform_result} = yes ] ; then
    172 CLHEP_home="/usr/local/CLHEP/2.0.3.1"
    173 fi
    174 unset obuild_platform_result
    175 if [ "${obuild_platform_exe}" = "" ] ; then
    176   echo "Variable obuild_platform_exe not defined."
    177   return
    178 fi
    179 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    180 if [ ${obuild_platform_result} = yes ] ; then
    181 Geant4_home="/geant4/geant4.8.2"
    182 fi
    183 unset obuild_platform_result
    184 if [ "${obuild_platform_exe}" = "" ] ; then
    185   echo "Variable obuild_platform_exe not defined."
    186   return
    187 fi
    188 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    189 if [ ${obuild_platform_result} = yes ] ; then
    190 Geant4_work="${Geant4_home}/Darwin"
    191 fi
    192 unset obuild_platform_result
    193 if [ "${obuild_platform_exe}" = "" ] ; then
    194   echo "Variable obuild_platform_exe not defined."
    195   return
    196 fi
    197 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
    198 if [ ${obuild_platform_result} = yes ] ; then
    199 Geant4_work="${Geant4_home}/slc3_gcc323"
    200 fi
    201 unset obuild_platform_result
    202 if [ "${obuild_platform_exe}" = "" ] ; then
    203   echo "Variable obuild_platform_exe not defined."
    204   return
    205 fi
    206 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    207 if [ ${obuild_platform_result} = yes ] ; then
    208 Geant4_system="Darwin-g++"
    209 fi
    210 unset obuild_platform_result
    211 if [ "${obuild_platform_exe}" = "" ] ; then
    212   echo "Variable obuild_platform_exe not defined."
    213   return
    214 fi
    215 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'`
    216 if [ ${obuild_platform_result} = yes ] ; then
    217 Geant4_system="Linux-g++"
    218 fi
    219 unset obuild_platform_result
    220 if [ "${obuild_platform_exe}" = "" ] ; then
    221   echo "Variable obuild_platform_exe not defined."
    222   return
    223 fi
    224 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    225 if [ ${obuild_platform_result} = yes ] ; then
    226 Geant4_system="WIN32-VC"
     163Geant4_home="/usr/local/geant4/8.2"
    227164fi
    228165unset obuild_platform_result
     
    306243if [ ${obuild_platform_result} = yes ] ; then
    307244  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
    308     DYLD_LIBRARY_PATH="${GeomUtils_home}/Darwin-i386/lib"
    309     export DYLD_LIBRARY_PATH
    310   else
    311     DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
     245    DYLD_LIBRARY_PATH="${bhep_home}/Darwin"
     246    export DYLD_LIBRARY_PATH
     247  else
     248    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin"
    312249    export DYLD_LIBRARY_PATH
    313250  fi
     
    322259if [ ${obuild_platform_result} = yes ] ; then
    323260  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
    324     LD_LIBRARY_PATH="${GeomUtils_home}/Darwin-i386/lib"
    325     export LD_LIBRARY_PATH
    326   else
    327     LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GeomUtils_home}/Darwin-i386/lib"
     261    LD_LIBRARY_PATH="${bhep_home}/Darwin"
     262    export LD_LIBRARY_PATH
     263  else
     264    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${bhep_home}/Darwin"
    328265    export LD_LIBRARY_PATH
    329266  fi
     
    346283if [ ${obuild_platform_result} = yes ] ; then
    347284  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
    348     DYLD_LIBRARY_PATH="${SNgeom2_home}/Darwin-i386/lib"
    349     export DYLD_LIBRARY_PATH
    350   else
    351     DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
     285    DYLD_LIBRARY_PATH="${snova_home}/Darwin"
     286    export DYLD_LIBRARY_PATH
     287  else
     288    DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${snova_home}/Darwin"
    352289    export DYLD_LIBRARY_PATH
    353290  fi
     
    362299if [ ${obuild_platform_result} = yes ] ; then
    363300  if [  "${LD_LIBRARY_PATH}" = "" ] ; then
    364     LD_LIBRARY_PATH="${SNgeom2_home}/Darwin-i386/lib"
    365     export LD_LIBRARY_PATH
    366   else
    367     LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${SNgeom2_home}/Darwin-i386/lib"
    368     export LD_LIBRARY_PATH
    369   fi
    370 fi
    371 unset obuild_platform_result
    372 fi
    373 unset obuild_platform_result
    374 
    375 if [ "${obuild_platform_exe}" = "" ] ; then
    376   echo "Variable obuild_platform_exe not defined."
    377   return
    378 fi
    379 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    380 if [ ${obuild_platform_result} = yes ] ; then
    381 if [ "${obuild_platform_exe}" = "" ] ; then
    382   echo "Variable obuild_platform_exe not defined."
    383   return
    384 fi
    385 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    386 if [ ${obuild_platform_result} = yes ] ; then
    387   if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
    388     DYLD_LIBRARY_PATH="${bhep_home}/Darwin/lib"
    389     export DYLD_LIBRARY_PATH
    390   else
    391     DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
    392     export DYLD_LIBRARY_PATH
    393   fi
    394 fi
    395 unset obuild_platform_result
    396 else
    397 if [ "${obuild_platform_exe}" = "" ] ; then
    398   echo "Variable obuild_platform_exe not defined."
    399   return
    400 fi
    401 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    402 if [ ${obuild_platform_result} = yes ] ; then
    403   if [  "${LD_LIBRARY_PATH}" = "" ] ; then
    404     LD_LIBRARY_PATH="${bhep_home}/Darwin/lib"
    405     export LD_LIBRARY_PATH
    406   else
    407     LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${bhep_home}/Darwin/lib"
     301    LD_LIBRARY_PATH="${snova_home}/Darwin"
     302    export LD_LIBRARY_PATH
     303  else
     304    LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${snova_home}/Darwin"
    408305    export LD_LIBRARY_PATH
    409306  fi
  • snovis/head/obuild/sh/build

    r6 r92  
    115115fi
    116116
    117 # Check foreign packages / resources :
    118 if [ -e ./sh/check_foreigns ] ; then
    119   ./sh/check_foreigns
    120 fi
    121 
    122 if [ "${obuild_group}" = main ] ; then
    123 if [ "${obuild_do_mains}" = yes ] ; then
    124   if [ -e ./sh/build_lib_snova ] ; then
    125     ./sh/build_lib_snova ${obuild_args}
    126     obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    127   fi
    128 fi
    129 fi
    130 
    131117if [ "${obuild_group}" = main ] ; then
    132118if [ "${obuild_do_mains}" = yes ] ; then
  • snovis/head/obuild/sh/build_app_prog_snova

    r6 r92  
    109109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    110110if [ ${obuild_platform_result} = yes ] ; then
    111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
     111bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    112112fi
    113113unset obuild_platform_result
     
    127127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128128if [ ${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"
     129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
     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
     138snova_platform="Darwin"
    157139fi
    158140unset obuild_platform_result
     
    172154obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    173155if [ ${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"
     156Geant4_home="/usr/local/geant4/8.2"
    220157fi
    221158unset obuild_platform_result
     
    422359obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    423360if [ ${obuild_platform_result} = yes ] ; then
    424 obuild_cxx_includes="-I${SNOVA_ROOT}"
    425 fi
    426 unset obuild_platform_result
    427 if [ "${obuild_platform_exe}" = "" ] ; then
    428   echo "Variable obuild_platform_exe not defined."
    429   exit
    430 fi
    431 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    432 if [ ${obuild_platform_result} = yes ] ; then
    433 obuild_cxx_includes="${obuild_cxx_includes} -I${SNGEOM2_ROOT}/include"
    434 fi
    435 unset obuild_platform_result
    436 if [ "${obuild_platform_exe}" = "" ] ; then
    437   echo "Variable obuild_platform_exe not defined."
    438   exit
    439 fi
    440 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    441 if [ ${obuild_platform_result} = yes ] ; then
    442 obuild_cxx_includes="${obuild_cxx_includes} -I${GEOMUTILS_ROOT}/include"
    443 fi
    444 unset obuild_platform_result
    445 if [ "${obuild_platform_exe}" = "" ] ; then
    446   echo "Variable obuild_platform_exe not defined."
    447   exit
    448 fi
    449 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    450 if [ ${obuild_platform_result} = yes ] ; then
    451 obuild_cxx_includes="${obuild_cxx_includes} -I${BHEP_ROOT}/Darwin/include"
     361obuild_cxx_includes="-I${snova_home}"
     362fi
     363unset obuild_platform_result
     364if [ "${obuild_platform_exe}" = "" ] ; then
     365  echo "Variable obuild_platform_exe not defined."
     366  exit
     367fi
     368obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     369if [ ${obuild_platform_result} = yes ] ; then
     370obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/GeomUtils/include"
     371fi
     372unset obuild_platform_result
     373if [ "${obuild_platform_exe}" = "" ] ; then
     374  echo "Variable obuild_platform_exe not defined."
     375  exit
     376fi
     377obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     378if [ ${obuild_platform_result} = yes ] ; then
     379obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNgeom2/include"
     380fi
     381unset obuild_platform_result
     382if [ "${obuild_platform_exe}" = "" ] ; then
     383  echo "Variable obuild_platform_exe not defined."
     384  exit
     385fi
     386obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     387if [ ${obuild_platform_result} = yes ] ; then
     388obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNvertex/include"
     389fi
     390unset obuild_platform_result
     391if [ "${obuild_platform_exe}" = "" ] ; then
     392  echo "Variable obuild_platform_exe not defined."
     393  exit
     394fi
     395obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     396if [ ${obuild_platform_result} = yes ] ; then
     397obuild_cxx_includes="${obuild_cxx_includes} -I${bhep_home}"
    452398fi
    453399unset obuild_platform_result
     
    483429if [ ${obuild_verbose} = yes ] ; then set -x;fi
    484430cd "${obuild_snovis_path}/${obuild_dir_bin}"
    485  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_snova.o ../applications/prog_snova.cc
     431 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\"
    486432obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    487433cd "${obuild_snovis_path}/obuild"
     
    590536  obuild_cxx_linker_optimize_local=
    591537fi
    592 obuild_linked_paths="-L\"${obuild_snovis_path}/${obuild_dir_bin}\""
    593 obuild_linked_libraries=" -lsnova"
    594 obuild_linked_libraries="${obuild_linked_libraries} -L${SNGEOM2_ROOT}/Darwin-i386/lib -lsngeom"
    595 obuild_linked_libraries="${obuild_linked_libraries} -L${GEOMUTILS_ROOT}/Darwin-i386/lib -lgeomutils"
    596 obuild_linked_libraries="${obuild_linked_libraries} -L${BHEP_ROOT}/Darwin/lib -lbhep"
    597 obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_work}/lib/${Geant4_system} -lG4interfaces"
    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} 'UNIX'`
    603 if [ ${obuild_platform_result} = yes ] ; then
    604 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"
     538obuild_linked_libraries="-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils"
     539obuild_linked_libraries="${obuild_linked_libraries} -L${bhep_home}/Darwin -lbhep"
     540obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4interfaces"
     541if [ "${obuild_platform_exe}" = "" ] ; then
     542  echo "Variable obuild_platform_exe not defined."
     543  exit
     544fi
     545obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     546if [ ${obuild_platform_result} = yes ] ; then
     547obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
    605548fi
    606549unset obuild_platform_result
  • snovis/head/obuild/sh/build_app_snovis_session

    r6 r92  
    109109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    110110if [ ${obuild_platform_result} = yes ] ; then
    111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
     111bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    112112fi
    113113unset obuild_platform_result
     
    127127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128128if [ ${obuild_platform_result} = yes ] ; then
    129 GeomUtils_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/GeomUtils"
     129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130130fi
    131131unset obuild_platform_result
     
    136136obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    137137if [ ${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"
     138snova_platform="Darwin"
    157139fi
    158140unset obuild_platform_result
     
    172154obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    173155if [ ${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"
     156Geant4_home="/usr/local/geant4/8.2"
    220157fi
    221158unset obuild_platform_result
     
    575512obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    576513if [ ${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"
     514obuild_cxx_includes="-I${snova_home}"
     515fi
     516unset obuild_platform_result
     517if [ "${obuild_platform_exe}" = "" ] ; then
     518  echo "Variable obuild_platform_exe not defined."
     519  exit
     520fi
     521obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     522if [ ${obuild_platform_result} = yes ] ; then
     523obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/GeomUtils/include"
     524fi
     525unset obuild_platform_result
     526if [ "${obuild_platform_exe}" = "" ] ; then
     527  echo "Variable obuild_platform_exe not defined."
     528  exit
     529fi
     530obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     531if [ ${obuild_platform_result} = yes ] ; then
     532obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNgeom2/include"
     533fi
     534unset obuild_platform_result
     535if [ "${obuild_platform_exe}" = "" ] ; then
     536  echo "Variable obuild_platform_exe not defined."
     537  exit
     538fi
     539obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     540if [ ${obuild_platform_result} = yes ] ; then
     541obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNvertex/include"
     542fi
     543unset obuild_platform_result
     544if [ "${obuild_platform_exe}" = "" ] ; then
     545  echo "Variable obuild_platform_exe not defined."
     546  exit
     547fi
     548obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
     549if [ ${obuild_platform_result} = yes ] ; then
     550obuild_cxx_includes="${obuild_cxx_includes} -I${bhep_home}"
    605551fi
    606552unset obuild_platform_result
     
    640586if [ ${obuild_verbose} = yes ] ; then set -x;fi
    641587cd "${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
     588 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\"
    643589obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    644590cd "${obuild_snovis_path}/obuild"
     
    749695obuild_linked_paths="-L\"${obuild_OnX_path}/${obuild_dir_bin}\""
    750696obuild_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"
     697obuild_linked_libraries="${obuild_linked_libraries} -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils"
     698obuild_linked_libraries="${obuild_linked_libraries} -L${bhep_home}/Darwin -lbhep"
    756699obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\""
    757700obuild_linked_libraries="${obuild_linked_libraries}  -losc_HDF5"
     
    766709obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    767710if [ ${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"
     711obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global"
    769712fi
    770713unset obuild_platform_result
  • snovis/head/obuild/sh/build_dll_snovis

    r6 r92  
    109109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    110110if [ ${obuild_platform_result} = yes ] ; then
    111 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p1"
     111bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    112112fi
    113113unset obuild_platform_result
     
    127127obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128128if [ ${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"
     129snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
     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
     138snova_platform="Darwin"
    139139fi
    140140unset obuild_platform_result
     
    145145obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    146146if [ ${obuild_platform_result} = yes ] ; then
    147 SNgeom2_home="/Users/barrand/dev/exp/nemo/SNgeom/v0r1p0/build_area/SNgeom2"
     147CLHEP_home="/usr/local/CLHEP/2.0.3.1"
    148148fi
    149149unset obuild_platform_result
     
    154154obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    155155if [ ${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"
     156Geant4_home="/usr/local/geant4/8.2"
    220157fi
    221158unset obuild_platform_result
     
    599536if [ ${obuild_verbose} = yes ] ; then set -x;fi
    600537cd "${obuild_snovis_path}/${obuild_dir_bin}"
    601  eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Callbacks.o ../source/Callbacks.cxx
     538 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Callbacks.o \"../source/Callbacks.cxx\"
    602539obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    603540cd "${obuild_snovis_path}/obuild"
    604541
    605542cd "${obuild_snovis_path}/${obuild_dir_bin}"
    606  eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/InventorCallbacks.o ../source/InventorCallbacks.cxx
     543 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/InventorCallbacks.o \"../source/InventorCallbacks.cxx\"
    607544obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    608545cd "${obuild_snovis_path}/obuild"
    609546
    610547cd "${obuild_snovis_path}/${obuild_dir_bin}"
    611  eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Layouts.o ../source/Layouts.cxx
     548 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./dll_snovis/Layouts.o \"../source/Layouts.cxx\"
    612549obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi
    613550cd "${obuild_snovis_path}/obuild"
Note: See TracChangeset for help on using the changeset viewer.