[126] | 1 | @ECHO OFF |
---|
| 2 | SETLOCAL |
---|
| 3 | |
---|
| 4 | REM # |
---|
| 5 | REM # File produced by the obuild tool version 1.0 |
---|
| 6 | REM # for the package bhep with version v1r4p2. |
---|
| 7 | REM # |
---|
| 8 | |
---|
| 9 | REM #//////////////////////////////////////////////// |
---|
| 10 | REM # Usage : |
---|
| 11 | REM # DOS> CD some_path\pack\version\obuild |
---|
| 12 | REM # DOS> DOS\build_bhep |
---|
| 13 | REM # |
---|
| 14 | REM #//////////////////////////////////////////////// |
---|
| 15 | |
---|
| 16 | REM #//////////////////////////////////////////////// |
---|
| 17 | REM #/// Get path of this file : |
---|
| 18 | REM #//////////////////////////////////////////////// |
---|
| 19 | SET obuild_bhep_path=%~dp0 |
---|
| 20 | REM # Remove ending \obuild\DOS\ |
---|
| 21 | SET obuild_bhep_path=%obuild_bhep_path:~0,-12% |
---|
| 22 | |
---|
| 23 | REM #//////////////////////////////////////////////// |
---|
| 24 | REM #/// Treat arguments : |
---|
| 25 | REM #//////////////////////////////////////////////// |
---|
| 26 | |
---|
| 27 | SET obuild_verbose=no |
---|
| 28 | SET obuild_debug=no |
---|
| 29 | SET obuild_optimize=yes |
---|
| 30 | SET obuild_set_x=no |
---|
| 31 | |
---|
| 32 | :next_arg |
---|
| 33 | IF "%1%" == "" GOTO end_args |
---|
| 34 | |
---|
| 35 | IF NOT "%1%" == "-v" GOTO end_if_v |
---|
| 36 | SET obuild_verbose=yes |
---|
| 37 | SHIFT |
---|
| 38 | GOTO next_arg |
---|
| 39 | :end_if_v |
---|
| 40 | |
---|
| 41 | IF NOT "%1%" == "-g" GOTO end_if_g |
---|
| 42 | SET obuild_debug=yes |
---|
| 43 | SHIFT |
---|
| 44 | GOTO next_arg |
---|
| 45 | :end_if_g |
---|
| 46 | |
---|
| 47 | IF NOT "%1%" == "-x" GOTO end_if_x |
---|
| 48 | SET obuild_set_x=yes |
---|
| 49 | SHIFT |
---|
| 50 | GOTO next_arg |
---|
| 51 | :end_if_x |
---|
| 52 | |
---|
| 53 | :end_args |
---|
| 54 | |
---|
| 55 | REM #//////////////////////////////////////////////// |
---|
| 56 | REM #/// End arguments. |
---|
| 57 | REM #//////////////////////////////////////////////// |
---|
| 58 | |
---|
| 59 | IF %obuild_set_x% == yes ECHO ON |
---|
| 60 | |
---|
| 61 | IF %obuild_debug% == yes SET obuild_optimize=no |
---|
| 62 | |
---|
| 63 | IF "%OBUILD_PLATFORM%" == "" ( |
---|
| 64 | IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return |
---|
| 65 | SET obuild_platform=%OS% |
---|
| 66 | ) ELSE ( |
---|
| 67 | SET obuild_platform=%OBUILD_PLATFORM% |
---|
| 68 | ) |
---|
| 69 | |
---|
| 70 | IF "%obuild_platform%" == "" ( |
---|
| 71 | ECHO obuild_platform variable not defined. |
---|
| 72 | GOTO obuild_return |
---|
| 73 | ) |
---|
| 74 | |
---|
| 75 | IF "%OBUILD_DIR_BIN%" == "" ( |
---|
| 76 | SET obuild_dir_bin=%obuild_platform%_obuild |
---|
| 77 | ) ELSE ( |
---|
| 78 | SET obuild_dir_bin=%OBUILD_DIR_BIN% |
---|
| 79 | ) |
---|
| 80 | |
---|
| 81 | IF "%obuild_dir_bin%" == "" ( |
---|
| 82 | ECHO obuild_dir_bin variable not defined. |
---|
| 83 | GOTO obuild_return |
---|
| 84 | ) |
---|
| 85 | |
---|
| 86 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 87 | |
---|
| 88 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 89 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_platform.exe" ( |
---|
| 90 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_bhep_path%\obuild\cpp\obuild_platform.cpp" 1> NUL |
---|
| 91 | IF EXIST obuild_platform.obj DEL obuild_platform.obj |
---|
| 92 | ) |
---|
| 93 | |
---|
| 94 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 95 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 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 |
---|
| 98 | cd "%obuild_pwd_bhep_0%" |
---|
| 99 | SET obuild_pwd_bhep_0= |
---|
| 100 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1 |
---|
| 101 | SET CLHEP_home=/usr/local/CLHEP/2.0.3.1 |
---|
| 102 | :end_if_platform_1 |
---|
| 103 | SET obuild_platform_result= |
---|
| 104 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 105 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 106 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 107 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 108 | cd "%obuild_pwd_bhep_0%" |
---|
| 109 | SET obuild_pwd_bhep_0= |
---|
| 110 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2 |
---|
| 111 | SET obuild_cxx_command=c++ |
---|
| 112 | :end_if_platform_2 |
---|
| 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% Linux`) 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_3 |
---|
| 121 | SET obuild_cxx_command=c++ |
---|
| 122 | :end_if_platform_3 |
---|
| 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 |
---|
| 127 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 128 | cd "%obuild_pwd_bhep_0%" |
---|
| 129 | SET obuild_pwd_bhep_0= |
---|
| 130 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4 |
---|
| 131 | SET obuild_cxx_command=cxx |
---|
| 132 | :end_if_platform_4 |
---|
| 133 | SET obuild_platform_result= |
---|
| 134 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 135 | cd "%obuild_bhep_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 138 | cd "%obuild_pwd_bhep_0%" |
---|
| 139 | SET obuild_pwd_bhep_0= |
---|
| 140 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5 |
---|
| 141 | SET obuild_cxx_command=cl.exe |
---|
| 142 | :end_if_platform_5 |
---|
| 143 | SET obuild_platform_result= |
---|
| 144 | IF "%obuild_cxx_command%" == "" ECHO Variable obuild_cxx_command not defined. && GOTO obuild_return |
---|
| 145 | |
---|
| 146 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 147 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 148 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 149 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 150 | cd "%obuild_pwd_bhep_0%" |
---|
| 151 | SET obuild_pwd_bhep_0= |
---|
| 152 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6 |
---|
| 153 | SET obuild_cxx_optimize=-O |
---|
| 154 | :end_if_platform_6 |
---|
| 155 | SET obuild_platform_result= |
---|
| 156 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 157 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 158 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 159 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 160 | cd "%obuild_pwd_bhep_0%" |
---|
| 161 | SET obuild_pwd_bhep_0= |
---|
| 162 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7 |
---|
| 163 | SET obuild_cxx_optimize=-O |
---|
| 164 | :end_if_platform_7 |
---|
| 165 | SET obuild_platform_result= |
---|
| 166 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 167 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 168 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 169 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 170 | cd "%obuild_pwd_bhep_0%" |
---|
| 171 | SET obuild_pwd_bhep_0= |
---|
| 172 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8 |
---|
| 173 | SET obuild_cxx_optimize=-O |
---|
| 174 | :end_if_platform_8 |
---|
| 175 | SET obuild_platform_result= |
---|
| 176 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 177 | cd "%obuild_bhep_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 180 | cd "%obuild_pwd_bhep_0%" |
---|
| 181 | SET obuild_pwd_bhep_0= |
---|
| 182 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9 |
---|
| 183 | SET obuild_cxx_optimize=/O2 |
---|
| 184 | :end_if_platform_9 |
---|
| 185 | SET obuild_platform_result= |
---|
| 186 | |
---|
| 187 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 188 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 189 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 190 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 191 | cd "%obuild_pwd_bhep_0%" |
---|
| 192 | SET obuild_pwd_bhep_0= |
---|
| 193 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10 |
---|
| 194 | SET obuild_cxx_debug=-g |
---|
| 195 | :end_if_platform_10 |
---|
| 196 | SET obuild_platform_result= |
---|
| 197 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 198 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 199 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 200 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 201 | cd "%obuild_pwd_bhep_0%" |
---|
| 202 | SET obuild_pwd_bhep_0= |
---|
| 203 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11 |
---|
| 204 | SET obuild_cxx_debug=-g |
---|
| 205 | :end_if_platform_11 |
---|
| 206 | SET obuild_platform_result= |
---|
| 207 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 208 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 209 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 210 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 211 | cd "%obuild_pwd_bhep_0%" |
---|
| 212 | SET obuild_pwd_bhep_0= |
---|
| 213 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12 |
---|
| 214 | SET obuild_cxx_debug=-g |
---|
| 215 | :end_if_platform_12 |
---|
| 216 | SET obuild_platform_result= |
---|
| 217 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 218 | cd "%obuild_bhep_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% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 221 | cd "%obuild_pwd_bhep_0%" |
---|
| 222 | SET obuild_pwd_bhep_0= |
---|
| 223 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13 |
---|
| 224 | SET obuild_cxx_debug=/ZI /Od |
---|
| 225 | :end_if_platform_13 |
---|
| 226 | SET obuild_platform_result= |
---|
| 227 | |
---|
| 228 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 229 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 230 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 231 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 232 | cd "%obuild_pwd_bhep_0%" |
---|
| 233 | SET obuild_pwd_bhep_0= |
---|
| 234 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14 |
---|
| 235 | SET obuild_cxx_options=-fPIC |
---|
| 236 | :end_if_platform_14 |
---|
| 237 | SET obuild_platform_result= |
---|
| 238 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 239 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 240 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 241 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
| 242 | cd "%obuild_pwd_bhep_0%" |
---|
| 243 | SET obuild_pwd_bhep_0= |
---|
| 244 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15 |
---|
| 245 | SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3 |
---|
| 246 | :end_if_platform_15 |
---|
| 247 | SET obuild_platform_result= |
---|
| 248 | |
---|
| 249 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_16 |
---|
| 250 | SET obuild_cxx_debug_local=%obuild_cxx_debug% |
---|
| 251 | GOTO end_if_db_build_lib_bhep_sh_16 |
---|
| 252 | :else_if_db_build_lib_bhep_sh_16 |
---|
| 253 | SET obuild_cxx_debug_local= |
---|
| 254 | :end_if_db_build_lib_bhep_sh_16 |
---|
| 255 | |
---|
| 256 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_17 |
---|
| 257 | SET obuild_cxx_optimize_local=%obuild_cxx_optimize% |
---|
| 258 | GOTO end_if_opt_build_lib_bhep_sh_17 |
---|
| 259 | :else_if_opt_build_lib_bhep_sh_17 |
---|
| 260 | SET obuild_cxx_optimize_local= |
---|
| 261 | :end_if_opt_build_lib_bhep_sh_17 |
---|
| 262 | |
---|
[127] | 263 | |
---|
[126] | 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 |
---|
[127] | 267 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j |
---|
[126] | 268 | cd "%obuild_pwd_bhep_0%" |
---|
| 269 | SET obuild_pwd_bhep_0= |
---|
| 270 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
[127] | 271 | SET obuild_cxx_macros=%obuild_cxx_macros% /D_HDF5USEDLL_ |
---|
[126] | 272 | :end_if_platform_18 |
---|
| 273 | SET obuild_platform_result= |
---|
[127] | 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 | ) |
---|
[126] | 280 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 281 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
[127] | 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 |
---|
[126] | 284 | cd "%obuild_pwd_bhep_0%" |
---|
| 285 | SET obuild_pwd_bhep_0= |
---|
[127] | 286 | IF NOT DEFINED obuild_HDF5_path ECHO Can't find HDF5 package. && GOTO obuild_return |
---|
[126] | 287 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 288 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
[127] | 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 |
---|
[126] | 291 | cd "%obuild_pwd_bhep_0%" |
---|
| 292 | SET obuild_pwd_bhep_0= |
---|
[127] | 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" |
---|
[126] | 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 |
---|
[127] | 300 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j |
---|
[126] | 301 | cd "%obuild_pwd_bhep_0%" |
---|
| 302 | SET obuild_pwd_bhep_0= |
---|
| 303 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
[127] | 304 | SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include |
---|
[126] | 305 | :end_if_platform_21 |
---|
| 306 | SET obuild_platform_result= |
---|
[127] | 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" |
---|
[126] | 309 | |
---|
| 310 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" |
---|
| 311 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" |
---|
| 312 | |
---|
| 313 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 314 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 315 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\version.obj /Tp"..\source\version.cpp" 1> cl_exe_error |
---|
| 316 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 317 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 318 | cd "%obuild_bhep_path%\obuild" |
---|
| 319 | |
---|
| 320 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 321 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event.obj /Tp"..\source\base\event.cpp" 1> cl_exe_error |
---|
| 322 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 323 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 324 | cd "%obuild_bhep_path%\obuild" |
---|
| 325 | |
---|
| 326 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 327 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit.obj /Tp"..\source\base\hit.cpp" 1> cl_exe_error |
---|
| 328 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 329 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 330 | cd "%obuild_bhep_path%\obuild" |
---|
| 331 | |
---|
| 332 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 333 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle.obj /Tp"..\source\base\mparticle.cpp" 1> cl_exe_error |
---|
| 334 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 335 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 336 | cd "%obuild_bhep_path%\obuild" |
---|
| 337 | |
---|
| 338 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 339 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle.obj /Tp"..\source\base\particle.cpp" 1> cl_exe_error |
---|
| 340 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 341 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 342 | cd "%obuild_bhep_path%\obuild" |
---|
| 343 | |
---|
| 344 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 345 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle.obj /Tp"..\source\base\sparticle.cpp" 1> cl_exe_error |
---|
| 346 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 347 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 348 | cd "%obuild_bhep_path%\obuild" |
---|
| 349 | |
---|
| 350 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 351 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track.obj /Tp"..\source\base\track.cpp" 1> cl_exe_error |
---|
| 352 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 353 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 354 | cd "%obuild_bhep_path%\obuild" |
---|
| 355 | |
---|
| 356 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 357 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\material.obj /Tp"..\source\util\material.cpp" 1> cl_exe_error |
---|
| 358 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 359 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 360 | cd "%obuild_bhep_path%\obuild" |
---|
| 361 | |
---|
| 362 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 363 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_definition.obj /Tp"..\source\util\particle_definition.cpp" 1> cl_exe_error |
---|
| 364 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 365 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 366 | cd "%obuild_bhep_path%\obuild" |
---|
| 367 | |
---|
| 368 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 369 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\ray.obj /Tp"..\source\util\ray.cpp" 1> cl_exe_error |
---|
| 370 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 371 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 372 | cd "%obuild_bhep_path%\obuild" |
---|
| 373 | |
---|
| 374 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 375 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event_cvt.obj /Tp"..\source\converters\event_cvt.cpp" 1> cl_exe_error |
---|
| 376 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 377 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 378 | cd "%obuild_bhep_path%\obuild" |
---|
| 379 | |
---|
| 380 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 381 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit_cvt.obj /Tp"..\source\converters\hit_cvt.cpp" 1> cl_exe_error |
---|
| 382 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 383 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 384 | cd "%obuild_bhep_path%\obuild" |
---|
| 385 | |
---|
| 386 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 387 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle_cvt.obj /Tp"..\source\converters\mparticle_cvt.cpp" 1> cl_exe_error |
---|
| 388 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 389 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 390 | cd "%obuild_bhep_path%\obuild" |
---|
| 391 | |
---|
| 392 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 393 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_cvt.obj /Tp"..\source\converters\particle_cvt.cpp" 1> cl_exe_error |
---|
| 394 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 395 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 396 | cd "%obuild_bhep_path%\obuild" |
---|
| 397 | |
---|
| 398 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 399 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle_cvt.obj /Tp"..\source\converters\sparticle_cvt.cpp" 1> cl_exe_error |
---|
| 400 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 401 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 402 | cd "%obuild_bhep_path%\obuild" |
---|
| 403 | |
---|
| 404 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 405 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track_cvt.obj /Tp"..\source\converters\track_cvt.cpp" 1> cl_exe_error |
---|
| 406 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 407 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 408 | cd "%obuild_bhep_path%\obuild" |
---|
| 409 | |
---|
| 410 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 411 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\base_reader.obj /Tp"..\source\manager\base_reader.cpp" 1> cl_exe_error |
---|
| 412 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 413 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 414 | cd "%obuild_bhep_path%\obuild" |
---|
| 415 | |
---|
| 416 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 417 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\bhep_svc.obj /Tp"..\source\manager\bhep_svc.cpp" 1> cl_exe_error |
---|
| 418 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 419 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 420 | cd "%obuild_bhep_path%\obuild" |
---|
| 421 | |
---|
| 422 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 423 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\brw.obj /Tp"..\source\manager\brw.cpp" 1> cl_exe_error |
---|
| 424 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 425 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 426 | cd "%obuild_bhep_path%\obuild" |
---|
| 427 | |
---|
| 428 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 429 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\converter_svc.obj /Tp"..\source\manager\converter_svc.cpp" 1> cl_exe_error |
---|
| 430 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 431 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 432 | cd "%obuild_bhep_path%\obuild" |
---|
| 433 | |
---|
| 434 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 435 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_reader.obj /Tp"..\source\manager\random_reader.cpp" 1> cl_exe_error |
---|
| 436 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 437 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 438 | cd "%obuild_bhep_path%\obuild" |
---|
| 439 | |
---|
| 440 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 441 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_writer.obj /Tp"..\source\manager\random_writer.cpp" 1> cl_exe_error |
---|
| 442 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 443 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 444 | cd "%obuild_bhep_path%\obuild" |
---|
| 445 | |
---|
| 446 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 447 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\reader_gz.obj /Tp"..\source\manager\reader_gz.cpp" 1> cl_exe_error |
---|
| 448 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 449 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 450 | cd "%obuild_bhep_path%\obuild" |
---|
| 451 | |
---|
| 452 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 453 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\reader_hdf5.obj /Tp"..\source\manager\reader_hdf5.cpp" 1> cl_exe_error |
---|
| 454 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 455 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 456 | cd "%obuild_bhep_path%\obuild" |
---|
| 457 | |
---|
| 458 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 459 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\reader_txt.obj /Tp"..\source\manager\reader_txt.cpp" 1> cl_exe_error |
---|
| 460 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 461 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 462 | cd "%obuild_bhep_path%\obuild" |
---|
| 463 | |
---|
| 464 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 465 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sequential_reader.obj /Tp"..\source\manager\sequential_reader.cpp" 1> cl_exe_error |
---|
| 466 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 467 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 468 | cd "%obuild_bhep_path%\obuild" |
---|
| 469 | |
---|
| 470 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 471 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sequential_writer.obj /Tp"..\source\manager\sequential_writer.cpp" 1> cl_exe_error |
---|
| 472 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 473 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 474 | cd "%obuild_bhep_path%\obuild" |
---|
| 475 | |
---|
| 476 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 477 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\writer_gz.obj /Tp"..\source\manager\writer_gz.cpp" 1> cl_exe_error |
---|
| 478 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 479 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 480 | cd "%obuild_bhep_path%\obuild" |
---|
| 481 | |
---|
| 482 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 483 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\writer_hdf5.obj /Tp"..\source\manager\writer_hdf5.cpp" 1> cl_exe_error |
---|
| 484 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 485 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 486 | cd "%obuild_bhep_path%\obuild" |
---|
| 487 | |
---|
| 488 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 489 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\writer_txt.obj /Tp"..\source\manager\writer_txt.cpp" 1> cl_exe_error |
---|
| 490 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 491 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 492 | cd "%obuild_bhep_path%\obuild" |
---|
| 493 | |
---|
| 494 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 495 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\generate_event.obj /Tp"..\source\examples\generate_event.cpp" 1> cl_exe_error |
---|
| 496 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 497 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 498 | cd "%obuild_bhep_path%\obuild" |
---|
| 499 | |
---|
| 500 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 501 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\gevent.obj /Tp"..\source\tutorials\gevent.cpp" 1> cl_exe_error |
---|
| 502 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 503 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 504 | cd "%obuild_bhep_path%\obuild" |
---|
| 505 | |
---|
| 506 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 507 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\axis.obj /Tp"..\source\histos\axis.cpp" 1> cl_exe_error |
---|
| 508 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 509 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 510 | cd "%obuild_bhep_path%\obuild" |
---|
| 511 | |
---|
| 512 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 513 | %obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\histogram.obj /Tp"..\source\histos\histogram.cpp" 1> cl_exe_error |
---|
| 514 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 515 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 516 | cd "%obuild_bhep_path%\obuild" |
---|
| 517 | |
---|
| 518 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
[127] | 519 | %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 |
---|
[126] | 520 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
| 521 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
| 522 | cd "%obuild_bhep_path%\obuild" |
---|
| 523 | |
---|
| 524 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 525 | |
---|
| 526 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 527 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 528 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 529 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
| 530 | cd "%obuild_pwd_bhep_0%" |
---|
| 531 | SET obuild_pwd_bhep_0= |
---|
[127] | 532 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59 |
---|
[126] | 533 | SET obuild_cxx_linker_command=c++ |
---|
[127] | 534 | :end_if_platform_59 |
---|
[126] | 535 | SET obuild_platform_result= |
---|
| 536 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 537 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 538 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 539 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 540 | cd "%obuild_pwd_bhep_0%" |
---|
| 541 | SET obuild_pwd_bhep_0= |
---|
[127] | 542 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_60 |
---|
[126] | 543 | SET obuild_cxx_linker_command=c++ |
---|
[127] | 544 | :end_if_platform_60 |
---|
[126] | 545 | SET obuild_platform_result= |
---|
| 546 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 547 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 548 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 549 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 550 | cd "%obuild_pwd_bhep_0%" |
---|
| 551 | SET obuild_pwd_bhep_0= |
---|
[127] | 552 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_61 |
---|
[126] | 553 | SET obuild_cxx_linker_command=cxx |
---|
[127] | 554 | :end_if_platform_61 |
---|
[126] | 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= |
---|
[127] | 562 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62 |
---|
[126] | 563 | SET obuild_cxx_linker_command=link.exe |
---|
[127] | 564 | :end_if_platform_62 |
---|
[126] | 565 | SET obuild_platform_result= |
---|
| 566 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
| 567 | |
---|
| 568 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 569 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 570 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 571 | 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= |
---|
[127] | 574 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63 |
---|
[126] | 575 | SET obuild_cxx_linker_debug=-g |
---|
[127] | 576 | :end_if_platform_63 |
---|
[126] | 577 | SET obuild_platform_result= |
---|
| 578 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 579 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 580 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 581 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
| 582 | cd "%obuild_pwd_bhep_0%" |
---|
| 583 | SET obuild_pwd_bhep_0= |
---|
[127] | 584 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64 |
---|
[126] | 585 | SET obuild_cxx_linker_debug=-g |
---|
[127] | 586 | :end_if_platform_64 |
---|
[126] | 587 | SET obuild_platform_result= |
---|
| 588 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 589 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 590 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
| 591 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
| 592 | cd "%obuild_pwd_bhep_0%" |
---|
| 593 | SET obuild_pwd_bhep_0= |
---|
[127] | 594 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65 |
---|
[126] | 595 | SET obuild_cxx_linker_debug=-g |
---|
[127] | 596 | :end_if_platform_65 |
---|
[126] | 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= |
---|
[127] | 604 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66 |
---|
[126] | 605 | SET obuild_cxx_linker_debug=/DEBUG |
---|
[127] | 606 | :end_if_platform_66 |
---|
[126] | 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= |
---|
[127] | 615 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67 |
---|
[126] | 616 | SET obuild_cxx_linker_options=/nologo |
---|
[127] | 617 | :end_if_platform_67 |
---|
[126] | 618 | SET obuild_platform_result= |
---|
| 619 | |
---|
[127] | 620 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_68 |
---|
[126] | 621 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
[127] | 622 | GOTO end_if_db_build_lib_bhep_sh_68 |
---|
| 623 | :else_if_db_build_lib_bhep_sh_68 |
---|
[126] | 624 | SET obuild_cxx_linker_debug_local= |
---|
[127] | 625 | :end_if_db_build_lib_bhep_sh_68 |
---|
[126] | 626 | |
---|
[127] | 627 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_69 |
---|
[126] | 628 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
[127] | 629 | GOTO end_if_opt_build_lib_bhep_sh_69 |
---|
| 630 | :else_if_opt_build_lib_bhep_sh_69 |
---|
[126] | 631 | SET obuild_cxx_linker_optimize_local= |
---|
[127] | 632 | :end_if_opt_build_lib_bhep_sh_69 |
---|
[126] | 633 | |
---|
| 634 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
| 635 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
| 636 | IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs |
---|
| 637 | FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs |
---|
| 638 | |
---|
| 639 | REM # Create the archive library bhep : |
---|
| 640 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 641 | lib.exe /nologo /machine:ix86 /out:.\lib_bhep\bhep.arc @.\lib_bhep\tmp_objs |
---|
| 642 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
| 643 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 644 | |
---|
| 645 | REM # Build the obuild_windef.exe utility program : |
---|
| 646 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
| 647 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
| 648 | |
---|
| 649 | REM # Building the .def file : |
---|
| 650 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 651 | dumpbin.exe /symbols /out:.\lib_bhep\tmp .\lib_bhep\bhep.arc 1> dumpbin_exe_error .\lib_bhep\bhep.arc |
---|
| 652 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
| 653 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
| 654 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 655 | .\obuild_windef.exe bhep < .\lib_bhep\tmp > .\lib_bhep\bhep.def |
---|
| 656 | REM # Building the linking library : |
---|
| 657 | REM # It produces a .exp file. |
---|
| 658 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 659 | lib.exe /nologo /machine:ix86 /out:.\bhep.lib /def:.\lib_bhep\bhep.def 1> lib_exe_error |
---|
| 660 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
| 661 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
| 662 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 663 | |
---|
| 664 | REM # Building the DLL : |
---|
| 665 | IF EXIST .\bhep.dll DEL .\bhep.dll |
---|
| 666 | @IF %obuild_verbose% == yes @ECHO ON |
---|
| 667 | link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries% |
---|
| 668 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
| 669 | |
---|
| 670 | cd "%obuild_pwd_bhep_0%" |
---|
| 671 | SET obuild_pwd_bhep_0= |
---|
| 672 | REM # Some cleanup : |
---|
| 673 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" |
---|
| 674 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" |
---|
| 675 | |
---|
| 676 | :obuild_return |
---|
| 677 | ENDLOCAL |
---|
| 678 | @ECHO ON |
---|