Changeset 249 for build/bhep/trunk/obuild/DOS/build_lib_bhep.bat
- Timestamp:
- Feb 15, 2007, 11:45:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
build/bhep/trunk/obuild/DOS/build_lib_bhep.bat
r127 r249 105 105 cd "%obuild_bhep_path%\%obuild_dir_bin%" 106 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 108 cd "%obuild_pwd_bhep_0%" 109 SET obuild_pwd_bhep_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3 111 SET HDF5_home=/usr/local/HDF5/1.6.5 112 :end_if_platform_3 113 SET obuild_platform_result= 114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 115 cd "%obuild_bhep_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_bhep_0%" 119 SET obuild_pwd_bhep_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 121 SET zlib_home=/usr 122 :end_if_platform_5 123 SET obuild_platform_result= 124 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 125 cd "%obuild_bhep_path%\%obuild_dir_bin%" 126 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 107 127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 108 128 cd "%obuild_pwd_bhep_0%" 109 129 SET obuild_pwd_bhep_0= 110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 2130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 111 131 SET obuild_cxx_command=c++ 112 :end_if_platform_ 2132 :end_if_platform_6 113 133 SET obuild_platform_result= 114 134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 118 138 cd "%obuild_pwd_bhep_0%" 119 139 SET obuild_pwd_bhep_0= 120 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 3140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 121 141 SET obuild_cxx_command=c++ 122 :end_if_platform_ 3142 :end_if_platform_7 123 143 SET obuild_platform_result= 124 144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 128 148 cd "%obuild_pwd_bhep_0%" 129 149 SET obuild_pwd_bhep_0= 130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 4150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 131 151 SET obuild_cxx_command=cxx 132 :end_if_platform_ 4152 :end_if_platform_8 133 153 SET obuild_platform_result= 134 154 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 138 158 cd "%obuild_pwd_bhep_0%" 139 159 SET obuild_pwd_bhep_0= 140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 5160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 141 161 SET obuild_cxx_command=cl.exe 142 :end_if_platform_ 5162 :end_if_platform_9 143 163 SET obuild_platform_result= 144 164 IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return … … 150 170 cd "%obuild_pwd_bhep_0%" 151 171 SET obuild_pwd_bhep_0= 152 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 6172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 153 173 SET obuild_cxx_optimize=-O 154 :end_if_platform_ 6174 :end_if_platform_10 155 175 SET obuild_platform_result= 156 176 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 160 180 cd "%obuild_pwd_bhep_0%" 161 181 SET obuild_pwd_bhep_0= 162 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 7182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 163 183 SET obuild_cxx_optimize=-O 164 :end_if_platform_ 7184 :end_if_platform_11 165 185 SET obuild_platform_result= 166 186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 170 190 cd "%obuild_pwd_bhep_0%" 171 191 SET obuild_pwd_bhep_0= 172 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 8192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 173 193 SET obuild_cxx_optimize=-O 174 :end_if_platform_ 8194 :end_if_platform_12 175 195 SET obuild_platform_result= 176 196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 180 200 cd "%obuild_pwd_bhep_0%" 181 201 SET obuild_pwd_bhep_0= 182 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 9202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 183 203 SET obuild_cxx_optimize=/O2 184 :end_if_platform_ 9204 :end_if_platform_13 185 205 SET obuild_platform_result= 186 206 … … 191 211 cd "%obuild_pwd_bhep_0%" 192 212 SET obuild_pwd_bhep_0= 193 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 0213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 194 214 SET obuild_cxx_debug=-g 195 :end_if_platform_1 0215 :end_if_platform_14 196 216 SET obuild_platform_result= 197 217 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 201 221 cd "%obuild_pwd_bhep_0%" 202 222 SET obuild_pwd_bhep_0= 203 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 1223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 204 224 SET obuild_cxx_debug=-g 205 :end_if_platform_1 1225 :end_if_platform_15 206 226 SET obuild_platform_result= 207 227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 211 231 cd "%obuild_pwd_bhep_0%" 212 232 SET obuild_pwd_bhep_0= 213 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 2233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16 214 234 SET obuild_cxx_debug=-g 215 :end_if_platform_1 2235 :end_if_platform_16 216 236 SET obuild_platform_result= 217 237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 221 241 cd "%obuild_pwd_bhep_0%" 222 242 SET obuild_pwd_bhep_0= 223 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 3243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17 224 244 SET obuild_cxx_debug=/ZI /Od 225 :end_if_platform_1 3245 :end_if_platform_17 226 246 SET obuild_platform_result= 227 247 … … 232 252 cd "%obuild_pwd_bhep_0%" 233 253 SET obuild_pwd_bhep_0= 234 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 4254 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 235 255 SET obuild_cxx_options=-fPIC 236 :end_if_platform_1 4256 :end_if_platform_18 237 257 SET obuild_platform_result= 238 258 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 242 262 cd "%obuild_pwd_bhep_0%" 243 263 SET obuild_pwd_bhep_0= 244 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 5264 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 245 265 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 246 :end_if_platform_1 5247 SET obuild_platform_result= 248 249 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_ 16266 :end_if_platform_19 267 SET obuild_platform_result= 268 269 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_20 250 270 SET obuild_cxx_debug_local=%obuild_cxx_debug% 251 GOTO end_if_db_build_lib_bhep_sh_ 16252 :else_if_db_build_lib_bhep_sh_ 16271 GOTO end_if_db_build_lib_bhep_sh_20 272 :else_if_db_build_lib_bhep_sh_20 253 273 SET obuild_cxx_debug_local= 254 :end_if_db_build_lib_bhep_sh_ 16255 256 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_ 17274 :end_if_db_build_lib_bhep_sh_20 275 276 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_21 257 277 SET obuild_cxx_optimize_local=%obuild_cxx_optimize% 258 GOTO end_if_opt_build_lib_bhep_sh_ 17259 :else_if_opt_build_lib_bhep_sh_ 17278 GOTO end_if_opt_build_lib_bhep_sh_21 279 :else_if_opt_build_lib_bhep_sh_21 260 280 SET obuild_cxx_optimize_local= 261 :end_if_opt_build_lib_bhep_sh_17 262 263 264 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 265 cd "%obuild_bhep_path%\%obuild_dir_bin%" 266 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 267 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 268 cd "%obuild_pwd_bhep_0%" 269 SET obuild_pwd_bhep_0= 270 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 271 SET obuild_cxx_macros=%obuild_cxx_macros% /D_HDF5USEDLL_ 272 :end_if_platform_18 273 SET obuild_platform_result= 274 275 IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%" 276 IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" ( 277 cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_bhep_path%\obuild\cpp\obuild_find.cpp" 1> NUL 278 IF EXIST obuild_find.obj DEL obuild_find.obj 279 ) 280 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 281 cd "%obuild_bhep_path%\%obuild_dir_bin%" 282 IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return 283 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe HDF5 v1r*`) DO SET obuild_HDF5_path=%%j 284 cd "%obuild_pwd_bhep_0%" 285 SET obuild_pwd_bhep_0= 286 IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return 287 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 288 cd "%obuild_bhep_path%\%obuild_dir_bin%" 289 IF NOT EXIST obuild_find.exe ECHO Program obuild_find.exe not found. && GOTO obuild_return 290 FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe zlib v1r*`) DO SET obuild_zlib_path=%%j 291 cd "%obuild_pwd_bhep_0%" 292 SET obuild_pwd_bhep_0= 293 IF NOT DEFINED obuild_zlib_path ECHO Can't find zlib package. && GOTO obuild_return 281 :end_if_opt_build_lib_bhep_sh_21 282 283 294 284 295 285 SET obuild_cxx_includes=/I"%obuild_bhep_path%" … … 301 291 cd "%obuild_pwd_bhep_0%" 302 292 SET obuild_pwd_bhep_0= 303 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 1293 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 304 294 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 305 :end_if_platform_21 306 SET obuild_platform_result= 307 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include" 308 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_zlib_path%\include" 295 :end_if_platform_24 296 SET obuild_platform_result= 297 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 298 cd "%obuild_bhep_path%\%obuild_dir_bin%" 299 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 300 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j 301 cd "%obuild_pwd_bhep_0%" 302 SET obuild_pwd_bhep_0= 303 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 304 SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include 305 :end_if_platform_25 306 SET obuild_platform_result= 309 307 310 308 IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" … … 530 528 cd "%obuild_pwd_bhep_0%" 531 529 SET obuild_pwd_bhep_0= 532 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 59530 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61 533 531 SET obuild_cxx_linker_command=c++ 534 :end_if_platform_ 59532 :end_if_platform_61 535 533 SET obuild_platform_result= 536 534 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 540 538 cd "%obuild_pwd_bhep_0%" 541 539 SET obuild_pwd_bhep_0= 542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 0540 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 543 541 SET obuild_cxx_linker_command=c++ 544 :end_if_platform_6 0542 :end_if_platform_62 545 543 SET obuild_platform_result= 546 544 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 550 548 cd "%obuild_pwd_bhep_0%" 551 549 SET obuild_pwd_bhep_0= 552 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 1550 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 553 551 SET obuild_cxx_linker_command=cxx 554 :end_if_platform_6 1552 :end_if_platform_63 555 553 SET obuild_platform_result= 556 554 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 560 558 cd "%obuild_pwd_bhep_0%" 561 559 SET obuild_pwd_bhep_0= 562 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 2560 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 563 561 SET obuild_cxx_linker_command=link.exe 564 :end_if_platform_6 2562 :end_if_platform_64 565 563 SET obuild_platform_result= 566 564 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 570 568 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 571 569 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 572 cd "%obuild_pwd_bhep_0%"573 SET obuild_pwd_bhep_0=574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63575 SET obuild_cxx_linker_debug=-g576 :end_if_platform_63577 SET obuild_platform_result=578 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d579 cd "%obuild_bhep_path%\%obuild_dir_bin%"580 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return581 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j582 cd "%obuild_pwd_bhep_0%"583 SET obuild_pwd_bhep_0=584 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64585 SET obuild_cxx_linker_debug=-g586 :end_if_platform_64587 SET obuild_platform_result=588 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d589 cd "%obuild_bhep_path%\%obuild_dir_bin%"590 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return591 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j592 570 cd "%obuild_pwd_bhep_0%" 593 571 SET obuild_pwd_bhep_0= … … 599 577 cd "%obuild_bhep_path%\%obuild_dir_bin%" 600 578 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 579 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 580 cd "%obuild_pwd_bhep_0%" 581 SET obuild_pwd_bhep_0= 582 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66 583 SET obuild_cxx_linker_debug=-g 584 :end_if_platform_66 585 SET obuild_platform_result= 586 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 587 cd "%obuild_bhep_path%\%obuild_dir_bin%" 588 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 589 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 590 cd "%obuild_pwd_bhep_0%" 591 SET obuild_pwd_bhep_0= 592 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67 593 SET obuild_cxx_linker_debug=-g 594 :end_if_platform_67 595 SET obuild_platform_result= 596 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 597 cd "%obuild_bhep_path%\%obuild_dir_bin%" 598 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 601 599 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 602 600 cd "%obuild_pwd_bhep_0%" 603 601 SET obuild_pwd_bhep_0= 604 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 6602 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68 605 603 SET obuild_cxx_linker_debug=/DEBUG 606 :end_if_platform_6 6604 :end_if_platform_68 607 605 SET obuild_platform_result= 608 606 … … 613 611 cd "%obuild_pwd_bhep_0%" 614 612 SET obuild_pwd_bhep_0= 615 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 7613 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69 616 614 SET obuild_cxx_linker_options=/nologo 617 :end_if_platform_6 7618 SET obuild_platform_result= 619 620 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_ 68615 :end_if_platform_69 616 SET obuild_platform_result= 617 618 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_70 621 619 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 622 GOTO end_if_db_build_lib_bhep_sh_ 68623 :else_if_db_build_lib_bhep_sh_ 68620 GOTO end_if_db_build_lib_bhep_sh_70 621 :else_if_db_build_lib_bhep_sh_70 624 622 SET obuild_cxx_linker_debug_local= 625 :end_if_db_build_lib_bhep_sh_ 68626 627 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_ 69623 :end_if_db_build_lib_bhep_sh_70 624 625 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_71 628 626 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 629 GOTO end_if_opt_build_lib_bhep_sh_ 69630 :else_if_opt_build_lib_bhep_sh_ 69627 GOTO end_if_opt_build_lib_bhep_sh_71 628 :else_if_opt_build_lib_bhep_sh_71 631 629 SET obuild_cxx_linker_optimize_local= 632 :end_if_opt_build_lib_bhep_sh_ 69630 :end_if_opt_build_lib_bhep_sh_71 633 631 634 632 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
Note: See TracChangeset
for help on using the changeset viewer.