- Timestamp:
- Feb 9, 2007, 4:07:36 PM (17 years ago)
- Location:
- build/bhep/trunk/obuild
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
build/bhep/trunk/obuild/DOS/build_lib_bhep.bat
r126 r127 261 261 :end_if_opt_build_lib_bhep_sh_17 262 262 263 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 264 cd "%obuild_bhep_path%\%obuild_dir_bin%" 265 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 266 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 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 267 268 cd "%obuild_pwd_bhep_0%" 268 269 SET obuild_pwd_bhep_0= 269 270 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 270 SET obuild_c _command=cc271 SET obuild_cxx_macros=%obuild_cxx_macros% /D_HDF5USEDLL_ 271 272 :end_if_platform_18 272 273 SET obuild_platform_result= 273 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 274 cd "%obuild_bhep_path%\%obuild_dir_bin%" 275 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 276 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 277 cd "%obuild_pwd_bhep_0%" 278 SET obuild_pwd_bhep_0= 279 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19 280 SET obuild_c_command=cc 281 :end_if_platform_19 282 SET obuild_platform_result= 283 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 284 cd "%obuild_bhep_path%\%obuild_dir_bin%" 285 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 286 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 287 cd "%obuild_pwd_bhep_0%" 288 SET obuild_pwd_bhep_0= 289 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20 290 SET obuild_c_command=cc 291 :end_if_platform_20 292 SET obuild_platform_result= 293 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 294 cd "%obuild_bhep_path%\%obuild_dir_bin%" 295 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 296 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 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 294 295 SET obuild_cxx_includes=/I"%obuild_bhep_path%" 296 SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep" 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 297 301 cd "%obuild_pwd_bhep_0%" 298 302 SET obuild_pwd_bhep_0= 299 303 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 300 SET obuild_c _command=cl.exe304 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include 301 305 :end_if_platform_21 302 306 SET obuild_platform_result= 303 IF "%obuild_c_command%" == "" ECHO Variable obuild_c_command not defined. && GOTO obuild_return 304 305 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 306 cd "%obuild_bhep_path%\%obuild_dir_bin%" 307 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 308 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 309 cd "%obuild_pwd_bhep_0%" 310 SET obuild_pwd_bhep_0= 311 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22 312 SET obuild_c_optimize=-O 313 :end_if_platform_22 314 SET obuild_platform_result= 315 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 316 cd "%obuild_bhep_path%\%obuild_dir_bin%" 317 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 318 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 319 cd "%obuild_pwd_bhep_0%" 320 SET obuild_pwd_bhep_0= 321 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23 322 SET obuild_c_optimize=-O 323 :end_if_platform_23 324 SET obuild_platform_result= 325 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 326 cd "%obuild_bhep_path%\%obuild_dir_bin%" 327 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 328 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 329 cd "%obuild_pwd_bhep_0%" 330 SET obuild_pwd_bhep_0= 331 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24 332 SET obuild_c_optimize=-O 333 :end_if_platform_24 334 SET obuild_platform_result= 335 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 336 cd "%obuild_bhep_path%\%obuild_dir_bin%" 337 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 338 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 339 cd "%obuild_pwd_bhep_0%" 340 SET obuild_pwd_bhep_0= 341 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25 342 SET obuild_c_optimize=/O2 343 :end_if_platform_25 344 SET obuild_platform_result= 345 346 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 347 cd "%obuild_bhep_path%\%obuild_dir_bin%" 348 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 349 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j 350 cd "%obuild_pwd_bhep_0%" 351 SET obuild_pwd_bhep_0= 352 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26 353 SET obuild_c_debug=-g 354 :end_if_platform_26 355 SET obuild_platform_result= 356 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 357 cd "%obuild_bhep_path%\%obuild_dir_bin%" 358 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 359 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 360 cd "%obuild_pwd_bhep_0%" 361 SET obuild_pwd_bhep_0= 362 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27 363 SET obuild_c_debug=-g 364 :end_if_platform_27 365 SET obuild_platform_result= 366 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 367 cd "%obuild_bhep_path%\%obuild_dir_bin%" 368 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 369 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 370 cd "%obuild_pwd_bhep_0%" 371 SET obuild_pwd_bhep_0= 372 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28 373 SET obuild_c_debug=-g 374 :end_if_platform_28 375 SET obuild_platform_result= 376 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 377 cd "%obuild_bhep_path%\%obuild_dir_bin%" 378 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 379 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 380 cd "%obuild_pwd_bhep_0%" 381 SET obuild_pwd_bhep_0= 382 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29 383 SET obuild_c_debug=/ZI /Od 384 :end_if_platform_29 385 SET obuild_platform_result= 386 387 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 388 cd "%obuild_bhep_path%\%obuild_dir_bin%" 389 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 390 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j 391 cd "%obuild_pwd_bhep_0%" 392 SET obuild_pwd_bhep_0= 393 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30 394 SET obuild_c_options=-fPIC 395 :end_if_platform_30 396 SET obuild_platform_result= 397 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 398 cd "%obuild_bhep_path%\%obuild_dir_bin%" 399 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 400 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j 401 cd "%obuild_pwd_bhep_0%" 402 SET obuild_pwd_bhep_0= 403 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31 404 SET obuild_c_options=-std 405 :end_if_platform_31 406 SET obuild_platform_result= 407 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 408 cd "%obuild_bhep_path%\%obuild_dir_bin%" 409 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 410 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 411 cd "%obuild_pwd_bhep_0%" 412 SET obuild_pwd_bhep_0= 413 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32 414 SET obuild_c_options=/nologo /DWIN32 /MD /W3 415 :end_if_platform_32 416 SET obuild_platform_result= 417 418 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_33 419 SET obuild_c_debug_local=%obuild_c_debug% 420 GOTO end_if_db_build_lib_bhep_sh_33 421 :else_if_db_build_lib_bhep_sh_33 422 SET obuild_c_debug_local= 423 :end_if_db_build_lib_bhep_sh_33 424 425 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_34 426 SET obuild_c_optimize_local=%obuild_c_optimize% 427 GOTO end_if_opt_build_lib_bhep_sh_34 428 :else_if_opt_build_lib_bhep_sh_34 429 SET obuild_c_optimize_local= 430 :end_if_opt_build_lib_bhep_sh_34 431 432 433 434 SET obuild_cxx_includes=/I"%obuild_bhep_path%" 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" 435 309 436 310 IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" … … 643 517 644 518 cd "%obuild_bhep_path%\%obuild_dir_bin%" 645 %obuild_c _command% /c %obuild_c_debug_local% %obuild_c_optimize_local% %obuild_c_options% %obuild_c_macros% %obuild_c_includes% /Fo.\lib_bhep\EventManager.obj "..\source\tools\EventManager.c" 1> cl_exe_error519 %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\EventManager.obj /Tp"..\source\tools\EventManager.cpp" 1> cl_exe_error 646 520 @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return 647 521 @IF NOT ERRORLEVEL 1 @DEL cl_exe_error … … 656 530 cd "%obuild_pwd_bhep_0%" 657 531 SET obuild_pwd_bhep_0= 658 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 71532 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 659 533 SET obuild_cxx_linker_command=c++ 660 :end_if_platform_ 71534 :end_if_platform_59 661 535 SET obuild_platform_result= 662 536 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 666 540 cd "%obuild_pwd_bhep_0%" 667 541 SET obuild_pwd_bhep_0= 668 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 72542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60 669 543 SET obuild_cxx_linker_command=c++ 670 :end_if_platform_ 72544 :end_if_platform_60 671 545 SET obuild_platform_result= 672 546 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 676 550 cd "%obuild_pwd_bhep_0%" 677 551 SET obuild_pwd_bhep_0= 678 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 73552 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61 679 553 SET obuild_cxx_linker_command=cxx 680 :end_if_platform_ 73681 SET obuild_platform_result= 682 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 683 cd "%obuild_bhep_path%\%obuild_dir_bin%" 684 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 685 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 686 cd "%obuild_pwd_bhep_0%" 687 SET obuild_pwd_bhep_0= 688 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 74554 :end_if_platform_61 555 SET obuild_platform_result= 556 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 557 cd "%obuild_bhep_path%\%obuild_dir_bin%" 558 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 559 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 560 cd "%obuild_pwd_bhep_0%" 561 SET obuild_pwd_bhep_0= 562 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 689 563 SET obuild_cxx_linker_command=link.exe 690 :end_if_platform_ 74564 :end_if_platform_62 691 565 SET obuild_platform_result= 692 566 IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return … … 698 572 cd "%obuild_pwd_bhep_0%" 699 573 SET obuild_pwd_bhep_0= 700 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 75574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 701 575 SET obuild_cxx_linker_debug=-g 702 :end_if_platform_ 75576 :end_if_platform_63 703 577 SET obuild_platform_result= 704 578 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 708 582 cd "%obuild_pwd_bhep_0%" 709 583 SET obuild_pwd_bhep_0= 710 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 76584 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 711 585 SET obuild_cxx_linker_debug=-g 712 :end_if_platform_ 76586 :end_if_platform_64 713 587 SET obuild_platform_result= 714 588 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d … … 718 592 cd "%obuild_pwd_bhep_0%" 719 593 SET obuild_pwd_bhep_0= 720 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 77594 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65 721 595 SET obuild_cxx_linker_debug=-g 722 :end_if_platform_ 77723 SET obuild_platform_result= 724 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 725 cd "%obuild_bhep_path%\%obuild_dir_bin%" 726 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 727 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 728 cd "%obuild_pwd_bhep_0%" 729 SET obuild_pwd_bhep_0= 730 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 78596 :end_if_platform_65 597 SET obuild_platform_result= 598 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 599 cd "%obuild_bhep_path%\%obuild_dir_bin%" 600 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 601 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 602 cd "%obuild_pwd_bhep_0%" 603 SET obuild_pwd_bhep_0= 604 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66 731 605 SET obuild_cxx_linker_debug=/DEBUG 732 :end_if_platform_ 78733 SET obuild_platform_result= 734 735 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 736 cd "%obuild_bhep_path%\%obuild_dir_bin%" 737 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 738 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 739 cd "%obuild_pwd_bhep_0%" 740 SET obuild_pwd_bhep_0= 741 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_ 79606 :end_if_platform_66 607 SET obuild_platform_result= 608 609 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d 610 cd "%obuild_bhep_path%\%obuild_dir_bin%" 611 IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return 612 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j 613 cd "%obuild_pwd_bhep_0%" 614 SET obuild_pwd_bhep_0= 615 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67 742 616 SET obuild_cxx_linker_options=/nologo 743 :end_if_platform_ 79744 SET obuild_platform_result= 745 746 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_ 80617 :end_if_platform_67 618 SET obuild_platform_result= 619 620 IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_68 747 621 SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% 748 GOTO end_if_db_build_lib_bhep_sh_ 80749 :else_if_db_build_lib_bhep_sh_ 80622 GOTO end_if_db_build_lib_bhep_sh_68 623 :else_if_db_build_lib_bhep_sh_68 750 624 SET obuild_cxx_linker_debug_local= 751 :end_if_db_build_lib_bhep_sh_ 80752 753 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_ 81625 :end_if_db_build_lib_bhep_sh_68 626 627 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_69 754 628 SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% 755 GOTO end_if_opt_build_lib_bhep_sh_ 81756 :else_if_opt_build_lib_bhep_sh_ 81629 GOTO end_if_opt_build_lib_bhep_sh_69 630 :else_if_opt_build_lib_bhep_sh_69 757 631 SET obuild_cxx_linker_optimize_local= 758 :end_if_opt_build_lib_bhep_sh_ 81632 :end_if_opt_build_lib_bhep_sh_69 759 633 760 634 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d -
build/bhep/trunk/obuild/sh/build_lib_bhep
r126 r127 257 257 obuild_cxx_optimize_local= 258 258 fi 259 if [ "${obuild_platform_exe}" = "" ] ; then 260 echo "Variable obuild_platform_exe not defined." 261 exit 262 fi 263 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 264 if [ ${obuild_platform_result} = yes ] ; then 265 obuild_c_command="cc" 266 fi 267 unset obuild_platform_result 268 if [ "${obuild_platform_exe}" = "" ] ; then 269 echo "Variable obuild_platform_exe not defined." 270 exit 271 fi 272 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 273 if [ ${obuild_platform_result} = yes ] ; then 274 obuild_c_command="cc" 275 fi 276 unset obuild_platform_result 277 if [ "${obuild_platform_exe}" = "" ] ; then 278 echo "Variable obuild_platform_exe not defined." 279 exit 280 fi 281 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` 282 if [ ${obuild_platform_result} = yes ] ; then 283 obuild_c_command="cc" 284 fi 285 unset obuild_platform_result 259 286 260 if [ "${obuild_platform_exe}" = "" ] ; then 287 261 echo "Variable obuild_platform_exe not defined." … … 290 264 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 291 265 if [ ${obuild_platform_result} = yes ] ; then 292 obuild_c_command="cl.exe" 293 fi 294 unset obuild_platform_result 295 if [ "${obuild_c_command}" = "" ] ; then 296 echo "Variable obuild_c_command not defined." 297 exit 298 fi 299 300 if [ "${obuild_platform_exe}" = "" ] ; then 301 echo "Variable obuild_platform_exe not defined." 302 exit 303 fi 304 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 305 if [ ${obuild_platform_result} = yes ] ; then 306 obuild_c_optimize="-O" 307 fi 308 unset obuild_platform_result 309 if [ "${obuild_platform_exe}" = "" ] ; then 310 echo "Variable obuild_platform_exe not defined." 311 exit 312 fi 313 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 314 if [ ${obuild_platform_result} = yes ] ; then 315 obuild_c_optimize="-O" 316 fi 317 unset obuild_platform_result 318 if [ "${obuild_platform_exe}" = "" ] ; then 319 echo "Variable obuild_platform_exe not defined." 320 exit 321 fi 322 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` 323 if [ ${obuild_platform_result} = yes ] ; then 324 obuild_c_optimize="-O" 325 fi 326 unset obuild_platform_result 327 if [ "${obuild_platform_exe}" = "" ] ; then 328 echo "Variable obuild_platform_exe not defined." 329 exit 330 fi 331 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 332 if [ ${obuild_platform_result} = yes ] ; then 333 obuild_c_optimize="/O2" 334 fi 335 unset obuild_platform_result 336 337 if [ "${obuild_platform_exe}" = "" ] ; then 338 echo "Variable obuild_platform_exe not defined." 339 exit 340 fi 341 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'` 342 if [ ${obuild_platform_result} = yes ] ; then 343 obuild_c_debug="-g" 344 fi 345 unset obuild_platform_result 346 if [ "${obuild_platform_exe}" = "" ] ; then 347 echo "Variable obuild_platform_exe not defined." 348 exit 349 fi 350 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 351 if [ ${obuild_platform_result} = yes ] ; then 352 obuild_c_debug="-g" 353 fi 354 unset obuild_platform_result 355 if [ "${obuild_platform_exe}" = "" ] ; then 356 echo "Variable obuild_platform_exe not defined." 357 exit 358 fi 359 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` 360 if [ ${obuild_platform_result} = yes ] ; then 361 obuild_c_debug="-g" 362 fi 363 unset obuild_platform_result 364 if [ "${obuild_platform_exe}" = "" ] ; then 365 echo "Variable obuild_platform_exe not defined." 366 exit 367 fi 368 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 369 if [ ${obuild_platform_result} = yes ] ; then 370 obuild_c_debug="/ZI /Od" 371 fi 372 unset obuild_platform_result 373 374 if [ "${obuild_platform_exe}" = "" ] ; then 375 echo "Variable obuild_platform_exe not defined." 376 exit 377 fi 378 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Linux'` 379 if [ ${obuild_platform_result} = yes ] ; then 380 obuild_c_options="-fPIC" 381 fi 382 unset obuild_platform_result 383 if [ "${obuild_platform_exe}" = "" ] ; then 384 echo "Variable obuild_platform_exe not defined." 385 exit 386 fi 387 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'OSF1'` 388 if [ ${obuild_platform_result} = yes ] ; then 389 obuild_c_options="-std" 390 fi 391 unset obuild_platform_result 392 if [ "${obuild_platform_exe}" = "" ] ; then 393 echo "Variable obuild_platform_exe not defined." 394 exit 395 fi 396 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Windows_NT'` 397 if [ ${obuild_platform_result} = yes ] ; then 398 obuild_c_options="/nologo /DWIN32 /MD /W3" 399 fi 400 unset obuild_platform_result 401 402 if [ ${obuild_debug} = yes ] ; then 403 obuild_c_debug_local=${obuild_c_debug} 404 else 405 obuild_c_debug_local= 406 fi 407 408 if [ ${obuild_optimize} = yes ] ; then 409 obuild_c_optimize_local=${obuild_c_optimize} 410 else 411 obuild_c_optimize_local= 412 fi 413 266 obuild_cxx_macros="${obuild_cxx_macros} -D_HDF5USEDLL_" 267 fi 268 unset obuild_platform_result 269 270 if [ ! -e "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" ] ; then 271 if [ ! -e "${obuild_bhep_path}/obuild/cpp/obuild_find.cpp" ] ; then 272 echo "Program source obuild_find.cpp not found." 273 exit 274 fi 275 if [ "${obuild_cxx_command}" = "" ] ; then 276 if [ "${OBUILD_CXX}" != "" ] ; then 277 obuild_find_compiler=${OBUILD_CXX} 278 else 279 obuild_find_compiler=c++ 280 fi 281 else 282 obuild_find_compiler=${obuild_cxx_command} 283 fi 284 ${obuild_find_compiler} -o "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" "${obuild_bhep_path}/obuild/cpp/obuild_find.cpp" 285 unset obuild_find_compiler 286 if [ ! -e "${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" ] ; then 287 echo "Program obuild_find not found." 288 exit 289 fi 290 fi 291 obuild_find_exe="${obuild_bhep_path}/${obuild_dir_bin}/obuild_find" 292 if [ "${obuild_find_exe}" = "" ] ; then 293 echo "Variable obuild_find_exe not defined." 294 exit 295 fi 296 obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'` 297 if [ "${obuild_HDF5_path}" = "" ] ; then 298 echo "Can't find HDF5 package." 299 exit 300 fi 301 if [ "${obuild_find_exe}" = "" ] ; then 302 echo "Variable obuild_find_exe not defined." 303 exit 304 fi 305 obuild_zlib_path=`"${obuild_find_exe}" zlib 'v1r*'` 306 if [ "${obuild_zlib_path}" = "" ] ; then 307 echo "Can't find zlib package." 308 exit 309 fi 414 310 415 311 obuild_cxx_includes="-I\"${obuild_bhep_path}\"" 312 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}/bhep\"" 313 if [ "${obuild_platform_exe}" = "" ] ; then 314 echo "Variable obuild_platform_exe not defined." 315 exit 316 fi 317 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'` 318 if [ ${obuild_platform_result} = yes ] ; then 319 obuild_cxx_includes="${obuild_cxx_includes} -I${CLHEP_home}/include" 320 fi 321 unset obuild_platform_result 322 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_HDF5_path}/include\"" 323 obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_zlib_path}/include\"" 416 324 417 325 if [ ${obuild_dir_bin_o_cleanup} = yes ] ; then … … 596 504 597 505 cd "${obuild_bhep_path}/${obuild_dir_bin}" 598 eval ${obuild_c _command} -c ${obuild_c_debug_local} ${obuild_c_optimize_local} ${obuild_c_options} ${obuild_c_macros} ${obuild_c_includes} -o ./lib_bhep/EventManager.o \"../source/tools/EventManager.c\"506 eval ${obuild_cxx_command} -c ${obuild_cxx_debug_local} ${obuild_cxx_optimize_local} ${obuild_cxx_options} ${obuild_cxx_macros} ${obuild_cxx_includes} -o ./lib_bhep/EventManager.o \"../source/tools/EventManager.cpp\" 599 507 obuild_status=$?;if [ ${obuild_status} != 0 ] ; then exit ${obuild_status};fi 600 508 cd "${obuild_bhep_path}/obuild" -
build/bhep/trunk/obuild/this.obuild
r126 r127 9 9 <reference package="foreign" version="v1r*" file="CLHEP.obuild"/> 10 10 11 <!--12 <reference package="bhep" version="v1r1" file="obuild/snova.obuild"/>13 14 <reference package="G4Lab" version="v8r*" file="obuild/export.obuild"/>15 16 11 <use name="HDF5" version="v1r*"> 17 12 <c_include>include</c_include> 18 13 <lib>osc_HDF5</lib> 19 14 </use> 20 --> 15 16 <use name="zlib" version="v1r*"> 17 <c_include>include</c_include> 18 <lib>osc_z</lib> 19 </use> 21 20 22 21 <!-- this : --> … … 57 56 <file>../source/histos/axis.cpp</file> 58 57 <file>../source/histos/histogram.cpp</file> 59 <file>../source/tools/EventManager.c </file>58 <file>../source/tools/EventManager.cpp</file> 60 59 61 60 <cxx_include>${obuild_bhep_path}</cxx_include> 61 <cxx_include>${obuild_bhep_path}/bhep</cxx_include> 62 62 63 63 <!-- not this : --> 64 <cxx_include copy="cxx_include" from="CLHEP"/> 64 65 65 <!-- 66 <cxx_include copy="cxx_include" from="Lib"/> 67 <cxx_include copy="cxx_include" from="Slash"/> 68 <cxx_include copy="cxx_include" from="AIDA"/> 69 <cxx_include copy="cxx_include" from="OnX"/> 70 <cxx_include copy="cxx_include" from="G4Lab"/> 71 <cxx_include copy="cxx_include" from="BatchLab"/> 72 73 <cxx_include copy="cxx_include" from="HEPVis"/> 74 <cxx_include copy="cxx_include" from="CoinGL"/> 75 76 <lib copy="lib_LibXML" from="Lib"/> 77 <lib copy="lib" from="expat"/> 78 <lib copy="lib_LibZip" from="Lib"/> 79 <lib copy="lib" from="zlib"/> 80 <lib copy="lib_LibUtils" from="Lib"/> 81 82 <lib copy="lib_HEPVisGeometry" from="HEPVis"/> 83 <lib copy="lib_HEPVisUtils" from="HEPVis"/> 84 <lib copy="lib" from="jpeg"/> 85 <lib copy="lib" from="dvi2bitmap"/> 86 <lib copy="lib" from="freetype2"/> 87 <lib copy="lib" from="CoinGL"/> 88 --> 66 <cxx_macro platform="Windows_NT" name="_HDF5USEDLL_"/> 67 <cxx_include copy="c_include" from="HDF5"/> 68 <cxx_include copy="c_include" from="zlib"/> 89 69 </library> 90 70
Note: See TracChangeset
for help on using the changeset viewer.