Changeset 275
- Timestamp:
- Mar 1, 2007, 11:10:45 AM (18 years ago)
- Location:
- build/snova/trunk/obuild
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
build/snova/trunk/obuild/DOS/build.bat
r199 r275 90 90 91 91 IF "%OBUILD_DIR_BIN%" == "" ( 92 SET obuild_dir_bin= %obuild_platform%_obuild92 SET obuild_dir_bin=bin_obuild 93 93 ) ELSE ( 94 94 SET obuild_dir_bin=%OBUILD_DIR_BIN% -
build/snova/trunk/obuild/DOS/build_app_prog_snova.bat
r241 r275 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snova_path%\%obuild_dir_bin%" 96 96 IF 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 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snova_0%" 99 SET obuild_pwd_snova_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 107 cd "%obuild_snova_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snova_0%" 99 111 SET obuild_pwd_snova_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET 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 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 118 cd "%obuild_snova_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snova_0%" 122 SET obuild_pwd_snova_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 129 cd "%obuild_snova_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snova_0%" 109 133 SET obuild_pwd_snova_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET 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 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_app_prog_snova_sh_ 22282 :else_if_db_build_app_prog_snova_sh_ 22141 GOTO end_if_db_build_app_prog_snova_sh_4 142 :else_if_db_build_app_prog_snova_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_app_prog_snova_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_ 23144 :end_if_db_build_app_prog_snova_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_app_prog_snova_sh_ 23289 :else_if_opt_build_app_prog_snova_sh_ 23148 GOTO end_if_opt_build_app_prog_snova_sh_5 149 :else_if_opt_build_app_prog_snova_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_app_prog_snova_sh_ 23151 :end_if_opt_build_app_prog_snova_sh_5 292 152 293 153 … … 317 177 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" 318 178 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 319 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d320 cd "%obuild_snova_path%\%obuild_dir_bin%"321 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return322 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j323 cd "%obuild_pwd_snova_0%"324 SET obuild_pwd_snova_0=325 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29326 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include327 :end_if_platform_29328 SET obuild_platform_result=329 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d330 cd "%obuild_snova_path%\%obuild_dir_bin%"331 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return332 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j333 cd "%obuild_pwd_snova_0%"334 SET obuild_pwd_snova_0=335 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30336 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include337 :end_if_platform_30338 SET obuild_platform_result=339 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d340 cd "%obuild_snova_path%\%obuild_dir_bin%"341 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return342 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j343 cd "%obuild_pwd_snova_0%"344 SET obuild_pwd_snova_0=345 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31346 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include347 :end_if_platform_31348 SET obuild_platform_result=349 179 350 180 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\app_prog_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\app_prog_snova" … … 363 193 cd "%obuild_snova_path%\%obuild_dir_bin%" 364 194 IF 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 195 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 196 cd "%obuild_pwd_snova_0%" 197 SET obuild_pwd_snova_0= 198 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 399 199 SET obuild_cxx_linker_command=link.exe 400 :end_if_platform_ 36200 :end_if_platform_12 401 201 SET obuild_platform_result= 402 202 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 405 205 cd "%obuild_snova_path%\%obuild_dir_bin%" 406 206 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% 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 207 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 208 cd "%obuild_pwd_snova_0%" 209 SET obuild_pwd_snova_0= 210 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 441 211 SET obuild_cxx_linker_debug=/DEBUG 442 :end_if_platform_ 40443 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_ 41212 :end_if_platform_13 213 SET obuild_platform_result= 214 215 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 216 cd "%obuild_snova_path%\%obuild_dir_bin%" 217 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 218 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 219 cd "%obuild_pwd_snova_0%" 220 SET obuild_pwd_snova_0= 221 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 452 222 SET obuild_cxx_linker_options=/nologo 453 :end_if_platform_ 41454 SET obuild_platform_result= 455 456 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_ 42223 :end_if_platform_14 224 SET obuild_platform_result= 225 226 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_15 457 227 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 458 GOTO end_if_db_build_app_prog_snova_sh_ 42459 :else_if_db_build_app_prog_snova_sh_ 42228 GOTO end_if_db_build_app_prog_snova_sh_15 229 :else_if_db_build_app_prog_snova_sh_15 460 230 SET obuild_cxx_linker_debug_local= 461 :end_if_db_build_app_prog_snova_sh_ 42462 463 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_ 43231 :end_if_db_build_app_prog_snova_sh_15 232 233 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_16 464 234 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 465 GOTO end_if_opt_build_app_prog_snova_sh_ 43466 :else_if_opt_build_app_prog_snova_sh_ 43235 GOTO end_if_opt_build_app_prog_snova_sh_16 236 :else_if_opt_build_app_prog_snova_sh_16 467 237 SET obuild_cxx_linker_optimize_local= 468 :end_if_opt_build_app_prog_snova_sh_ 43238 :end_if_opt_build_app_prog_snova_sh_16 469 239 470 240 SET obuild_linked_libraries="%obuild_snova_path%\%obuild_dir_bin%\snova_ui.lib" … … 474 244 SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib" 475 245 SET 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=%%d477 cd "%obuild_snova_path%\%obuild_dir_bin%"478 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return479 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j480 cd "%obuild_pwd_snova_0%"481 SET obuild_pwd_snova_0=482 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50483 SET obuild_linked_libraries=%obuild_linked_libraries% -L${HDF5_home}/lib -lhdf5.0.0.0484 :end_if_platform_50485 SET obuild_platform_result=486 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d487 cd "%obuild_snova_path%\%obuild_dir_bin%"488 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return489 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j490 cd "%obuild_pwd_snova_0%"491 SET obuild_pwd_snova_0=492 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51493 SET obuild_linked_libraries=%obuild_linked_libraries% -L${zlib_home}/lib -lz494 :end_if_platform_51495 SET obuild_platform_result=496 246 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces 497 247 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4vis_management 498 248 SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4modeling 499 249 SET 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=%%d501 cd "%obuild_snova_path%\%obuild_dir_bin%"502 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return503 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j504 cd "%obuild_pwd_snova_0%"505 SET obuild_pwd_snova_0=506 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56507 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 -lG4global508 :end_if_platform_56509 SET obuild_platform_result=510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d511 cd "%obuild_snova_path%\%obuild_dir_bin%"512 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return513 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j514 cd "%obuild_pwd_snova_0%"515 SET obuild_pwd_snova_0=516 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57517 SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP-2.0.3.1518 :end_if_platform_57519 SET obuild_platform_result=520 250 521 251 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_geomutils.bat
r265 r275 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snova_path%\%obuild_dir_bin%" 96 96 IF 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 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snova_0%" 99 SET obuild_pwd_snova_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 107 cd "%obuild_snova_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snova_0%" 99 111 SET obuild_pwd_snova_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET 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 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 118 cd "%obuild_snova_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snova_0%" 122 SET obuild_pwd_snova_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 129 cd "%obuild_snova_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snova_0%" 109 133 SET obuild_pwd_snova_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET 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 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_geomutils_sh_ 22282 :else_if_db_build_lib_geomutils_sh_ 22141 GOTO end_if_db_build_lib_geomutils_sh_4 142 :else_if_db_build_lib_geomutils_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_geomutils_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_ 23144 :end_if_db_build_lib_geomutils_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_geomutils_sh_ 23289 :else_if_opt_build_lib_geomutils_sh_ 23148 GOTO end_if_opt_build_lib_geomutils_sh_5 149 :else_if_opt_build_lib_geomutils_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_geomutils_sh_ 23151 :end_if_opt_build_lib_geomutils_sh_5 292 152 293 153 294 154 295 155 SET obuild_cxx_includes=/I"%obuild_snova_path%\source\GeomUtils\include" 296 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d297 cd "%obuild_snova_path%\%obuild_dir_bin%"298 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return299 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j300 cd "%obuild_pwd_snova_0%"301 SET obuild_pwd_snova_0=302 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25303 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include304 :end_if_platform_25305 SET obuild_platform_result=306 156 307 157 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_geomutils" … … 309 159 310 160 REM # pre_build scripts : 311 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d312 cd "%obuild_snova_path%\%obuild_dir_bin%"313 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return314 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j315 cd "%obuild_pwd_snova_0%"316 SET obuild_pwd_snova_0=317 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26318 chmod a+x ./pre_build;./pre_build319 :end_if_platform_26320 SET obuild_platform_result=321 161 322 162 @IF %obuild_verbose% == yes @ECHO ON … … 404 244 cd "%obuild_snova_path%\%obuild_dir_bin%" 405 245 IF 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 246 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 247 cd "%obuild_pwd_snova_0%" 248 SET obuild_pwd_snova_0= 249 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 440 250 SET obuild_cxx_linker_command=link.exe 441 :end_if_platform_ 43251 :end_if_platform_20 442 252 SET obuild_platform_result= 443 253 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 446 256 cd "%obuild_snova_path%\%obuild_dir_bin%" 447 257 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% 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 258 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 259 cd "%obuild_pwd_snova_0%" 260 SET obuild_pwd_snova_0= 261 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 482 262 SET obuild_cxx_linker_debug=/DEBUG 483 :end_if_platform_ 47484 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_ 48263 :end_if_platform_21 264 SET obuild_platform_result= 265 266 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 267 cd "%obuild_snova_path%\%obuild_dir_bin%" 268 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 269 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 270 cd "%obuild_pwd_snova_0%" 271 SET obuild_pwd_snova_0= 272 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 493 273 SET obuild_cxx_linker_options=/nologo 494 :end_if_platform_ 48495 SET obuild_platform_result= 496 497 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_ 49274 :end_if_platform_22 275 SET obuild_platform_result= 276 277 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_geomutils_sh_23 498 278 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 499 GOTO end_if_db_build_lib_geomutils_sh_ 49500 :else_if_db_build_lib_geomutils_sh_ 49279 GOTO end_if_db_build_lib_geomutils_sh_23 280 :else_if_db_build_lib_geomutils_sh_23 501 281 SET obuild_cxx_linker_debug_local= 502 :end_if_db_build_lib_geomutils_sh_ 49503 504 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_ 50282 :end_if_db_build_lib_geomutils_sh_23 283 284 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_geomutils_sh_24 505 285 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 506 GOTO end_if_opt_build_lib_geomutils_sh_ 50507 :else_if_opt_build_lib_geomutils_sh_ 50286 GOTO end_if_opt_build_lib_geomutils_sh_24 287 :else_if_opt_build_lib_geomutils_sh_24 508 288 SET obuild_cxx_linker_optimize_local= 509 :end_if_opt_build_lib_geomutils_sh_ 50289 :end_if_opt_build_lib_geomutils_sh_24 510 290 511 291 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_sngeom.bat
r241 r275 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snova_path%\%obuild_dir_bin%" 96 96 IF 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 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snova_0%" 99 SET obuild_pwd_snova_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 107 cd "%obuild_snova_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snova_0%" 99 111 SET obuild_pwd_snova_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET 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 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 118 cd "%obuild_snova_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snova_0%" 122 SET obuild_pwd_snova_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 129 cd "%obuild_snova_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snova_0%" 109 133 SET obuild_pwd_snova_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET 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 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_sngeom_sh_ 22282 :else_if_db_build_lib_sngeom_sh_ 22141 GOTO end_if_db_build_lib_sngeom_sh_4 142 :else_if_db_build_lib_sngeom_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_sngeom_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_ 23144 :end_if_db_build_lib_sngeom_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_sngeom_sh_ 23289 :else_if_opt_build_lib_sngeom_sh_ 23148 GOTO end_if_opt_build_lib_sngeom_sh_5 149 :else_if_opt_build_lib_sngeom_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_sngeom_sh_ 23151 :end_if_opt_build_lib_sngeom_sh_5 292 152 293 153 … … 307 167 SET obuild_cxx_includes=/I"%obuild_snova_path%\source\SNgeom2\include" 308 168 SET 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=%%d310 cd "%obuild_snova_path%\%obuild_dir_bin%"311 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return312 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j313 cd "%obuild_pwd_snova_0%"314 SET obuild_pwd_snova_0=315 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26316 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include317 :end_if_platform_26318 SET obuild_platform_result=319 169 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 320 170 … … 382 232 cd "%obuild_snova_path%\%obuild_dir_bin%" 383 233 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% 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 234 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 235 cd "%obuild_pwd_snova_0%" 236 SET obuild_pwd_snova_0= 237 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 418 238 SET obuild_cxx_linker_command=link.exe 419 :end_if_platform_ 40239 :end_if_platform_18 420 240 SET obuild_platform_result= 421 241 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 424 244 cd "%obuild_snova_path%\%obuild_dir_bin%" 425 245 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% 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 246 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 247 cd "%obuild_pwd_snova_0%" 248 SET obuild_pwd_snova_0= 249 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 460 250 SET obuild_cxx_linker_debug=/DEBUG 461 :end_if_platform_ 44462 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_ 45251 :end_if_platform_19 252 SET obuild_platform_result= 253 254 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 255 cd "%obuild_snova_path%\%obuild_dir_bin%" 256 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 257 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 258 cd "%obuild_pwd_snova_0%" 259 SET obuild_pwd_snova_0= 260 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 471 261 SET obuild_cxx_linker_options=/nologo 472 :end_if_platform_ 45473 SET obuild_platform_result= 474 475 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_ 46262 :end_if_platform_20 263 SET obuild_platform_result= 264 265 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_sngeom_sh_21 476 266 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 477 GOTO end_if_db_build_lib_sngeom_sh_ 46478 :else_if_db_build_lib_sngeom_sh_ 46267 GOTO end_if_db_build_lib_sngeom_sh_21 268 :else_if_db_build_lib_sngeom_sh_21 479 269 SET obuild_cxx_linker_debug_local= 480 :end_if_db_build_lib_sngeom_sh_ 46481 482 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_ 47270 :end_if_db_build_lib_sngeom_sh_21 271 272 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_sngeom_sh_22 483 273 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 484 GOTO end_if_opt_build_lib_sngeom_sh_ 47485 :else_if_opt_build_lib_sngeom_sh_ 47274 GOTO end_if_opt_build_lib_sngeom_sh_22 275 :else_if_opt_build_lib_sngeom_sh_22 486 276 SET obuild_cxx_linker_optimize_local= 487 :end_if_opt_build_lib_sngeom_sh_ 47277 :end_if_opt_build_lib_sngeom_sh_22 488 278 489 279 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_snova.bat
r241 r275 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snova_path%\%obuild_dir_bin%" 96 96 IF 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 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snova_0%" 99 SET obuild_pwd_snova_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 107 cd "%obuild_snova_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snova_0%" 99 111 SET obuild_pwd_snova_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET 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 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 118 cd "%obuild_snova_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snova_0%" 122 SET obuild_pwd_snova_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 129 cd "%obuild_snova_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snova_0%" 109 133 SET obuild_pwd_snova_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET 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 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_snova_sh_ 22282 :else_if_db_build_lib_snova_sh_ 22141 GOTO end_if_db_build_lib_snova_sh_4 142 :else_if_db_build_lib_snova_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_snova_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_ 23144 :end_if_db_build_lib_snova_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_snova_sh_ 23289 :else_if_opt_build_lib_snova_sh_ 23148 GOTO end_if_opt_build_lib_snova_sh_5 149 :else_if_opt_build_lib_snova_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_snova_sh_ 23151 :end_if_opt_build_lib_snova_sh_5 292 152 293 153 … … 310 170 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" 311 171 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 312 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d313 cd "%obuild_snova_path%\%obuild_dir_bin%"314 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return315 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j316 cd "%obuild_pwd_snova_0%"317 SET obuild_pwd_snova_0=318 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29319 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include320 :end_if_platform_29321 SET obuild_platform_result=322 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d323 cd "%obuild_snova_path%\%obuild_dir_bin%"324 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return325 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j326 cd "%obuild_pwd_snova_0%"327 SET obuild_pwd_snova_0=328 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30329 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include330 :end_if_platform_30331 SET obuild_platform_result=332 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d333 cd "%obuild_snova_path%\%obuild_dir_bin%"334 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return335 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j336 cd "%obuild_pwd_snova_0%"337 SET obuild_pwd_snova_0=338 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31339 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include340 :end_if_platform_31341 SET obuild_platform_result=342 172 343 173 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" … … 440 270 cd "%obuild_snova_path%\%obuild_dir_bin%" 441 271 IF 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 272 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 273 cd "%obuild_pwd_snova_0%" 274 SET obuild_pwd_snova_0= 275 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 476 276 SET obuild_cxx_linker_command=link.exe 477 :end_if_platform_ 50277 :end_if_platform_26 478 278 SET obuild_platform_result= 479 279 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 482 282 cd "%obuild_snova_path%\%obuild_dir_bin%" 483 283 IF 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 284 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 285 cd "%obuild_pwd_snova_0%" 286 SET obuild_pwd_snova_0= 287 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27 518 288 SET obuild_cxx_linker_debug=/DEBUG 519 :end_if_platform_ 54520 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_ 55289 :end_if_platform_27 290 SET obuild_platform_result= 291 292 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 293 cd "%obuild_snova_path%\%obuild_dir_bin%" 294 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 295 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 296 cd "%obuild_pwd_snova_0%" 297 SET obuild_pwd_snova_0= 298 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 529 299 SET obuild_cxx_linker_options=/nologo 530 :end_if_platform_ 55531 SET obuild_platform_result= 532 533 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_ 56300 :end_if_platform_28 301 SET obuild_platform_result= 302 303 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_29 534 304 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 535 GOTO end_if_db_build_lib_snova_sh_ 56536 :else_if_db_build_lib_snova_sh_ 56305 GOTO end_if_db_build_lib_snova_sh_29 306 :else_if_db_build_lib_snova_sh_29 537 307 SET obuild_cxx_linker_debug_local= 538 :end_if_db_build_lib_snova_sh_ 56539 540 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_ 57308 :end_if_db_build_lib_snova_sh_29 309 310 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_30 541 311 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 542 GOTO end_if_opt_build_lib_snova_sh_ 57543 :else_if_opt_build_lib_snova_sh_ 57312 GOTO end_if_opt_build_lib_snova_sh_30 313 :else_if_opt_build_lib_snova_sh_30 544 314 SET obuild_cxx_linker_optimize_local= 545 :end_if_opt_build_lib_snova_sh_ 57315 :end_if_opt_build_lib_snova_sh_30 546 316 547 317 FOR /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 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snova_path%\%obuild_dir_bin%" 96 96 IF 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 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snova_0%" 99 SET obuild_pwd_snova_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 107 cd "%obuild_snova_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snova_0%" 99 111 SET obuild_pwd_snova_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET 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 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 118 cd "%obuild_snova_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snova_0%" 122 SET obuild_pwd_snova_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 129 cd "%obuild_snova_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snova_0%" 109 133 SET obuild_pwd_snova_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET 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 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_snova_ui_sh_ 22282 :else_if_db_build_lib_snova_ui_sh_ 22141 GOTO end_if_db_build_lib_snova_ui_sh_4 142 :else_if_db_build_lib_snova_ui_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_snova_ui_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_ 23144 :end_if_db_build_lib_snova_ui_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_snova_ui_sh_ 23289 :else_if_opt_build_lib_snova_ui_sh_ 23148 GOTO end_if_opt_build_lib_snova_ui_sh_5 149 :else_if_opt_build_lib_snova_ui_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_snova_ui_sh_ 23151 :end_if_opt_build_lib_snova_ui_sh_5 292 152 293 153 … … 310 170 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include" 311 171 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 312 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d313 cd "%obuild_snova_path%\%obuild_dir_bin%"314 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return315 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j316 cd "%obuild_pwd_snova_0%"317 SET obuild_pwd_snova_0=318 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29319 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include320 :end_if_platform_29321 SET obuild_platform_result=322 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d323 cd "%obuild_snova_path%\%obuild_dir_bin%"324 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return325 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j326 cd "%obuild_pwd_snova_0%"327 SET obuild_pwd_snova_0=328 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30329 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include330 :end_if_platform_30331 SET obuild_platform_result=332 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d333 cd "%obuild_snova_path%\%obuild_dir_bin%"334 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return335 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j336 cd "%obuild_pwd_snova_0%"337 SET obuild_pwd_snova_0=338 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31339 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include340 :end_if_platform_31341 SET obuild_platform_result=342 172 343 173 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova_ui" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova_ui" … … 362 192 cd "%obuild_snova_path%\%obuild_dir_bin%" 363 193 IF 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 194 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 195 cd "%obuild_pwd_snova_0%" 196 SET obuild_pwd_snova_0= 197 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 398 198 SET obuild_cxx_linker_command=link.exe 399 :end_if_platform_ 37199 :end_if_platform_13 400 200 SET obuild_platform_result= 401 201 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 404 204 cd "%obuild_snova_path%\%obuild_dir_bin%" 405 205 IF 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 206 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 207 cd "%obuild_pwd_snova_0%" 208 SET obuild_pwd_snova_0= 209 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 440 210 SET obuild_cxx_linker_debug=/DEBUG 441 :end_if_platform_ 41442 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_ 42211 :end_if_platform_14 212 SET obuild_platform_result= 213 214 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 215 cd "%obuild_snova_path%\%obuild_dir_bin%" 216 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 217 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 218 cd "%obuild_pwd_snova_0%" 219 SET obuild_pwd_snova_0= 220 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 451 221 SET obuild_cxx_linker_options=/nologo 452 :end_if_platform_ 42453 SET obuild_platform_result= 454 455 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_ 43222 :end_if_platform_15 223 SET obuild_platform_result= 224 225 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_ui_sh_16 456 226 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 457 GOTO end_if_db_build_lib_snova_ui_sh_ 43458 :else_if_db_build_lib_snova_ui_sh_ 43227 GOTO end_if_db_build_lib_snova_ui_sh_16 228 :else_if_db_build_lib_snova_ui_sh_16 459 229 SET obuild_cxx_linker_debug_local= 460 :end_if_db_build_lib_snova_ui_sh_ 43461 462 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_ 44230 :end_if_db_build_lib_snova_ui_sh_16 231 232 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_ui_sh_17 463 233 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 464 GOTO end_if_opt_build_lib_snova_ui_sh_ 44465 :else_if_opt_build_lib_snova_ui_sh_ 44234 GOTO end_if_opt_build_lib_snova_ui_sh_17 235 :else_if_opt_build_lib_snova_ui_sh_17 466 236 SET obuild_cxx_linker_optimize_local= 467 :end_if_opt_build_lib_snova_ui_sh_ 44237 :end_if_opt_build_lib_snova_ui_sh_17 468 238 469 239 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/DOS/build_lib_snvertex.bat
r241 r275 74 74 75 75 IF "%OBUILD_DIR_BIN%" == "" ( 76 SET obuild_dir_bin= %obuild_platform%_obuild76 SET obuild_dir_bin=bin_obuild 77 77 ) ELSE ( 78 78 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 95 95 cd "%obuild_snova_path%\%obuild_dir_bin%" 96 96 IF 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 97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 cd "%obuild_pwd_snova_0%" 99 SET obuild_pwd_snova_0= 100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_0 101 SET obuild_cxx_command=cl.exe 102 :end_if_platform_0 103 SET obuild_platform_result= 104 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return 105 106 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 107 cd "%obuild_snova_path%\%obuild_dir_bin%" 108 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 109 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 98 110 cd "%obuild_pwd_snova_0%" 99 111 SET obuild_pwd_snova_0= 100 112 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 101 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1113 SET obuild_cxx_optimize=/O2 102 114 :end_if_platform_1 103 115 SET 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 117 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 118 cd "%obuild_snova_path%\%obuild_dir_bin%" 119 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 120 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 121 cd "%obuild_pwd_snova_0%" 122 SET obuild_pwd_snova_0= 123 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 124 SET obuild_cxx_debug=/ZI /Od 125 :end_if_platform_2 126 SET obuild_platform_result= 127 128 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 129 cd "%obuild_snova_path%\%obuild_dir_bin%" 130 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 131 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 108 132 cd "%obuild_pwd_snova_0%" 109 133 SET obuild_pwd_snova_0= 110 134 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET Geant4_home=/usr/local/geant4/8.2135 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 112 136 :end_if_platform_3 113 137 SET 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 139 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_4 280 140 SET obuild_cxx_debug_local=%obuild_cxx_debug% 281 GOTO end_if_db_build_lib_snvertex_sh_ 22282 :else_if_db_build_lib_snvertex_sh_ 22141 GOTO end_if_db_build_lib_snvertex_sh_4 142 :else_if_db_build_lib_snvertex_sh_4 283 143 SET obuild_cxx_debug_local= 284 :end_if_db_build_lib_snvertex_sh_ 22285 286 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_ 23144 :end_if_db_build_lib_snvertex_sh_4 145 146 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_5 287 147 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 288 GOTO end_if_opt_build_lib_snvertex_sh_ 23289 :else_if_opt_build_lib_snvertex_sh_ 23148 GOTO end_if_opt_build_lib_snvertex_sh_5 149 :else_if_opt_build_lib_snvertex_sh_5 290 150 SET obuild_cxx_optimize_local= 291 :end_if_opt_build_lib_snvertex_sh_ 23151 :end_if_opt_build_lib_snvertex_sh_5 292 152 293 153 … … 309 169 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include" 310 170 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%" 311 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d312 cd "%obuild_snova_path%\%obuild_dir_bin%"313 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return314 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j315 cd "%obuild_pwd_snova_0%"316 SET obuild_pwd_snova_0=317 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28318 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include319 :end_if_platform_28320 SET obuild_platform_result=321 171 322 172 IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" … … 395 245 cd "%obuild_snova_path%\%obuild_dir_bin%" 396 246 IF 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 247 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 248 cd "%obuild_pwd_snova_0%" 249 SET obuild_pwd_snova_0= 250 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 431 251 SET obuild_cxx_linker_command=link.exe 432 :end_if_platform_ 43252 :end_if_platform_21 433 253 SET obuild_platform_result= 434 254 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 437 257 cd "%obuild_snova_path%\%obuild_dir_bin%" 438 258 IF 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 259 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 260 cd "%obuild_pwd_snova_0%" 261 SET obuild_pwd_snova_0= 262 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 473 263 SET obuild_cxx_linker_debug=/DEBUG 474 :end_if_platform_ 47475 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_ 48264 :end_if_platform_22 265 SET obuild_platform_result= 266 267 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d 268 cd "%obuild_snova_path%\%obuild_dir_bin%" 269 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 270 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 271 cd "%obuild_pwd_snova_0%" 272 SET obuild_pwd_snova_0= 273 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 484 274 SET obuild_cxx_linker_options=/nologo 485 :end_if_platform_ 48486 SET obuild_platform_result= 487 488 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_ 49275 :end_if_platform_23 276 SET obuild_platform_result= 277 278 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_24 489 279 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 490 GOTO end_if_db_build_lib_snvertex_sh_ 49491 :else_if_db_build_lib_snvertex_sh_ 49280 GOTO end_if_db_build_lib_snvertex_sh_24 281 :else_if_db_build_lib_snvertex_sh_24 492 282 SET obuild_cxx_linker_debug_local= 493 :end_if_db_build_lib_snvertex_sh_ 49494 495 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_ 50283 :end_if_db_build_lib_snvertex_sh_24 284 285 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_25 496 286 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 497 GOTO end_if_opt_build_lib_snvertex_sh_ 50498 :else_if_opt_build_lib_snvertex_sh_ 50287 GOTO end_if_opt_build_lib_snvertex_sh_25 288 :else_if_opt_build_lib_snvertex_sh_25 499 289 SET obuild_cxx_linker_optimize_local= 500 :end_if_opt_build_lib_snvertex_sh_ 50290 :end_if_opt_build_lib_snvertex_sh_25 501 291 502 292 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d -
build/snova/trunk/obuild/setup.bat
r241 r275 32 32 33 33 IF "%OBUILD_DIR_BIN%" == "" ( 34 SET obuild_dir_bin= %obuild_platform%_obuild34 SET obuild_dir_bin=bin_obuild 35 35 ) ELSE ( 36 36 SET obuild_dir_bin=%OBUILD_DIR_BIN% … … 42 42 ) 43 43 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> NUL47 IF EXIST obuild_platform.obj DEL obuild_platform.obj48 )49 50 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d51 cd "%obuild_snova_path%\%obuild_dir_bin%"52 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return53 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j54 cd "%obuild_pwd_snova_0%"55 SET obuild_pwd_snova_0=56 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_157 SET CLHEP_home=/usr/local/CLHEP/2.0.3.158 :end_if_platform_159 SET obuild_platform_result=60 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d61 cd "%obuild_snova_path%\%obuild_dir_bin%"62 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return63 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j64 cd "%obuild_pwd_snova_0%"65 SET obuild_pwd_snova_0=66 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_367 SET Geant4_home=/usr/local/geant4/8.268 :end_if_platform_369 SET obuild_platform_result=70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d71 cd "%obuild_snova_path%\%obuild_dir_bin%"72 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return73 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j74 cd "%obuild_pwd_snova_0%"75 SET obuild_pwd_snova_0=76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_577 SET HDF5_home=/usr/local/HDF5/1.6.578 :end_if_platform_579 SET obuild_platform_result=80 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d81 cd "%obuild_snova_path%\%obuild_dir_bin%"82 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return83 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j84 cd "%obuild_pwd_snova_0%"85 SET obuild_pwd_snova_0=86 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_787 SET zlib_home=/usr88 :end_if_platform_789 SET obuild_platform_result=90 44 IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%" 91 45 IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" ( … … 108 62 REM # Set environment variables of this package : 109 63 110 IF DEFINED PATH GOTO else_if_path_snova_ 864 IF DEFINED PATH GOTO else_if_path_snova_0 111 65 SET PATH=%obuild_snova_path%\%obuild_dir_bin% 112 GOTO end_if_path_snova_ 8113 :else_if_path_snova_ 866 GOTO end_if_path_snova_0 67 :else_if_path_snova_0 114 68 SET PATH=%PATH%;%obuild_snova_path%\%obuild_dir_bin% 115 :end_if_path_snova_ 869 :end_if_path_snova_0 116 70 117 71 :obuild_return -
build/snova/trunk/obuild/setup.csh
r241 r275 84 84 if ( $?OBUILD_DIR_BIN ) then 85 85 if ( "${OBUILD_DIR_BIN}" == "" ) then 86 set obuild_dir_bin= ${obuild_platform}_obuild86 set obuild_dir_bin=bin_obuild 87 87 else 88 88 set obuild_dir_bin=${OBUILD_DIR_BIN} 89 89 endif 90 90 else 91 set obuild_dir_bin= ${obuild_platform}_obuild91 set obuild_dir_bin=bin_obuild 92 92 endif 93 93 -
build/snova/trunk/obuild/setup.sh
r241 r275 78 78 79 79 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 80 obuild_dir_bin= ${obuild_platform}_obuild80 obuild_dir_bin=bin_obuild 81 81 else 82 82 obuild_dir_bin=${OBUILD_DIR_BIN} -
build/snova/trunk/obuild/sh/broadcast_install
r241 r275 46 46 47 47 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 48 obuild_dir_bin= ${obuild_platform}_obuild48 obuild_dir_bin=bin_obuild 49 49 else 50 50 obuild_dir_bin=${OBUILD_DIR_BIN} -
build/snova/trunk/obuild/sh/build
r199 r275 100 100 fi 101 101 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 102 obuild_dir_bin= ${obuild_platform}_obuild102 obuild_dir_bin=bin_obuild 103 103 else 104 104 obuild_dir_bin=${OBUILD_DIR_BIN} -
build/snova/trunk/obuild/sh/build_app_prog_snova
r241 r275 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result … … 405 369 fi 406 370 unset obuild_platform_result 407 if [ "${obuild_platform_exe}" = "" ] ; then408 echo "Variable obuild_platform_exe not defined."409 exit410 fi411 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`412 if [ ${obuild_platform_result} = yes ] ; then413 obuild_cxx_linker_command="link.exe"414 fi415 unset obuild_platform_result416 371 if [ "${obuild_cxx_linker_command}" = "" ] ; then 417 372 echo "Variable obuild_cxx_linker_command not defined." … … 444 399 if [ ${obuild_platform_result} = yes ] ; then 445 400 obuild_cxx_linker_debug="-g" 446 fi447 unset obuild_platform_result448 if [ "${obuild_platform_exe}" = "" ] ; then449 echo "Variable obuild_platform_exe not defined."450 exit451 fi452 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`453 if [ ${obuild_platform_result} = yes ] ; then454 obuild_cxx_linker_debug="/DEBUG"455 fi456 unset obuild_platform_result457 458 if [ "${obuild_platform_exe}" = "" ] ; then459 echo "Variable obuild_platform_exe not defined."460 exit461 fi462 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`463 if [ ${obuild_platform_result} = yes ] ; then464 obuild_cxx_linker_options="/nologo"465 401 fi 466 402 unset obuild_platform_result -
build/snova/trunk/obuild/sh/build_lib_geomutils
r265 r275 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
build/snova/trunk/obuild/sh/build_lib_sngeom
r241 r275 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
build/snova/trunk/obuild/sh/build_lib_snova
r241 r275 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
build/snova/trunk/obuild/sh/build_lib_snova_ui
r241 r275 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
build/snova/trunk/obuild/sh/build_lib_snvertex
r241 r275 64 64 65 65 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 66 obuild_dir_bin= ${obuild_platform}_obuild66 obuild_dir_bin=bin_obuild 67 67 else 68 68 obuild_dir_bin=${OBUILD_DIR_BIN} … … 166 166 fi 167 167 unset obuild_platform_result 168 if [ "${obuild_platform_exe}" = "" ] ; then169 echo "Variable obuild_platform_exe not defined."170 exit171 fi172 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`173 if [ ${obuild_platform_result} = yes ] ; then174 obuild_cxx_command="cl.exe"175 fi176 unset obuild_platform_result177 168 if [ "${obuild_cxx_command}" = "" ] ; then 178 169 echo "Variable obuild_cxx_command not defined." … … 207 198 fi 208 199 unset obuild_platform_result 209 if [ "${obuild_platform_exe}" = "" ] ; then210 echo "Variable obuild_platform_exe not defined."211 exit212 fi213 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`214 if [ ${obuild_platform_result} = yes ] ; then215 obuild_cxx_optimize="/O2"216 fi217 unset obuild_platform_result218 200 219 201 if [ "${obuild_platform_exe}" = "" ] ; then … … 244 226 fi 245 227 unset obuild_platform_result 246 if [ "${obuild_platform_exe}" = "" ] ; then247 echo "Variable obuild_platform_exe not defined."248 exit249 fi250 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`251 if [ ${obuild_platform_result} = yes ] ; then252 obuild_cxx_debug="/ZI /Od"253 fi254 unset obuild_platform_result255 228 256 229 if [ "${obuild_platform_exe}" = "" ] ; then … … 261 234 if [ ${obuild_platform_result} = yes ] ; then 262 235 obuild_cxx_options="-fPIC" 263 fi264 unset obuild_platform_result265 if [ "${obuild_platform_exe}" = "" ] ; then266 echo "Variable obuild_platform_exe not defined."267 exit268 fi269 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'`270 if [ ${obuild_platform_result} = yes ] ; then271 obuild_cxx_options="/nologo /DWIN32 /MD /GX /GR /W3"272 236 fi 273 237 unset obuild_platform_result -
build/snova/trunk/obuild/sh/check_foreigns
r241 r275 28 28 29 29 if [ "${OBUILD_DIR_BIN}" = "" ] ; then 30 obuild_dir_bin= ${obuild_platform}_obuild30 obuild_dir_bin=bin_obuild 31 31 else 32 32 obuild_dir_bin=${OBUILD_DIR_BIN}
Note: See TracChangeset
for help on using the changeset viewer.