Changeset 275


Ignore:
Timestamp:
Mar 1, 2007, 11:10:45 AM (15 years ago)
Author:
barrand
Message:
 
Location:
build/snova/trunk/obuild
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • build/snova/trunk/obuild/DOS/build.bat

    r199 r275  
    9090
    9191  IF "%OBUILD_DIR_BIN%" == "" (
    92     SET obuild_dir_bin=%obuild_platform%_obuild
     92    SET obuild_dir_bin=bin_obuild
    9393  ) ELSE (
    9494    SET obuild_dir_bin=%OBUILD_DIR_BIN%
  • build/snova/trunk/obuild/DOS/build_app_prog_snova.bat

    r241 r275  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    9595cd "%obuild_snova_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snova_0%"
     99SET obuild_pwd_snova_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     107cd "%obuild_snova_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snova_0%"
    99111SET obuild_pwd_snova_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    105 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     118cd "%obuild_snova_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snova_0%"
     122SET obuild_pwd_snova_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     129cd "%obuild_snova_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snova_0%"
    109133SET obuild_pwd_snova_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    115 cd "%obuild_snova_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_snova_0%"
    119 SET obuild_pwd_snova_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    125 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snova_0%"
    129 SET obuild_pwd_snova_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET zlib_home=/usr
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    135 cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snova_0%"
    139 SET obuild_pwd_snova_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    145 cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snova_0%"
    149 SET obuild_pwd_snova_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    155 cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snova_0%"
    159 SET obuild_pwd_snova_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    165 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snova_0%"
    169 SET obuild_pwd_snova_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    177 cd "%obuild_snova_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snova_0%"
    181 SET obuild_pwd_snova_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    187 cd "%obuild_snova_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snova_0%"
    191 SET obuild_pwd_snova_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    197 cd "%obuild_snova_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snova_0%"
    201 SET obuild_pwd_snova_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    207 cd "%obuild_snova_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snova_0%"
    211 SET obuild_pwd_snova_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    218 cd "%obuild_snova_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snova_0%"
    222 SET obuild_pwd_snova_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    228 cd "%obuild_snova_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snova_0%"
    232 SET obuild_pwd_snova_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    238 cd "%obuild_snova_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snova_0%"
    242 SET obuild_pwd_snova_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    248 cd "%obuild_snova_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snova_0%"
    252 SET obuild_pwd_snova_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    259 cd "%obuild_snova_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snova_0%"
    263 SET obuild_pwd_snova_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    269 cd "%obuild_snova_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snova_0%"
    273 SET obuild_pwd_snova_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_app_prog_snova_sh_22
    282 :else_if_db_build_app_prog_snova_sh_22
     141  GOTO end_if_db_build_app_prog_snova_sh_4
     142:else_if_db_build_app_prog_snova_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_app_prog_snova_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_23
     144:end_if_db_build_app_prog_snova_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_app_prog_snova_sh_23
    289 :else_if_opt_build_app_prog_snova_sh_23
     148  GOTO end_if_opt_build_app_prog_snova_sh_5
     149:else_if_opt_build_app_prog_snova_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_app_prog_snova_sh_23
     151:end_if_opt_build_app_prog_snova_sh_5
    292152
    293153
     
    317177SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
    318178SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    319 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    320 cd "%obuild_snova_path%\%obuild_dir_bin%"
    321 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    322 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    323 cd "%obuild_pwd_snova_0%"
    324 SET obuild_pwd_snova_0=
    325 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    326 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    327 :end_if_platform_29
    328 SET obuild_platform_result=
    329 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    330 cd "%obuild_snova_path%\%obuild_dir_bin%"
    331 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    332 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    333 cd "%obuild_pwd_snova_0%"
    334 SET obuild_pwd_snova_0=
    335 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    336 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    337 :end_if_platform_30
    338 SET obuild_platform_result=
    339 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    340 cd "%obuild_snova_path%\%obuild_dir_bin%"
    341 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    342 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    343 cd "%obuild_pwd_snova_0%"
    344 SET obuild_pwd_snova_0=
    345 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    346 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include
    347 :end_if_platform_31
    348 SET obuild_platform_result=
    349179
    350180IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\app_prog_snova"
     
    363193cd "%obuild_snova_path%\%obuild_dir_bin%"
    364194IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    365 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    366 cd "%obuild_pwd_snova_0%"
    367 SET obuild_pwd_snova_0=
    368 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
    369 SET obuild_cxx_linker_command=c++
    370 :end_if_platform_33
    371 SET obuild_platform_result=
    372 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    373 cd "%obuild_snova_path%\%obuild_dir_bin%"
    374 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    375 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    376 cd "%obuild_pwd_snova_0%"
    377 SET obuild_pwd_snova_0=
    378 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    379 SET obuild_cxx_linker_command=c++
    380 :end_if_platform_34
    381 SET obuild_platform_result=
    382 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    383 cd "%obuild_snova_path%\%obuild_dir_bin%"
    384 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    385 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    386 cd "%obuild_pwd_snova_0%"
    387 SET obuild_pwd_snova_0=
    388 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
    389 SET obuild_cxx_linker_command=cxx
    390 :end_if_platform_35
    391 SET obuild_platform_result=
    392 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    393 cd "%obuild_snova_path%\%obuild_dir_bin%"
    394 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    395 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    396 cd "%obuild_pwd_snova_0%"
    397 SET obuild_pwd_snova_0=
    398 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
     195FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     196cd "%obuild_pwd_snova_0%"
     197SET obuild_pwd_snova_0=
     198IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    399199SET obuild_cxx_linker_command=link.exe
    400 :end_if_platform_36
     200:end_if_platform_12
    401201SET obuild_platform_result=
    402202IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    405205cd "%obuild_snova_path%\%obuild_dir_bin%"
    406206IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    407 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    408 cd "%obuild_pwd_snova_0%"
    409 SET obuild_pwd_snova_0=
    410 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    411 SET obuild_cxx_linker_debug=-g
    412 :end_if_platform_37
    413 SET obuild_platform_result=
    414 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    415 cd "%obuild_snova_path%\%obuild_dir_bin%"
    416 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    417 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    418 cd "%obuild_pwd_snova_0%"
    419 SET obuild_pwd_snova_0=
    420 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    421 SET obuild_cxx_linker_debug=-g
    422 :end_if_platform_38
    423 SET obuild_platform_result=
    424 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    425 cd "%obuild_snova_path%\%obuild_dir_bin%"
    426 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    427 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    428 cd "%obuild_pwd_snova_0%"
    429 SET obuild_pwd_snova_0=
    430 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    431 SET obuild_cxx_linker_debug=-g
    432 :end_if_platform_39
    433 SET obuild_platform_result=
    434 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    435 cd "%obuild_snova_path%\%obuild_dir_bin%"
    436 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    437 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    438 cd "%obuild_pwd_snova_0%"
    439 SET obuild_pwd_snova_0=
    440 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
     207FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     208cd "%obuild_pwd_snova_0%"
     209SET obuild_pwd_snova_0=
     210IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    441211SET obuild_cxx_linker_debug=/DEBUG
    442 :end_if_platform_40
    443 SET obuild_platform_result=
    444 
    445 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    446 cd "%obuild_snova_path%\%obuild_dir_bin%"
    447 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    448 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    449 cd "%obuild_pwd_snova_0%"
    450 SET obuild_pwd_snova_0=
    451 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
     212:end_if_platform_13
     213SET obuild_platform_result=
     214
     215FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     216cd "%obuild_snova_path%\%obuild_dir_bin%"
     217IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     218FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     219cd "%obuild_pwd_snova_0%"
     220SET obuild_pwd_snova_0=
     221IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    452222SET obuild_cxx_linker_options=/nologo
    453 :end_if_platform_41
    454 SET obuild_platform_result=
    455 
    456 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_42
     223:end_if_platform_14
     224SET obuild_platform_result=
     225
     226IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_15
    457227  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    458   GOTO end_if_db_build_app_prog_snova_sh_42
    459 :else_if_db_build_app_prog_snova_sh_42
     228  GOTO end_if_db_build_app_prog_snova_sh_15
     229:else_if_db_build_app_prog_snova_sh_15
    460230  SET obuild_cxx_linker_debug_local=
    461 :end_if_db_build_app_prog_snova_sh_42
    462 
    463 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_43
     231:end_if_db_build_app_prog_snova_sh_15
     232
     233IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_16
    464234  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    465   GOTO end_if_opt_build_app_prog_snova_sh_43
    466 :else_if_opt_build_app_prog_snova_sh_43
     235  GOTO end_if_opt_build_app_prog_snova_sh_16
     236:else_if_opt_build_app_prog_snova_sh_16
    467237  SET obuild_cxx_linker_optimize_local=
    468 :end_if_opt_build_app_prog_snova_sh_43
     238:end_if_opt_build_app_prog_snova_sh_16
    469239
    470240SET obuild_linked_libraries="%obuild_snova_path%\%obuild_dir_bin%\snova_ui.lib"
     
    474244SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib"
    475245SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib"
    476 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    477 cd "%obuild_snova_path%\%obuild_dir_bin%"
    478 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    479 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    480 cd "%obuild_pwd_snova_0%"
    481 SET obuild_pwd_snova_0=
    482 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
    483 SET obuild_linked_libraries=%obuild_linked_libraries% -L${HDF5_home}/lib -lhdf5.0.0.0
    484 :end_if_platform_50
    485 SET obuild_platform_result=
    486 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    487 cd "%obuild_snova_path%\%obuild_dir_bin%"
    488 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    489 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    490 cd "%obuild_pwd_snova_0%"
    491 SET obuild_pwd_snova_0=
    492 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
    493 SET obuild_linked_libraries=%obuild_linked_libraries% -L${zlib_home}/lib -lz
    494 :end_if_platform_51
    495 SET obuild_platform_result=
    496246SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces
    497247SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4vis_management
    498248SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4modeling
    499249SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4Tree
    500 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    501 cd "%obuild_snova_path%\%obuild_dir_bin%"
    502 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    503 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    504 cd "%obuild_pwd_snova_0%"
    505 SET obuild_pwd_snova_0=
    506 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    507 SET 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
    508 :end_if_platform_56
    509 SET obuild_platform_result=
    510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    511 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    514 cd "%obuild_pwd_snova_0%"
    515 SET obuild_pwd_snova_0=
    516 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    517 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1
    518 :end_if_platform_57
    519 SET obuild_platform_result=
    520250
    521251FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
  • build/snova/trunk/obuild/DOS/build_lib_geomutils.bat

    r265 r275  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    9595cd "%obuild_snova_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snova_0%"
     99SET obuild_pwd_snova_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     107cd "%obuild_snova_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snova_0%"
    99111SET obuild_pwd_snova_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    105 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     118cd "%obuild_snova_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snova_0%"
     122SET obuild_pwd_snova_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     129cd "%obuild_snova_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snova_0%"
    109133SET obuild_pwd_snova_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    115 cd "%obuild_snova_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_snova_0%"
    119 SET obuild_pwd_snova_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    125 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snova_0%"
    129 SET obuild_pwd_snova_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET zlib_home=/usr
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    135 cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snova_0%"
    139 SET obuild_pwd_snova_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    145 cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snova_0%"
    149 SET obuild_pwd_snova_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    155 cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snova_0%"
    159 SET obuild_pwd_snova_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    165 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snova_0%"
    169 SET obuild_pwd_snova_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    177 cd "%obuild_snova_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snova_0%"
    181 SET obuild_pwd_snova_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    187 cd "%obuild_snova_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snova_0%"
    191 SET obuild_pwd_snova_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    197 cd "%obuild_snova_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snova_0%"
    201 SET obuild_pwd_snova_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    207 cd "%obuild_snova_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snova_0%"
    211 SET obuild_pwd_snova_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    218 cd "%obuild_snova_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snova_0%"
    222 SET obuild_pwd_snova_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    228 cd "%obuild_snova_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snova_0%"
    232 SET obuild_pwd_snova_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    238 cd "%obuild_snova_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snova_0%"
    242 SET obuild_pwd_snova_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    248 cd "%obuild_snova_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snova_0%"
    252 SET obuild_pwd_snova_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    259 cd "%obuild_snova_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snova_0%"
    263 SET obuild_pwd_snova_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    269 cd "%obuild_snova_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snova_0%"
    273 SET obuild_pwd_snova_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_geomutils_sh_22
    282 :else_if_db_build_lib_geomutils_sh_22
     141  GOTO end_if_db_build_lib_geomutils_sh_4
     142:else_if_db_build_lib_geomutils_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_geomutils_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_23
     144:end_if_db_build_lib_geomutils_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_geomutils_sh_23
    289 :else_if_opt_build_lib_geomutils_sh_23
     148  GOTO end_if_opt_build_lib_geomutils_sh_5
     149:else_if_opt_build_lib_geomutils_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_geomutils_sh_23
     151:end_if_opt_build_lib_geomutils_sh_5
    292152
    293153
    294154
    295155SET obuild_cxx_includes=/I"%obuild_snova_path%\source\GeomUtils\include"
    296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    297 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    300 cd "%obuild_pwd_snova_0%"
    301 SET obuild_pwd_snova_0=
    302 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    303 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    304 :end_if_platform_25
    305 SET obuild_platform_result=
    306156
    307157IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils"
     
    309159
    310160REM # pre_build scripts :
    311 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    312 cd "%obuild_snova_path%\%obuild_dir_bin%"
    313 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    314 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    315 cd "%obuild_pwd_snova_0%"
    316 SET obuild_pwd_snova_0=
    317 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    318 chmod a+x ./pre_build;./pre_build
    319 :end_if_platform_26
    320 SET obuild_platform_result=
    321161
    322162@IF %obuild_verbose% == yes @ECHO ON
     
    404244cd "%obuild_snova_path%\%obuild_dir_bin%"
    405245IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    406 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    407 cd "%obuild_pwd_snova_0%"
    408 SET obuild_pwd_snova_0=
    409 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    410 SET obuild_cxx_linker_command=c++
    411 :end_if_platform_40
    412 SET obuild_platform_result=
    413 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    414 cd "%obuild_snova_path%\%obuild_dir_bin%"
    415 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    416 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    417 cd "%obuild_pwd_snova_0%"
    418 SET obuild_pwd_snova_0=
    419 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    420 SET obuild_cxx_linker_command=c++
    421 :end_if_platform_41
    422 SET obuild_platform_result=
    423 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    424 cd "%obuild_snova_path%\%obuild_dir_bin%"
    425 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    427 cd "%obuild_pwd_snova_0%"
    428 SET obuild_pwd_snova_0=
    429 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    430 SET obuild_cxx_linker_command=cxx
    431 :end_if_platform_42
    432 SET obuild_platform_result=
    433 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    434 cd "%obuild_snova_path%\%obuild_dir_bin%"
    435 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    436 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    437 cd "%obuild_pwd_snova_0%"
    438 SET obuild_pwd_snova_0=
    439 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
     246FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     247cd "%obuild_pwd_snova_0%"
     248SET obuild_pwd_snova_0=
     249IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    440250SET obuild_cxx_linker_command=link.exe
    441 :end_if_platform_43
     251:end_if_platform_20
    442252SET obuild_platform_result=
    443253IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    446256cd "%obuild_snova_path%\%obuild_dir_bin%"
    447257IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    448 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    449 cd "%obuild_pwd_snova_0%"
    450 SET obuild_pwd_snova_0=
    451 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    452 SET obuild_cxx_linker_debug=-g
    453 :end_if_platform_44
    454 SET obuild_platform_result=
    455 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    456 cd "%obuild_snova_path%\%obuild_dir_bin%"
    457 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    458 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    459 cd "%obuild_pwd_snova_0%"
    460 SET obuild_pwd_snova_0=
    461 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    462 SET obuild_cxx_linker_debug=-g
    463 :end_if_platform_45
    464 SET obuild_platform_result=
    465 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    466 cd "%obuild_snova_path%\%obuild_dir_bin%"
    467 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    468 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    469 cd "%obuild_pwd_snova_0%"
    470 SET obuild_pwd_snova_0=
    471 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    472 SET obuild_cxx_linker_debug=-g
    473 :end_if_platform_46
    474 SET obuild_platform_result=
    475 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    476 cd "%obuild_snova_path%\%obuild_dir_bin%"
    477 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    478 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    479 cd "%obuild_pwd_snova_0%"
    480 SET obuild_pwd_snova_0=
    481 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
     258FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     259cd "%obuild_pwd_snova_0%"
     260SET obuild_pwd_snova_0=
     261IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    482262SET obuild_cxx_linker_debug=/DEBUG
    483 :end_if_platform_47
    484 SET obuild_platform_result=
    485 
    486 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    487 cd "%obuild_snova_path%\%obuild_dir_bin%"
    488 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    489 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    490 cd "%obuild_pwd_snova_0%"
    491 SET obuild_pwd_snova_0=
    492 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
     263:end_if_platform_21
     264SET obuild_platform_result=
     265
     266FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     267cd "%obuild_snova_path%\%obuild_dir_bin%"
     268IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     269FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     270cd "%obuild_pwd_snova_0%"
     271SET obuild_pwd_snova_0=
     272IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    493273SET obuild_cxx_linker_options=/nologo
    494 :end_if_platform_48
    495 SET obuild_platform_result=
    496 
    497 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_49
     274:end_if_platform_22
     275SET obuild_platform_result=
     276
     277IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_23
    498278  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    499   GOTO end_if_db_build_lib_geomutils_sh_49
    500 :else_if_db_build_lib_geomutils_sh_49
     279  GOTO end_if_db_build_lib_geomutils_sh_23
     280:else_if_db_build_lib_geomutils_sh_23
    501281  SET obuild_cxx_linker_debug_local=
    502 :end_if_db_build_lib_geomutils_sh_49
    503 
    504 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_50
     282:end_if_db_build_lib_geomutils_sh_23
     283
     284IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_24
    505285  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    506   GOTO end_if_opt_build_lib_geomutils_sh_50
    507 :else_if_opt_build_lib_geomutils_sh_50
     286  GOTO end_if_opt_build_lib_geomutils_sh_24
     287:else_if_opt_build_lib_geomutils_sh_24
    508288  SET obuild_cxx_linker_optimize_local=
    509 :end_if_opt_build_lib_geomutils_sh_50
     289:end_if_opt_build_lib_geomutils_sh_24
    510290
    511291FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
  • build/snova/trunk/obuild/DOS/build_lib_sngeom.bat

    r241 r275  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    9595cd "%obuild_snova_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snova_0%"
     99SET obuild_pwd_snova_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     107cd "%obuild_snova_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snova_0%"
    99111SET obuild_pwd_snova_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    105 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     118cd "%obuild_snova_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snova_0%"
     122SET obuild_pwd_snova_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     129cd "%obuild_snova_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snova_0%"
    109133SET obuild_pwd_snova_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    115 cd "%obuild_snova_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_snova_0%"
    119 SET obuild_pwd_snova_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    125 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snova_0%"
    129 SET obuild_pwd_snova_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET zlib_home=/usr
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    135 cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snova_0%"
    139 SET obuild_pwd_snova_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    145 cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snova_0%"
    149 SET obuild_pwd_snova_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    155 cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snova_0%"
    159 SET obuild_pwd_snova_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    165 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snova_0%"
    169 SET obuild_pwd_snova_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    177 cd "%obuild_snova_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snova_0%"
    181 SET obuild_pwd_snova_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    187 cd "%obuild_snova_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snova_0%"
    191 SET obuild_pwd_snova_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    197 cd "%obuild_snova_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snova_0%"
    201 SET obuild_pwd_snova_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    207 cd "%obuild_snova_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snova_0%"
    211 SET obuild_pwd_snova_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    218 cd "%obuild_snova_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snova_0%"
    222 SET obuild_pwd_snova_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    228 cd "%obuild_snova_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snova_0%"
    232 SET obuild_pwd_snova_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    238 cd "%obuild_snova_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snova_0%"
    242 SET obuild_pwd_snova_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    248 cd "%obuild_snova_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snova_0%"
    252 SET obuild_pwd_snova_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    259 cd "%obuild_snova_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snova_0%"
    263 SET obuild_pwd_snova_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    269 cd "%obuild_snova_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snova_0%"
    273 SET obuild_pwd_snova_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_sngeom_sh_22
    282 :else_if_db_build_lib_sngeom_sh_22
     141  GOTO end_if_db_build_lib_sngeom_sh_4
     142:else_if_db_build_lib_sngeom_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_sngeom_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_23
     144:end_if_db_build_lib_sngeom_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_sngeom_sh_23
    289 :else_if_opt_build_lib_sngeom_sh_23
     148  GOTO end_if_opt_build_lib_sngeom_sh_5
     149:else_if_opt_build_lib_sngeom_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_sngeom_sh_23
     151:end_if_opt_build_lib_sngeom_sh_5
    292152
    293153
     
    307167SET obuild_cxx_includes=/I"%obuild_snova_path%\source\SNgeom2\include"
    308168SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
    309 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    310 cd "%obuild_snova_path%\%obuild_dir_bin%"
    311 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    312 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    313 cd "%obuild_pwd_snova_0%"
    314 SET obuild_pwd_snova_0=
    315 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    316 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    317 :end_if_platform_26
    318 SET obuild_platform_result=
    319169SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    320170
     
    382232cd "%obuild_snova_path%\%obuild_dir_bin%"
    383233IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    384 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    385 cd "%obuild_pwd_snova_0%"
    386 SET obuild_pwd_snova_0=
    387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    388 SET obuild_cxx_linker_command=c++
    389 :end_if_platform_37
    390 SET obuild_platform_result=
    391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    392 cd "%obuild_snova_path%\%obuild_dir_bin%"
    393 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    394 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    395 cd "%obuild_pwd_snova_0%"
    396 SET obuild_pwd_snova_0=
    397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    398 SET obuild_cxx_linker_command=c++
    399 :end_if_platform_38
    400 SET obuild_platform_result=
    401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    402 cd "%obuild_snova_path%\%obuild_dir_bin%"
    403 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    404 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    405 cd "%obuild_pwd_snova_0%"
    406 SET obuild_pwd_snova_0=
    407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    408 SET obuild_cxx_linker_command=cxx
    409 :end_if_platform_39
    410 SET obuild_platform_result=
    411 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    412 cd "%obuild_snova_path%\%obuild_dir_bin%"
    413 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    414 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    415 cd "%obuild_pwd_snova_0%"
    416 SET obuild_pwd_snova_0=
    417 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
     234FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     235cd "%obuild_pwd_snova_0%"
     236SET obuild_pwd_snova_0=
     237IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    418238SET obuild_cxx_linker_command=link.exe
    419 :end_if_platform_40
     239:end_if_platform_18
    420240SET obuild_platform_result=
    421241IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    424244cd "%obuild_snova_path%\%obuild_dir_bin%"
    425245IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    427 cd "%obuild_pwd_snova_0%"
    428 SET obuild_pwd_snova_0=
    429 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    430 SET obuild_cxx_linker_debug=-g
    431 :end_if_platform_41
    432 SET obuild_platform_result=
    433 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    434 cd "%obuild_snova_path%\%obuild_dir_bin%"
    435 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    436 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    437 cd "%obuild_pwd_snova_0%"
    438 SET obuild_pwd_snova_0=
    439 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    440 SET obuild_cxx_linker_debug=-g
    441 :end_if_platform_42
    442 SET obuild_platform_result=
    443 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    444 cd "%obuild_snova_path%\%obuild_dir_bin%"
    445 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    446 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    447 cd "%obuild_pwd_snova_0%"
    448 SET obuild_pwd_snova_0=
    449 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    450 SET obuild_cxx_linker_debug=-g
    451 :end_if_platform_43
    452 SET obuild_platform_result=
    453 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    454 cd "%obuild_snova_path%\%obuild_dir_bin%"
    455 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    456 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    457 cd "%obuild_pwd_snova_0%"
    458 SET obuild_pwd_snova_0=
    459 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
     246FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     247cd "%obuild_pwd_snova_0%"
     248SET obuild_pwd_snova_0=
     249IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    460250SET obuild_cxx_linker_debug=/DEBUG
    461 :end_if_platform_44
    462 SET obuild_platform_result=
    463 
    464 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    465 cd "%obuild_snova_path%\%obuild_dir_bin%"
    466 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    467 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    468 cd "%obuild_pwd_snova_0%"
    469 SET obuild_pwd_snova_0=
    470 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
     251:end_if_platform_19
     252SET obuild_platform_result=
     253
     254FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     255cd "%obuild_snova_path%\%obuild_dir_bin%"
     256IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     257FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     258cd "%obuild_pwd_snova_0%"
     259SET obuild_pwd_snova_0=
     260IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    471261SET obuild_cxx_linker_options=/nologo
    472 :end_if_platform_45
    473 SET obuild_platform_result=
    474 
    475 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_46
     262:end_if_platform_20
     263SET obuild_platform_result=
     264
     265IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_21
    476266  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    477   GOTO end_if_db_build_lib_sngeom_sh_46
    478 :else_if_db_build_lib_sngeom_sh_46
     267  GOTO end_if_db_build_lib_sngeom_sh_21
     268:else_if_db_build_lib_sngeom_sh_21
    479269  SET obuild_cxx_linker_debug_local=
    480 :end_if_db_build_lib_sngeom_sh_46
    481 
    482 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_47
     270:end_if_db_build_lib_sngeom_sh_21
     271
     272IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_22
    483273  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    484   GOTO end_if_opt_build_lib_sngeom_sh_47
    485 :else_if_opt_build_lib_sngeom_sh_47
     274  GOTO end_if_opt_build_lib_sngeom_sh_22
     275:else_if_opt_build_lib_sngeom_sh_22
    486276  SET obuild_cxx_linker_optimize_local=
    487 :end_if_opt_build_lib_sngeom_sh_47
     277:end_if_opt_build_lib_sngeom_sh_22
    488278
    489279FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
  • build/snova/trunk/obuild/DOS/build_lib_snova.bat

    r241 r275  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    9595cd "%obuild_snova_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snova_0%"
     99SET obuild_pwd_snova_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     107cd "%obuild_snova_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snova_0%"
    99111SET obuild_pwd_snova_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    105 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     118cd "%obuild_snova_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snova_0%"
     122SET obuild_pwd_snova_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     129cd "%obuild_snova_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snova_0%"
    109133SET obuild_pwd_snova_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    115 cd "%obuild_snova_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_snova_0%"
    119 SET obuild_pwd_snova_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    125 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snova_0%"
    129 SET obuild_pwd_snova_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET zlib_home=/usr
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    135 cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snova_0%"
    139 SET obuild_pwd_snova_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    145 cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snova_0%"
    149 SET obuild_pwd_snova_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    155 cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snova_0%"
    159 SET obuild_pwd_snova_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    165 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snova_0%"
    169 SET obuild_pwd_snova_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    177 cd "%obuild_snova_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snova_0%"
    181 SET obuild_pwd_snova_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    187 cd "%obuild_snova_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snova_0%"
    191 SET obuild_pwd_snova_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    197 cd "%obuild_snova_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snova_0%"
    201 SET obuild_pwd_snova_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    207 cd "%obuild_snova_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snova_0%"
    211 SET obuild_pwd_snova_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    218 cd "%obuild_snova_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snova_0%"
    222 SET obuild_pwd_snova_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    228 cd "%obuild_snova_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snova_0%"
    232 SET obuild_pwd_snova_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    238 cd "%obuild_snova_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snova_0%"
    242 SET obuild_pwd_snova_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    248 cd "%obuild_snova_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snova_0%"
    252 SET obuild_pwd_snova_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    259 cd "%obuild_snova_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snova_0%"
    263 SET obuild_pwd_snova_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    269 cd "%obuild_snova_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snova_0%"
    273 SET obuild_pwd_snova_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_snova_sh_22
    282 :else_if_db_build_lib_snova_sh_22
     141  GOTO end_if_db_build_lib_snova_sh_4
     142:else_if_db_build_lib_snova_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_snova_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_23
     144:end_if_db_build_lib_snova_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_snova_sh_23
    289 :else_if_opt_build_lib_snova_sh_23
     148  GOTO end_if_opt_build_lib_snova_sh_5
     149:else_if_opt_build_lib_snova_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_snova_sh_23
     151:end_if_opt_build_lib_snova_sh_5
    292152
    293153
     
    310170SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
    311171SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    312 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    313 cd "%obuild_snova_path%\%obuild_dir_bin%"
    314 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    315 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    316 cd "%obuild_pwd_snova_0%"
    317 SET obuild_pwd_snova_0=
    318 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    319 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    320 :end_if_platform_29
    321 SET obuild_platform_result=
    322 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    323 cd "%obuild_snova_path%\%obuild_dir_bin%"
    324 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    325 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    326 cd "%obuild_pwd_snova_0%"
    327 SET obuild_pwd_snova_0=
    328 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    329 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    330 :end_if_platform_30
    331 SET obuild_platform_result=
    332 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    333 cd "%obuild_snova_path%\%obuild_dir_bin%"
    334 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    335 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    336 cd "%obuild_pwd_snova_0%"
    337 SET obuild_pwd_snova_0=
    338 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    339 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include
    340 :end_if_platform_31
    341 SET obuild_platform_result=
    342172
    343173IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
     
    440270cd "%obuild_snova_path%\%obuild_dir_bin%"
    441271IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    442 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    443 cd "%obuild_pwd_snova_0%"
    444 SET obuild_pwd_snova_0=
    445 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    446 SET obuild_cxx_linker_command=c++
    447 :end_if_platform_47
    448 SET obuild_platform_result=
    449 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    450 cd "%obuild_snova_path%\%obuild_dir_bin%"
    451 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    452 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    453 cd "%obuild_pwd_snova_0%"
    454 SET obuild_pwd_snova_0=
    455 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
    456 SET obuild_cxx_linker_command=c++
    457 :end_if_platform_48
    458 SET obuild_platform_result=
    459 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    460 cd "%obuild_snova_path%\%obuild_dir_bin%"
    461 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    462 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    463 cd "%obuild_pwd_snova_0%"
    464 SET obuild_pwd_snova_0=
    465 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    466 SET obuild_cxx_linker_command=cxx
    467 :end_if_platform_49
    468 SET obuild_platform_result=
    469 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    470 cd "%obuild_snova_path%\%obuild_dir_bin%"
    471 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    472 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    473 cd "%obuild_pwd_snova_0%"
    474 SET obuild_pwd_snova_0=
    475 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
     272FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     273cd "%obuild_pwd_snova_0%"
     274SET obuild_pwd_snova_0=
     275IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    476276SET obuild_cxx_linker_command=link.exe
    477 :end_if_platform_50
     277:end_if_platform_26
    478278SET obuild_platform_result=
    479279IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    482282cd "%obuild_snova_path%\%obuild_dir_bin%"
    483283IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    484 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    485 cd "%obuild_pwd_snova_0%"
    486 SET obuild_pwd_snova_0=
    487 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
    488 SET obuild_cxx_linker_debug=-g
    489 :end_if_platform_51
    490 SET obuild_platform_result=
    491 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    492 cd "%obuild_snova_path%\%obuild_dir_bin%"
    493 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    494 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    495 cd "%obuild_pwd_snova_0%"
    496 SET obuild_pwd_snova_0=
    497 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
    498 SET obuild_cxx_linker_debug=-g
    499 :end_if_platform_52
    500 SET obuild_platform_result=
    501 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    502 cd "%obuild_snova_path%\%obuild_dir_bin%"
    503 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    504 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    505 cd "%obuild_pwd_snova_0%"
    506 SET obuild_pwd_snova_0=
    507 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
    508 SET obuild_cxx_linker_debug=-g
    509 :end_if_platform_53
    510 SET obuild_platform_result=
    511 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    512 cd "%obuild_snova_path%\%obuild_dir_bin%"
    513 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    514 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    515 cd "%obuild_pwd_snova_0%"
    516 SET obuild_pwd_snova_0=
    517 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
     284FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     285cd "%obuild_pwd_snova_0%"
     286SET obuild_pwd_snova_0=
     287IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    518288SET obuild_cxx_linker_debug=/DEBUG
    519 :end_if_platform_54
    520 SET obuild_platform_result=
    521 
    522 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    523 cd "%obuild_snova_path%\%obuild_dir_bin%"
    524 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    525 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    526 cd "%obuild_pwd_snova_0%"
    527 SET obuild_pwd_snova_0=
    528 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
     289:end_if_platform_27
     290SET obuild_platform_result=
     291
     292FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     293cd "%obuild_snova_path%\%obuild_dir_bin%"
     294IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     295FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     296cd "%obuild_pwd_snova_0%"
     297SET obuild_pwd_snova_0=
     298IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    529299SET obuild_cxx_linker_options=/nologo
    530 :end_if_platform_55
    531 SET obuild_platform_result=
    532 
    533 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_56
     300:end_if_platform_28
     301SET obuild_platform_result=
     302
     303IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_29
    534304  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    535   GOTO end_if_db_build_lib_snova_sh_56
    536 :else_if_db_build_lib_snova_sh_56
     305  GOTO end_if_db_build_lib_snova_sh_29
     306:else_if_db_build_lib_snova_sh_29
    537307  SET obuild_cxx_linker_debug_local=
    538 :end_if_db_build_lib_snova_sh_56
    539 
    540 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_57
     308:end_if_db_build_lib_snova_sh_29
     309
     310IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_30
    541311  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    542   GOTO end_if_opt_build_lib_snova_sh_57
    543 :else_if_opt_build_lib_snova_sh_57
     312  GOTO end_if_opt_build_lib_snova_sh_30
     313:else_if_opt_build_lib_snova_sh_30
    544314  SET obuild_cxx_linker_optimize_local=
    545 :end_if_opt_build_lib_snova_sh_57
     315:end_if_opt_build_lib_snova_sh_30
    546316
    547317FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
  • build/snova/trunk/obuild/DOS/build_lib_snova_ui.bat

    r241 r275  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    9595cd "%obuild_snova_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snova_0%"
     99SET obuild_pwd_snova_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     107cd "%obuild_snova_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snova_0%"
    99111SET obuild_pwd_snova_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    105 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     118cd "%obuild_snova_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snova_0%"
     122SET obuild_pwd_snova_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     129cd "%obuild_snova_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snova_0%"
    109133SET obuild_pwd_snova_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    115 cd "%obuild_snova_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_snova_0%"
    119 SET obuild_pwd_snova_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    125 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snova_0%"
    129 SET obuild_pwd_snova_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET zlib_home=/usr
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    135 cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snova_0%"
    139 SET obuild_pwd_snova_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    145 cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snova_0%"
    149 SET obuild_pwd_snova_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    155 cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snova_0%"
    159 SET obuild_pwd_snova_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    165 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snova_0%"
    169 SET obuild_pwd_snova_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    177 cd "%obuild_snova_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snova_0%"
    181 SET obuild_pwd_snova_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    187 cd "%obuild_snova_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snova_0%"
    191 SET obuild_pwd_snova_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    197 cd "%obuild_snova_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snova_0%"
    201 SET obuild_pwd_snova_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    207 cd "%obuild_snova_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snova_0%"
    211 SET obuild_pwd_snova_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    218 cd "%obuild_snova_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snova_0%"
    222 SET obuild_pwd_snova_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    228 cd "%obuild_snova_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snova_0%"
    232 SET obuild_pwd_snova_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    238 cd "%obuild_snova_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snova_0%"
    242 SET obuild_pwd_snova_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    248 cd "%obuild_snova_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snova_0%"
    252 SET obuild_pwd_snova_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    259 cd "%obuild_snova_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snova_0%"
    263 SET obuild_pwd_snova_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    269 cd "%obuild_snova_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snova_0%"
    273 SET obuild_pwd_snova_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_snova_ui_sh_22
    282 :else_if_db_build_lib_snova_ui_sh_22
     141  GOTO end_if_db_build_lib_snova_ui_sh_4
     142:else_if_db_build_lib_snova_ui_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_snova_ui_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_23
     144:end_if_db_build_lib_snova_ui_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_snova_ui_sh_23
    289 :else_if_opt_build_lib_snova_ui_sh_23
     148  GOTO end_if_opt_build_lib_snova_ui_sh_5
     149:else_if_opt_build_lib_snova_ui_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_snova_ui_sh_23
     151:end_if_opt_build_lib_snova_ui_sh_5
    292152
    293153
     
    310170SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
    311171SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    312 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    313 cd "%obuild_snova_path%\%obuild_dir_bin%"
    314 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    315 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    316 cd "%obuild_pwd_snova_0%"
    317 SET obuild_pwd_snova_0=
    318 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    319 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    320 :end_if_platform_29
    321 SET obuild_platform_result=
    322 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    323 cd "%obuild_snova_path%\%obuild_dir_bin%"
    324 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    325 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    326 cd "%obuild_pwd_snova_0%"
    327 SET obuild_pwd_snova_0=
    328 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    329 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    330 :end_if_platform_30
    331 SET obuild_platform_result=
    332 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    333 cd "%obuild_snova_path%\%obuild_dir_bin%"
    334 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    335 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    336 cd "%obuild_pwd_snova_0%"
    337 SET obuild_pwd_snova_0=
    338 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    339 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include
    340 :end_if_platform_31
    341 SET obuild_platform_result=
    342172
    343173IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova_ui" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova_ui"
     
    362192cd "%obuild_snova_path%\%obuild_dir_bin%"
    363193IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    364 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    365 cd "%obuild_pwd_snova_0%"
    366 SET obuild_pwd_snova_0=
    367 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    368 SET obuild_cxx_linker_command=c++
    369 :end_if_platform_34
    370 SET obuild_platform_result=
    371 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    372 cd "%obuild_snova_path%\%obuild_dir_bin%"
    373 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    374 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    375 cd "%obuild_pwd_snova_0%"
    376 SET obuild_pwd_snova_0=
    377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
    378 SET obuild_cxx_linker_command=c++
    379 :end_if_platform_35
    380 SET obuild_platform_result=
    381 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    382 cd "%obuild_snova_path%\%obuild_dir_bin%"
    383 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    384 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    385 cd "%obuild_pwd_snova_0%"
    386 SET obuild_pwd_snova_0=
    387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
    388 SET obuild_cxx_linker_command=cxx
    389 :end_if_platform_36
    390 SET obuild_platform_result=
    391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    392 cd "%obuild_snova_path%\%obuild_dir_bin%"
    393 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    394 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    395 cd "%obuild_pwd_snova_0%"
    396 SET obuild_pwd_snova_0=
    397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
     194FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     195cd "%obuild_pwd_snova_0%"
     196SET obuild_pwd_snova_0=
     197IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    398198SET obuild_cxx_linker_command=link.exe
    399 :end_if_platform_37
     199:end_if_platform_13
    400200SET obuild_platform_result=
    401201IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    404204cd "%obuild_snova_path%\%obuild_dir_bin%"
    405205IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    406 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    407 cd "%obuild_pwd_snova_0%"
    408 SET obuild_pwd_snova_0=
    409 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    410 SET obuild_cxx_linker_debug=-g
    411 :end_if_platform_38
    412 SET obuild_platform_result=
    413 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    414 cd "%obuild_snova_path%\%obuild_dir_bin%"
    415 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    416 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    417 cd "%obuild_pwd_snova_0%"
    418 SET obuild_pwd_snova_0=
    419 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    420 SET obuild_cxx_linker_debug=-g
    421 :end_if_platform_39
    422 SET obuild_platform_result=
    423 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    424 cd "%obuild_snova_path%\%obuild_dir_bin%"
    425 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    426 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    427 cd "%obuild_pwd_snova_0%"
    428 SET obuild_pwd_snova_0=
    429 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    430 SET obuild_cxx_linker_debug=-g
    431 :end_if_platform_40
    432 SET obuild_platform_result=
    433 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    434 cd "%obuild_snova_path%\%obuild_dir_bin%"
    435 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    436 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    437 cd "%obuild_pwd_snova_0%"
    438 SET obuild_pwd_snova_0=
    439 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
     206FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     207cd "%obuild_pwd_snova_0%"
     208SET obuild_pwd_snova_0=
     209IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    440210SET obuild_cxx_linker_debug=/DEBUG
    441 :end_if_platform_41
    442 SET obuild_platform_result=
    443 
    444 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    445 cd "%obuild_snova_path%\%obuild_dir_bin%"
    446 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    447 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    448 cd "%obuild_pwd_snova_0%"
    449 SET obuild_pwd_snova_0=
    450 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
     211:end_if_platform_14
     212SET obuild_platform_result=
     213
     214FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     215cd "%obuild_snova_path%\%obuild_dir_bin%"
     216IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     217FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     218cd "%obuild_pwd_snova_0%"
     219SET obuild_pwd_snova_0=
     220IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    451221SET obuild_cxx_linker_options=/nologo
    452 :end_if_platform_42
    453 SET obuild_platform_result=
    454 
    455 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_43
     222:end_if_platform_15
     223SET obuild_platform_result=
     224
     225IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_16
    456226  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    457   GOTO end_if_db_build_lib_snova_ui_sh_43
    458 :else_if_db_build_lib_snova_ui_sh_43
     227  GOTO end_if_db_build_lib_snova_ui_sh_16
     228:else_if_db_build_lib_snova_ui_sh_16
    459229  SET obuild_cxx_linker_debug_local=
    460 :end_if_db_build_lib_snova_ui_sh_43
    461 
    462 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_44
     230:end_if_db_build_lib_snova_ui_sh_16
     231
     232IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_17
    463233  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    464   GOTO end_if_opt_build_lib_snova_ui_sh_44
    465 :else_if_opt_build_lib_snova_ui_sh_44
     234  GOTO end_if_opt_build_lib_snova_ui_sh_17
     235:else_if_opt_build_lib_snova_ui_sh_17
    466236  SET obuild_cxx_linker_optimize_local=
    467 :end_if_opt_build_lib_snova_ui_sh_44
     237:end_if_opt_build_lib_snova_ui_sh_17
    468238
    469239FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
  • build/snova/trunk/obuild/DOS/build_lib_snvertex.bat

    r241 r275  
    7474
    7575IF "%OBUILD_DIR_BIN%" == "" (
    76   SET obuild_dir_bin=%obuild_platform%_obuild
     76  SET obuild_dir_bin=bin_obuild
    7777) ELSE (
    7878  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    9595cd "%obuild_snova_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     98cd "%obuild_pwd_snova_0%"
     99SET obuild_pwd_snova_0=
     100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0
     101SET obuild_cxx_command=cl.exe
     102:end_if_platform_0
     103SET obuild_platform_result=
     104IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     105
     106FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     107cd "%obuild_snova_path%\%obuild_dir_bin%"
     108IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     109FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    98110cd "%obuild_pwd_snova_0%"
    99111SET obuild_pwd_snova_0=
    100112IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     113SET obuild_cxx_optimize=/O2
    102114:end_if_platform_1
    103115SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    105 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
     116
     117FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     118cd "%obuild_snova_path%\%obuild_dir_bin%"
     119IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     120FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     121cd "%obuild_pwd_snova_0%"
     122SET obuild_pwd_snova_0=
     123IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
     124SET obuild_cxx_debug=/ZI /Od
     125:end_if_platform_2
     126SET obuild_platform_result=
     127
     128FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     129cd "%obuild_snova_path%\%obuild_dir_bin%"
     130IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     131FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    108132cd "%obuild_pwd_snova_0%"
    109133SET obuild_pwd_snova_0=
    110134IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET Geant4_home=/usr/local/geant4/8.2
     135SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    112136:end_if_platform_3
    113137SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    115 cd "%obuild_snova_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_snova_0%"
    119 SET obuild_pwd_snova_0=
    120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET HDF5_home=/usr/local/HDF5/1.6.5
    122 :end_if_platform_5
    123 SET obuild_platform_result=
    124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    125 cd "%obuild_snova_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% UNIX`) DO SET obuild_platform_result=%%j
    128 cd "%obuild_pwd_snova_0%"
    129 SET obuild_pwd_snova_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET zlib_home=/usr
    132 :end_if_platform_7
    133 SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    135 cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
    138 cd "%obuild_pwd_snova_0%"
    139 SET obuild_pwd_snova_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
    141 SET obuild_cxx_command=c++
    142 :end_if_platform_8
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    145 cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
    148 cd "%obuild_pwd_snova_0%"
    149 SET obuild_pwd_snova_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_9
    153 SET obuild_platform_result=
    154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    155 cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
    158 cd "%obuild_pwd_snova_0%"
    159 SET obuild_pwd_snova_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    161 SET obuild_cxx_command=cxx
    162 :end_if_platform_10
    163 SET obuild_platform_result=
    164 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    165 cd "%obuild_snova_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% Windows_NT`) DO SET obuild_platform_result=%%j
    168 cd "%obuild_pwd_snova_0%"
    169 SET obuild_pwd_snova_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    171 SET obuild_cxx_command=cl.exe
    172 :end_if_platform_11
    173 SET obuild_platform_result=
    174 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    175 
    176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    177 cd "%obuild_snova_path%\%obuild_dir_bin%"
    178 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    179 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    180 cd "%obuild_pwd_snova_0%"
    181 SET obuild_pwd_snova_0=
    182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    183 SET obuild_cxx_optimize=-O
    184 :end_if_platform_12
    185 SET obuild_platform_result=
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    187 cd "%obuild_snova_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snova_0%"
    191 SET obuild_pwd_snova_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_13
    195 SET obuild_platform_result=
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    197 cd "%obuild_snova_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    200 cd "%obuild_pwd_snova_0%"
    201 SET obuild_pwd_snova_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_14
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    207 cd "%obuild_snova_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snova_0%"
    211 SET obuild_pwd_snova_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    213 SET obuild_cxx_optimize=/O2
    214 :end_if_platform_15
    215 SET obuild_platform_result=
    216 
    217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    218 cd "%obuild_snova_path%\%obuild_dir_bin%"
    219 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    220 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    221 cd "%obuild_pwd_snova_0%"
    222 SET obuild_pwd_snova_0=
    223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    224 SET obuild_cxx_debug=-g
    225 :end_if_platform_16
    226 SET obuild_platform_result=
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    228 cd "%obuild_snova_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snova_0%"
    232 SET obuild_pwd_snova_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_17
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    238 cd "%obuild_snova_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snova_0%"
    242 SET obuild_pwd_snova_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_18
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    248 cd "%obuild_snova_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snova_0%"
    252 SET obuild_pwd_snova_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    254 SET obuild_cxx_debug=/ZI /Od
    255 :end_if_platform_19
    256 SET obuild_platform_result=
    257 
    258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    259 cd "%obuild_snova_path%\%obuild_dir_bin%"
    260 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    261 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    262 cd "%obuild_pwd_snova_0%"
    263 SET obuild_pwd_snova_0=
    264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    265 SET obuild_cxx_options=-fPIC
    266 :end_if_platform_20
    267 SET obuild_platform_result=
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    269 cd "%obuild_snova_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snova_0%"
    273 SET obuild_pwd_snova_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    275 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    276 :end_if_platform_21
    277 SET obuild_platform_result=
    278 
    279 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_22
     138
     139IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_4
    280140  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    281   GOTO end_if_db_build_lib_snvertex_sh_22
    282 :else_if_db_build_lib_snvertex_sh_22
     141  GOTO end_if_db_build_lib_snvertex_sh_4
     142:else_if_db_build_lib_snvertex_sh_4
    283143  SET obuild_cxx_debug_local=
    284 :end_if_db_build_lib_snvertex_sh_22
    285 
    286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_23
     144:end_if_db_build_lib_snvertex_sh_4
     145
     146IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_5
    287147  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    288   GOTO end_if_opt_build_lib_snvertex_sh_23
    289 :else_if_opt_build_lib_snvertex_sh_23
     148  GOTO end_if_opt_build_lib_snvertex_sh_5
     149:else_if_opt_build_lib_snvertex_sh_5
    290150  SET obuild_cxx_optimize_local=
    291 :end_if_opt_build_lib_snvertex_sh_23
     151:end_if_opt_build_lib_snvertex_sh_5
    292152
    293153
     
    309169SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
    310170SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    311 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    312 cd "%obuild_snova_path%\%obuild_dir_bin%"
    313 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    314 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    315 cd "%obuild_pwd_snova_0%"
    316 SET obuild_pwd_snova_0=
    317 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    318 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    319 :end_if_platform_28
    320 SET obuild_platform_result=
    321171
    322172IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex"
     
    395245cd "%obuild_snova_path%\%obuild_dir_bin%"
    396246IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    397 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    398 cd "%obuild_pwd_snova_0%"
    399 SET obuild_pwd_snova_0=
    400 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    401 SET obuild_cxx_linker_command=c++
    402 :end_if_platform_40
    403 SET obuild_platform_result=
    404 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    405 cd "%obuild_snova_path%\%obuild_dir_bin%"
    406 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    407 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    408 cd "%obuild_pwd_snova_0%"
    409 SET obuild_pwd_snova_0=
    410 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    411 SET obuild_cxx_linker_command=c++
    412 :end_if_platform_41
    413 SET obuild_platform_result=
    414 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    415 cd "%obuild_snova_path%\%obuild_dir_bin%"
    416 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    417 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    418 cd "%obuild_pwd_snova_0%"
    419 SET obuild_pwd_snova_0=
    420 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    421 SET obuild_cxx_linker_command=cxx
    422 :end_if_platform_42
    423 SET obuild_platform_result=
    424 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    425 cd "%obuild_snova_path%\%obuild_dir_bin%"
    426 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    427 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    428 cd "%obuild_pwd_snova_0%"
    429 SET obuild_pwd_snova_0=
    430 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
     247FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     248cd "%obuild_pwd_snova_0%"
     249SET obuild_pwd_snova_0=
     250IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    431251SET obuild_cxx_linker_command=link.exe
    432 :end_if_platform_43
     252:end_if_platform_21
    433253SET obuild_platform_result=
    434254IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     
    437257cd "%obuild_snova_path%\%obuild_dir_bin%"
    438258IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    439 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    440 cd "%obuild_pwd_snova_0%"
    441 SET obuild_pwd_snova_0=
    442 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    443 SET obuild_cxx_linker_debug=-g
    444 :end_if_platform_44
    445 SET obuild_platform_result=
    446 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    447 cd "%obuild_snova_path%\%obuild_dir_bin%"
    448 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    449 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    450 cd "%obuild_pwd_snova_0%"
    451 SET obuild_pwd_snova_0=
    452 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    453 SET obuild_cxx_linker_debug=-g
    454 :end_if_platform_45
    455 SET obuild_platform_result=
    456 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    457 cd "%obuild_snova_path%\%obuild_dir_bin%"
    458 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    459 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    460 cd "%obuild_pwd_snova_0%"
    461 SET obuild_pwd_snova_0=
    462 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    463 SET obuild_cxx_linker_debug=-g
    464 :end_if_platform_46
    465 SET obuild_platform_result=
    466 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    467 cd "%obuild_snova_path%\%obuild_dir_bin%"
    468 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    469 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    470 cd "%obuild_pwd_snova_0%"
    471 SET obuild_pwd_snova_0=
    472 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
     259FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     260cd "%obuild_pwd_snova_0%"
     261SET obuild_pwd_snova_0=
     262IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    473263SET obuild_cxx_linker_debug=/DEBUG
    474 :end_if_platform_47
    475 SET obuild_platform_result=
    476 
    477 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    478 cd "%obuild_snova_path%\%obuild_dir_bin%"
    479 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    480 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    481 cd "%obuild_pwd_snova_0%"
    482 SET obuild_pwd_snova_0=
    483 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
     264:end_if_platform_22
     265SET obuild_platform_result=
     266
     267FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
     268cd "%obuild_snova_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_snova_0%"
     272SET obuild_pwd_snova_0=
     273IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    484274SET obuild_cxx_linker_options=/nologo
    485 :end_if_platform_48
    486 SET obuild_platform_result=
    487 
    488 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_49
     275:end_if_platform_23
     276SET obuild_platform_result=
     277
     278IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_24
    489279  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    490   GOTO end_if_db_build_lib_snvertex_sh_49
    491 :else_if_db_build_lib_snvertex_sh_49
     280  GOTO end_if_db_build_lib_snvertex_sh_24
     281:else_if_db_build_lib_snvertex_sh_24
    492282  SET obuild_cxx_linker_debug_local=
    493 :end_if_db_build_lib_snvertex_sh_49
    494 
    495 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_50
     283:end_if_db_build_lib_snvertex_sh_24
     284
     285IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_25
    496286  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    497   GOTO end_if_opt_build_lib_snvertex_sh_50
    498 :else_if_opt_build_lib_snvertex_sh_50
     287  GOTO end_if_opt_build_lib_snvertex_sh_25
     288:else_if_opt_build_lib_snvertex_sh_25
    499289  SET obuild_cxx_linker_optimize_local=
    500 :end_if_opt_build_lib_snvertex_sh_50
     290:end_if_opt_build_lib_snvertex_sh_25
    501291
    502292FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
  • build/snova/trunk/obuild/setup.bat

    r241 r275  
    3232
    3333IF "%OBUILD_DIR_BIN%" == "" (
    34   SET obuild_dir_bin=%obuild_platform%_obuild
     34  SET obuild_dir_bin=bin_obuild
    3535) ELSE (
    3636  SET obuild_dir_bin=%OBUILD_DIR_BIN%
     
    4242)
    4343
    44 IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
    45 IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" (
    46   cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snova_path%\obuild\cpp\obuild_platform.cpp" 1> NUL
    47   IF EXIST obuild_platform.obj DEL obuild_platform.obj
    48 )
    49 
    50 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    51 cd "%obuild_snova_path%\%obuild_dir_bin%"
    52 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    53 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    54 cd "%obuild_pwd_snova_0%"
    55 SET obuild_pwd_snova_0=
    56 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    57 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    58 :end_if_platform_1
    59 SET obuild_platform_result=
    60 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    61 cd "%obuild_snova_path%\%obuild_dir_bin%"
    62 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    63 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    64 cd "%obuild_pwd_snova_0%"
    65 SET obuild_pwd_snova_0=
    66 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    67 SET Geant4_home=/usr/local/geant4/8.2
    68 :end_if_platform_3
    69 SET obuild_platform_result=
    70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    71 cd "%obuild_snova_path%\%obuild_dir_bin%"
    72 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    73 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    74 cd "%obuild_pwd_snova_0%"
    75 SET obuild_pwd_snova_0=
    76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    77 SET HDF5_home=/usr/local/HDF5/1.6.5
    78 :end_if_platform_5
    79 SET obuild_platform_result=
    80 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
    81 cd "%obuild_snova_path%\%obuild_dir_bin%"
    82 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    83 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    84 cd "%obuild_pwd_snova_0%"
    85 SET obuild_pwd_snova_0=
    86 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    87 SET zlib_home=/usr
    88 :end_if_platform_7
    89 SET obuild_platform_result=
    9044IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
    9145IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" (
     
    10862REM # Set environment variables of this package :
    10963
    110 IF DEFINED PATH GOTO else_if_path_snova_8
     64IF DEFINED PATH GOTO else_if_path_snova_0
    11165  SET PATH=%obuild_snova_path%\%obuild_dir_bin%
    112   GOTO end_if_path_snova_8
    113 :else_if_path_snova_8
     66  GOTO end_if_path_snova_0
     67:else_if_path_snova_0
    11468  SET PATH=%PATH%;%obuild_snova_path%\%obuild_dir_bin%
    115 :end_if_path_snova_8
     69:end_if_path_snova_0
    11670
    11771:obuild_return
  • build/snova/trunk/obuild/setup.csh

    r241 r275  
    8484if ( $?OBUILD_DIR_BIN ) then
    8585  if (  "${OBUILD_DIR_BIN}" == "" ) then
    86     set obuild_dir_bin=${obuild_platform}_obuild
     86    set obuild_dir_bin=bin_obuild
    8787  else
    8888    set obuild_dir_bin=${OBUILD_DIR_BIN}
    8989  endif
    9090else
    91   set obuild_dir_bin=${obuild_platform}_obuild
     91  set obuild_dir_bin=bin_obuild
    9292endif
    9393
  • build/snova/trunk/obuild/setup.sh

    r241 r275  
    7878
    7979if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    80   obuild_dir_bin=${obuild_platform}_obuild
     80  obuild_dir_bin=bin_obuild
    8181else
    8282  obuild_dir_bin=${OBUILD_DIR_BIN}
  • build/snova/trunk/obuild/sh/broadcast_install

    r241 r275  
    4646
    4747if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    48   obuild_dir_bin=${obuild_platform}_obuild
     48  obuild_dir_bin=bin_obuild
    4949else
    5050  obuild_dir_bin=${OBUILD_DIR_BIN}
  • build/snova/trunk/obuild/sh/build

    r199 r275  
    100100  fi
    101101  if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    102     obuild_dir_bin=${obuild_platform}_obuild
     102    obuild_dir_bin=bin_obuild
    103103  else
    104104    obuild_dir_bin=${OBUILD_DIR_BIN}
  • build/snova/trunk/obuild/sh/build_app_prog_snova

    r241 r275  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset 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} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
     
    405369fi
    406370unset obuild_platform_result
    407 if [ "${obuild_platform_exe}" = "" ] ; then
    408   echo "Variable obuild_platform_exe not defined."
    409   exit
    410 fi
    411 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    412 if [ ${obuild_platform_result} = yes ] ; then
    413 obuild_cxx_linker_command="link.exe"
    414 fi
    415 unset obuild_platform_result
    416371if [ "${obuild_cxx_linker_command}" = "" ] ; then
    417372  echo "Variable obuild_cxx_linker_command not defined."
     
    444399if [ ${obuild_platform_result} = yes ] ; then
    445400obuild_cxx_linker_debug="-g"
    446 fi
    447 unset obuild_platform_result
    448 if [ "${obuild_platform_exe}" = "" ] ; then
    449   echo "Variable obuild_platform_exe not defined."
    450   exit
    451 fi
    452 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    453 if [ ${obuild_platform_result} = yes ] ; then
    454 obuild_cxx_linker_debug="/DEBUG"
    455 fi
    456 unset obuild_platform_result
    457 
    458 if [ "${obuild_platform_exe}" = "" ] ; then
    459   echo "Variable obuild_platform_exe not defined."
    460   exit
    461 fi
    462 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    463 if [ ${obuild_platform_result} = yes ] ; then
    464 obuild_cxx_linker_options="/nologo"
    465401fi
    466402unset obuild_platform_result
  • build/snova/trunk/obuild/sh/build_lib_geomutils

    r265 r275  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset 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} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • build/snova/trunk/obuild/sh/build_lib_sngeom

    r241 r275  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset 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} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • build/snova/trunk/obuild/sh/build_lib_snova

    r241 r275  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset 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} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • build/snova/trunk/obuild/sh/build_lib_snova_ui

    r241 r275  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset 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} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • build/snova/trunk/obuild/sh/build_lib_snvertex

    r241 r275  
    6464
    6565if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    66   obuild_dir_bin=${obuild_platform}_obuild
     66  obuild_dir_bin=bin_obuild
    6767else
    6868  obuild_dir_bin=${OBUILD_DIR_BIN}
     
    166166fi
    167167unset 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} 'Windows_NT'`
    173 if [ ${obuild_platform_result} = yes ] ; then
    174 obuild_cxx_command="cl.exe"
    175 fi
    176 unset obuild_platform_result
    177168if [ "${obuild_cxx_command}" = "" ] ; then
    178169  echo "Variable obuild_cxx_command not defined."
     
    207198fi
    208199unset obuild_platform_result
    209 if [ "${obuild_platform_exe}" = "" ] ; then
    210   echo "Variable obuild_platform_exe not defined."
    211   exit
    212 fi
    213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    214 if [ ${obuild_platform_result} = yes ] ; then
    215 obuild_cxx_optimize="/O2"
    216 fi
    217 unset obuild_platform_result
    218200
    219201if [ "${obuild_platform_exe}" = "" ] ; then
     
    244226fi
    245227unset obuild_platform_result
    246 if [ "${obuild_platform_exe}" = "" ] ; then
    247   echo "Variable obuild_platform_exe not defined."
    248   exit
    249 fi
    250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    251 if [ ${obuild_platform_result} = yes ] ; then
    252 obuild_cxx_debug="/ZI /Od"
    253 fi
    254 unset obuild_platform_result
    255228
    256229if [ "${obuild_platform_exe}" = "" ] ; then
     
    261234if [ ${obuild_platform_result} = yes ] ; then
    262235obuild_cxx_options="-fPIC"
    263 fi
    264 unset obuild_platform_result
    265 if [ "${obuild_platform_exe}" = "" ] ; then
    266   echo "Variable obuild_platform_exe not defined."
    267   exit
    268 fi
    269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`
    270 if [ ${obuild_platform_result} = yes ] ; then
    271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"
    272236fi
    273237unset obuild_platform_result
  • build/snova/trunk/obuild/sh/check_foreigns

    r241 r275  
    2828
    2929if [  "${OBUILD_DIR_BIN}" = "" ] ; then
    30   obuild_dir_bin=${obuild_platform}_obuild
     30  obuild_dir_bin=bin_obuild
    3131else
    3232  obuild_dir_bin=${OBUILD_DIR_BIN}
Note: See TracChangeset for help on using the changeset viewer.