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 | |
---|
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 |
---|
267 | cd "%obuild_pwd_bhep_0%" |
---|
268 | SET obuild_pwd_bhep_0= |
---|
269 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18 |
---|
270 | SET obuild_c_command=cc |
---|
271 | :end_if_platform_18 |
---|
272 | 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 |
---|
297 | cd "%obuild_pwd_bhep_0%" |
---|
298 | SET obuild_pwd_bhep_0= |
---|
299 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21 |
---|
300 | SET obuild_c_command=cl.exe |
---|
301 | :end_if_platform_21 |
---|
302 | 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%" |
---|
435 | |
---|
436 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" |
---|
437 | IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" |
---|
438 | |
---|
439 | @IF %obuild_verbose% == yes @ECHO ON |
---|
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\version.obj /Tp"..\source\version.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\event.obj /Tp"..\source\base\event.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\hit.obj /Tp"..\source\base\hit.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\mparticle.obj /Tp"..\source\base\mparticle.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\particle.obj /Tp"..\source\base\particle.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\sparticle.obj /Tp"..\source\base\sparticle.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\track.obj /Tp"..\source\base\track.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\material.obj /Tp"..\source\util\material.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\particle_definition.obj /Tp"..\source\util\particle_definition.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\ray.obj /Tp"..\source\util\ray.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\event_cvt.obj /Tp"..\source\converters\event_cvt.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\hit_cvt.obj /Tp"..\source\converters\hit_cvt.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\mparticle_cvt.obj /Tp"..\source\converters\mparticle_cvt.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%" |
---|
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\particle_cvt.obj /Tp"..\source\converters\particle_cvt.cpp" 1> cl_exe_error |
---|
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 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
525 | %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 |
---|
526 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
527 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
528 | cd "%obuild_bhep_path%\obuild" |
---|
529 | |
---|
530 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
531 | %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 |
---|
532 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
533 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
534 | cd "%obuild_bhep_path%\obuild" |
---|
535 | |
---|
536 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
537 | %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 |
---|
538 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
539 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
540 | cd "%obuild_bhep_path%\obuild" |
---|
541 | |
---|
542 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
543 | %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 |
---|
544 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
545 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
546 | cd "%obuild_bhep_path%\obuild" |
---|
547 | |
---|
548 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
549 | %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 |
---|
550 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
551 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
552 | cd "%obuild_bhep_path%\obuild" |
---|
553 | |
---|
554 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
555 | %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 |
---|
556 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
557 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
558 | cd "%obuild_bhep_path%\obuild" |
---|
559 | |
---|
560 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
561 | %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 |
---|
562 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
563 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
564 | cd "%obuild_bhep_path%\obuild" |
---|
565 | |
---|
566 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
567 | %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 |
---|
568 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
569 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
570 | cd "%obuild_bhep_path%\obuild" |
---|
571 | |
---|
572 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
573 | %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 |
---|
574 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
575 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
576 | cd "%obuild_bhep_path%\obuild" |
---|
577 | |
---|
578 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
579 | %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 |
---|
580 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
581 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
582 | cd "%obuild_bhep_path%\obuild" |
---|
583 | |
---|
584 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
585 | %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 |
---|
586 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
587 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
588 | cd "%obuild_bhep_path%\obuild" |
---|
589 | |
---|
590 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
591 | %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 |
---|
592 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
593 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
594 | cd "%obuild_bhep_path%\obuild" |
---|
595 | |
---|
596 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
597 | %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 |
---|
598 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
599 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
600 | cd "%obuild_bhep_path%\obuild" |
---|
601 | |
---|
602 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
603 | %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 |
---|
604 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
605 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
606 | cd "%obuild_bhep_path%\obuild" |
---|
607 | |
---|
608 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
609 | %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 |
---|
610 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
611 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
612 | cd "%obuild_bhep_path%\obuild" |
---|
613 | |
---|
614 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
615 | %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 |
---|
616 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
617 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
618 | cd "%obuild_bhep_path%\obuild" |
---|
619 | |
---|
620 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
621 | %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 |
---|
622 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
623 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
624 | cd "%obuild_bhep_path%\obuild" |
---|
625 | |
---|
626 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
627 | %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 |
---|
628 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
629 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
630 | cd "%obuild_bhep_path%\obuild" |
---|
631 | |
---|
632 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
633 | %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 |
---|
634 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
635 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
636 | cd "%obuild_bhep_path%\obuild" |
---|
637 | |
---|
638 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
639 | %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 |
---|
640 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
641 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
642 | cd "%obuild_bhep_path%\obuild" |
---|
643 | |
---|
644 | 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_error |
---|
646 | @IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return |
---|
647 | @IF NOT ERRORLEVEL 1 @DEL cl_exe_error |
---|
648 | cd "%obuild_bhep_path%\obuild" |
---|
649 | |
---|
650 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
651 | |
---|
652 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
653 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
654 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
655 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
656 | cd "%obuild_pwd_bhep_0%" |
---|
657 | SET obuild_pwd_bhep_0= |
---|
658 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71 |
---|
659 | SET obuild_cxx_linker_command=c++ |
---|
660 | :end_if_platform_71 |
---|
661 | SET obuild_platform_result= |
---|
662 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
663 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
664 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
665 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
666 | cd "%obuild_pwd_bhep_0%" |
---|
667 | SET obuild_pwd_bhep_0= |
---|
668 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72 |
---|
669 | SET obuild_cxx_linker_command=c++ |
---|
670 | :end_if_platform_72 |
---|
671 | SET obuild_platform_result= |
---|
672 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
673 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
674 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
675 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
676 | cd "%obuild_pwd_bhep_0%" |
---|
677 | SET obuild_pwd_bhep_0= |
---|
678 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73 |
---|
679 | SET obuild_cxx_linker_command=cxx |
---|
680 | :end_if_platform_73 |
---|
681 | 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_74 |
---|
689 | SET obuild_cxx_linker_command=link.exe |
---|
690 | :end_if_platform_74 |
---|
691 | SET obuild_platform_result= |
---|
692 | IF "%obuild_cxx_linker_command%" == "" ECHO Variable obuild_cxx_linker_command not defined. && GOTO obuild_return |
---|
693 | |
---|
694 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
695 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
696 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
697 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j |
---|
698 | cd "%obuild_pwd_bhep_0%" |
---|
699 | SET obuild_pwd_bhep_0= |
---|
700 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75 |
---|
701 | SET obuild_cxx_linker_debug=-g |
---|
702 | :end_if_platform_75 |
---|
703 | SET obuild_platform_result= |
---|
704 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
705 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
706 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
707 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% Linux`) DO SET obuild_platform_result=%%j |
---|
708 | cd "%obuild_pwd_bhep_0%" |
---|
709 | SET obuild_pwd_bhep_0= |
---|
710 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76 |
---|
711 | SET obuild_cxx_linker_debug=-g |
---|
712 | :end_if_platform_76 |
---|
713 | SET obuild_platform_result= |
---|
714 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
715 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
716 | IF NOT EXIST .\obuild_platform.exe ECHO Program obuild_platform.exe not found. && GOTO obuild_return |
---|
717 | FOR /F "usebackq" %%j IN (`.\obuild_platform.exe %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j |
---|
718 | cd "%obuild_pwd_bhep_0%" |
---|
719 | SET obuild_pwd_bhep_0= |
---|
720 | IF NOT %obuild_platform_result% == yes GOTO end_if_platform_77 |
---|
721 | SET obuild_cxx_linker_debug=-g |
---|
722 | :end_if_platform_77 |
---|
723 | 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_78 |
---|
731 | SET obuild_cxx_linker_debug=/DEBUG |
---|
732 | :end_if_platform_78 |
---|
733 | 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_79 |
---|
742 | SET obuild_cxx_linker_options=/nologo |
---|
743 | :end_if_platform_79 |
---|
744 | SET obuild_platform_result= |
---|
745 | |
---|
746 | IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_80 |
---|
747 | SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug% |
---|
748 | GOTO end_if_db_build_lib_bhep_sh_80 |
---|
749 | :else_if_db_build_lib_bhep_sh_80 |
---|
750 | SET obuild_cxx_linker_debug_local= |
---|
751 | :end_if_db_build_lib_bhep_sh_80 |
---|
752 | |
---|
753 | IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_81 |
---|
754 | SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize% |
---|
755 | GOTO end_if_opt_build_lib_bhep_sh_81 |
---|
756 | :else_if_opt_build_lib_bhep_sh_81 |
---|
757 | SET obuild_cxx_linker_optimize_local= |
---|
758 | :end_if_opt_build_lib_bhep_sh_81 |
---|
759 | |
---|
760 | FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d |
---|
761 | cd "%obuild_bhep_path%\%obuild_dir_bin%" |
---|
762 | IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs |
---|
763 | FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs |
---|
764 | |
---|
765 | REM # Create the archive library bhep : |
---|
766 | @IF %obuild_verbose% == yes @ECHO ON |
---|
767 | lib.exe /nologo /machine:ix86 /out:.\lib_bhep\bhep.arc @.\lib_bhep\tmp_objs |
---|
768 | @IF ERRORLEVEL 1 @GOTO obuild_return |
---|
769 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
770 | |
---|
771 | REM # Build the obuild_windef.exe utility program : |
---|
772 | cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL |
---|
773 | IF EXIST obuild_windef.obj DEL obuild_windef.obj |
---|
774 | |
---|
775 | REM # Building the .def file : |
---|
776 | @IF %obuild_verbose% == yes @ECHO ON |
---|
777 | dumpbin.exe /symbols /out:.\lib_bhep\tmp .\lib_bhep\bhep.arc 1> dumpbin_exe_error .\lib_bhep\bhep.arc |
---|
778 | @IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return |
---|
779 | @IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error |
---|
780 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
781 | .\obuild_windef.exe bhep < .\lib_bhep\tmp > .\lib_bhep\bhep.def |
---|
782 | REM # Building the linking library : |
---|
783 | REM # It produces a .exp file. |
---|
784 | @IF %obuild_verbose% == yes @ECHO ON |
---|
785 | lib.exe /nologo /machine:ix86 /out:.\bhep.lib /def:.\lib_bhep\bhep.def 1> lib_exe_error |
---|
786 | @IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return |
---|
787 | @IF NOT ERRORLEVEL 1 @DEL lib_exe_error |
---|
788 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
789 | |
---|
790 | REM # Building the DLL : |
---|
791 | IF EXIST .\bhep.dll DEL .\bhep.dll |
---|
792 | @IF %obuild_verbose% == yes @ECHO ON |
---|
793 | link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries% |
---|
794 | @IF %obuild_verbose% == yes @ECHO OFF |
---|
795 | |
---|
796 | cd "%obuild_pwd_bhep_0%" |
---|
797 | SET obuild_pwd_bhep_0= |
---|
798 | REM # Some cleanup : |
---|
799 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" |
---|
800 | IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" |
---|
801 | |
---|
802 | :obuild_return |
---|
803 | ENDLOCAL |
---|
804 | @ECHO ON |
---|