source: build/bhep/trunk/obuild/DOS/build_lib_bhep.bat @ 126

Last change on this file since 126 was 126, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 39.4 KB
Line 
1@ECHO OFF
2SETLOCAL
3
4REM #
5REM # File produced by the obuild tool version 1.0
6REM # for the package bhep with version v1r4p2.
7REM #
8
9REM #////////////////////////////////////////////////
10REM # Usage :
11REM #   DOS> CD some_path\pack\version\obuild
12REM #   DOS> DOS\build_bhep
13REM #
14REM #////////////////////////////////////////////////
15
16REM #////////////////////////////////////////////////
17REM #/// Get path of this file :
18REM #////////////////////////////////////////////////
19SET obuild_bhep_path=%~dp0
20REM # Remove ending \obuild\DOS\
21SET obuild_bhep_path=%obuild_bhep_path:~0,-12%
22
23REM #////////////////////////////////////////////////
24REM #/// Treat arguments :
25REM #////////////////////////////////////////////////
26
27SET obuild_verbose=no
28SET obuild_debug=no
29SET obuild_optimize=yes
30SET obuild_set_x=no
31
32:next_arg
33IF "%1%" == "" GOTO end_args
34
35IF NOT "%1%" == "-v" GOTO end_if_v
36  SET obuild_verbose=yes
37  SHIFT
38  GOTO next_arg
39:end_if_v
40
41IF NOT "%1%" == "-g" GOTO end_if_g
42  SET obuild_debug=yes
43  SHIFT
44  GOTO next_arg
45:end_if_g
46
47IF 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
55REM #////////////////////////////////////////////////
56REM #/// End arguments.
57REM #////////////////////////////////////////////////
58
59IF %obuild_set_x% == yes ECHO ON
60
61IF %obuild_debug% == yes SET obuild_optimize=no
62
63IF "%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
70IF "%obuild_platform%" == "" (
71  ECHO obuild_platform variable not defined.
72  GOTO obuild_return
73)
74
75IF "%OBUILD_DIR_BIN%" == "" (
76  SET obuild_dir_bin=%obuild_platform%_obuild
77) ELSE (
78  SET obuild_dir_bin=%OBUILD_DIR_BIN%
79)
80
81IF "%obuild_dir_bin%" == "" (
82  ECHO obuild_dir_bin variable not defined.
83  GOTO obuild_return
84)
85
86IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
87
88IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
89IF 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
94FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
95cd "%obuild_bhep_path%\%obuild_dir_bin%"
96IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
98cd "%obuild_pwd_bhep_0%"
99SET obuild_pwd_bhep_0=
100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
101SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
102:end_if_platform_1
103SET obuild_platform_result=
104FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
105cd "%obuild_bhep_path%\%obuild_dir_bin%"
106IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
108cd "%obuild_pwd_bhep_0%"
109SET obuild_pwd_bhep_0=
110IF NOT %obuild_platform_result% == yes GOTO end_if_platform_2
111SET obuild_cxx_command=c++
112:end_if_platform_2
113SET obuild_platform_result=
114FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
115cd "%obuild_bhep_path%\%obuild_dir_bin%"
116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
118cd "%obuild_pwd_bhep_0%"
119SET obuild_pwd_bhep_0=
120IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
121SET obuild_cxx_command=c++
122:end_if_platform_3
123SET obuild_platform_result=
124FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
125cd "%obuild_bhep_path%\%obuild_dir_bin%"
126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
128cd "%obuild_pwd_bhep_0%"
129SET obuild_pwd_bhep_0=
130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_4
131SET obuild_cxx_command=cxx
132:end_if_platform_4
133SET obuild_platform_result=
134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
135cd "%obuild_bhep_path%\%obuild_dir_bin%"
136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
138cd "%obuild_pwd_bhep_0%"
139SET obuild_pwd_bhep_0=
140IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
141SET obuild_cxx_command=cl.exe
142:end_if_platform_5
143SET obuild_platform_result=
144IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
145
146FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
147cd "%obuild_bhep_path%\%obuild_dir_bin%"
148IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
149FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
150cd "%obuild_pwd_bhep_0%"
151SET obuild_pwd_bhep_0=
152IF NOT %obuild_platform_result% == yes GOTO end_if_platform_6
153SET obuild_cxx_optimize=-O
154:end_if_platform_6
155SET obuild_platform_result=
156FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
157cd "%obuild_bhep_path%\%obuild_dir_bin%"
158IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
159FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
160cd "%obuild_pwd_bhep_0%"
161SET obuild_pwd_bhep_0=
162IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
163SET obuild_cxx_optimize=-O
164:end_if_platform_7
165SET obuild_platform_result=
166FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
167cd "%obuild_bhep_path%\%obuild_dir_bin%"
168IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
169FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
170cd "%obuild_pwd_bhep_0%"
171SET obuild_pwd_bhep_0=
172IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
173SET obuild_cxx_optimize=-O
174:end_if_platform_8
175SET obuild_platform_result=
176FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
177cd "%obuild_bhep_path%\%obuild_dir_bin%"
178IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
179FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
180cd "%obuild_pwd_bhep_0%"
181SET obuild_pwd_bhep_0=
182IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
183SET obuild_cxx_optimize=/O2
184:end_if_platform_9
185SET obuild_platform_result=
186
187FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
188cd "%obuild_bhep_path%\%obuild_dir_bin%"
189IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
190FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
191cd "%obuild_pwd_bhep_0%"
192SET obuild_pwd_bhep_0=
193IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
194SET obuild_cxx_debug=-g
195:end_if_platform_10
196SET obuild_platform_result=
197FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
198cd "%obuild_bhep_path%\%obuild_dir_bin%"
199IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
200FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
201cd "%obuild_pwd_bhep_0%"
202SET obuild_pwd_bhep_0=
203IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
204SET obuild_cxx_debug=-g
205:end_if_platform_11
206SET obuild_platform_result=
207FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
208cd "%obuild_bhep_path%\%obuild_dir_bin%"
209IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
210FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
211cd "%obuild_pwd_bhep_0%"
212SET obuild_pwd_bhep_0=
213IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
214SET obuild_cxx_debug=-g
215:end_if_platform_12
216SET obuild_platform_result=
217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
218cd "%obuild_bhep_path%\%obuild_dir_bin%"
219IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
220FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
221cd "%obuild_pwd_bhep_0%"
222SET obuild_pwd_bhep_0=
223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
224SET obuild_cxx_debug=/ZI /Od
225:end_if_platform_13
226SET obuild_platform_result=
227
228FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
229cd "%obuild_bhep_path%\%obuild_dir_bin%"
230IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
231FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
232cd "%obuild_pwd_bhep_0%"
233SET obuild_pwd_bhep_0=
234IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
235SET obuild_cxx_options=-fPIC
236:end_if_platform_14
237SET obuild_platform_result=
238FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
239cd "%obuild_bhep_path%\%obuild_dir_bin%"
240IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
241FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
242cd "%obuild_pwd_bhep_0%"
243SET obuild_pwd_bhep_0=
244IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
245SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
246:end_if_platform_15
247SET obuild_platform_result=
248
249IF 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
256IF 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
263FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
264cd "%obuild_bhep_path%\%obuild_dir_bin%"
265IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
266FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
267cd "%obuild_pwd_bhep_0%"
268SET obuild_pwd_bhep_0=
269IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
270SET obuild_c_command=cc
271:end_if_platform_18
272SET obuild_platform_result=
273FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
274cd "%obuild_bhep_path%\%obuild_dir_bin%"
275IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
276FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
277cd "%obuild_pwd_bhep_0%"
278SET obuild_pwd_bhep_0=
279IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
280SET obuild_c_command=cc
281:end_if_platform_19
282SET obuild_platform_result=
283FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
284cd "%obuild_bhep_path%\%obuild_dir_bin%"
285IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
286FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
287cd "%obuild_pwd_bhep_0%"
288SET obuild_pwd_bhep_0=
289IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
290SET obuild_c_command=cc
291:end_if_platform_20
292SET obuild_platform_result=
293FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
294cd "%obuild_bhep_path%\%obuild_dir_bin%"
295IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
296FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
297cd "%obuild_pwd_bhep_0%"
298SET obuild_pwd_bhep_0=
299IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
300SET obuild_c_command=cl.exe
301:end_if_platform_21
302SET obuild_platform_result=
303IF "%obuild_c_command%" == ""  ECHO Variable obuild_c_command not defined.  && GOTO obuild_return
304
305FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
306cd "%obuild_bhep_path%\%obuild_dir_bin%"
307IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
308FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
309cd "%obuild_pwd_bhep_0%"
310SET obuild_pwd_bhep_0=
311IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
312SET obuild_c_optimize=-O
313:end_if_platform_22
314SET obuild_platform_result=
315FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
316cd "%obuild_bhep_path%\%obuild_dir_bin%"
317IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
318FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
319cd "%obuild_pwd_bhep_0%"
320SET obuild_pwd_bhep_0=
321IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
322SET obuild_c_optimize=-O
323:end_if_platform_23
324SET obuild_platform_result=
325FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
326cd "%obuild_bhep_path%\%obuild_dir_bin%"
327IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
328FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
329cd "%obuild_pwd_bhep_0%"
330SET obuild_pwd_bhep_0=
331IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
332SET obuild_c_optimize=-O
333:end_if_platform_24
334SET obuild_platform_result=
335FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
336cd "%obuild_bhep_path%\%obuild_dir_bin%"
337IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
338FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
339cd "%obuild_pwd_bhep_0%"
340SET obuild_pwd_bhep_0=
341IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
342SET obuild_c_optimize=/O2
343:end_if_platform_25
344SET obuild_platform_result=
345
346FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
347cd "%obuild_bhep_path%\%obuild_dir_bin%"
348IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
349FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
350cd "%obuild_pwd_bhep_0%"
351SET obuild_pwd_bhep_0=
352IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
353SET obuild_c_debug=-g
354:end_if_platform_26
355SET obuild_platform_result=
356FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
357cd "%obuild_bhep_path%\%obuild_dir_bin%"
358IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
359FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
360cd "%obuild_pwd_bhep_0%"
361SET obuild_pwd_bhep_0=
362IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
363SET obuild_c_debug=-g
364:end_if_platform_27
365SET obuild_platform_result=
366FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
367cd "%obuild_bhep_path%\%obuild_dir_bin%"
368IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
369FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
370cd "%obuild_pwd_bhep_0%"
371SET obuild_pwd_bhep_0=
372IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
373SET obuild_c_debug=-g
374:end_if_platform_28
375SET obuild_platform_result=
376FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
377cd "%obuild_bhep_path%\%obuild_dir_bin%"
378IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
379FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
380cd "%obuild_pwd_bhep_0%"
381SET obuild_pwd_bhep_0=
382IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
383SET obuild_c_debug=/ZI /Od
384:end_if_platform_29
385SET obuild_platform_result=
386
387FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
388cd "%obuild_bhep_path%\%obuild_dir_bin%"
389IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
390FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
391cd "%obuild_pwd_bhep_0%"
392SET obuild_pwd_bhep_0=
393IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
394SET obuild_c_options=-fPIC
395:end_if_platform_30
396SET obuild_platform_result=
397FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
398cd "%obuild_bhep_path%\%obuild_dir_bin%"
399IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
400FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
401cd "%obuild_pwd_bhep_0%"
402SET obuild_pwd_bhep_0=
403IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
404SET obuild_c_options=-std
405:end_if_platform_31
406SET obuild_platform_result=
407FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
408cd "%obuild_bhep_path%\%obuild_dir_bin%"
409IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
410FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
411cd "%obuild_pwd_bhep_0%"
412SET obuild_pwd_bhep_0=
413IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
414SET obuild_c_options=/nologo /DWIN32 /MD /W3
415:end_if_platform_32
416SET obuild_platform_result=
417
418IF 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
425IF 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
434SET obuild_cxx_includes=/I"%obuild_bhep_path%"
435
436IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
437IF 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
440cd "%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
444cd "%obuild_bhep_path%\obuild"
445
446cd "%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
450cd "%obuild_bhep_path%\obuild"
451
452cd "%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
456cd "%obuild_bhep_path%\obuild"
457
458cd "%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
462cd "%obuild_bhep_path%\obuild"
463
464cd "%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
468cd "%obuild_bhep_path%\obuild"
469
470cd "%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
474cd "%obuild_bhep_path%\obuild"
475
476cd "%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
480cd "%obuild_bhep_path%\obuild"
481
482cd "%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
486cd "%obuild_bhep_path%\obuild"
487
488cd "%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
492cd "%obuild_bhep_path%\obuild"
493
494cd "%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
498cd "%obuild_bhep_path%\obuild"
499
500cd "%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
504cd "%obuild_bhep_path%\obuild"
505
506cd "%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
510cd "%obuild_bhep_path%\obuild"
511
512cd "%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
516cd "%obuild_bhep_path%\obuild"
517
518cd "%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
522cd "%obuild_bhep_path%\obuild"
523
524cd "%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
528cd "%obuild_bhep_path%\obuild"
529
530cd "%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
534cd "%obuild_bhep_path%\obuild"
535
536cd "%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
540cd "%obuild_bhep_path%\obuild"
541
542cd "%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
546cd "%obuild_bhep_path%\obuild"
547
548cd "%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
552cd "%obuild_bhep_path%\obuild"
553
554cd "%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
558cd "%obuild_bhep_path%\obuild"
559
560cd "%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
564cd "%obuild_bhep_path%\obuild"
565
566cd "%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
570cd "%obuild_bhep_path%\obuild"
571
572cd "%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
576cd "%obuild_bhep_path%\obuild"
577
578cd "%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
582cd "%obuild_bhep_path%\obuild"
583
584cd "%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
588cd "%obuild_bhep_path%\obuild"
589
590cd "%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
594cd "%obuild_bhep_path%\obuild"
595
596cd "%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
600cd "%obuild_bhep_path%\obuild"
601
602cd "%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
606cd "%obuild_bhep_path%\obuild"
607
608cd "%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
612cd "%obuild_bhep_path%\obuild"
613
614cd "%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
618cd "%obuild_bhep_path%\obuild"
619
620cd "%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
624cd "%obuild_bhep_path%\obuild"
625
626cd "%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
630cd "%obuild_bhep_path%\obuild"
631
632cd "%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
636cd "%obuild_bhep_path%\obuild"
637
638cd "%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
642cd "%obuild_bhep_path%\obuild"
643
644cd "%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
648cd "%obuild_bhep_path%\obuild"
649
650@IF %obuild_verbose% == yes @ECHO OFF
651
652FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
653cd "%obuild_bhep_path%\%obuild_dir_bin%"
654IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
655FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
656cd "%obuild_pwd_bhep_0%"
657SET obuild_pwd_bhep_0=
658IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
659SET obuild_cxx_linker_command=c++
660:end_if_platform_71
661SET obuild_platform_result=
662FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
663cd "%obuild_bhep_path%\%obuild_dir_bin%"
664IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
665FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
666cd "%obuild_pwd_bhep_0%"
667SET obuild_pwd_bhep_0=
668IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
669SET obuild_cxx_linker_command=c++
670:end_if_platform_72
671SET obuild_platform_result=
672FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
673cd "%obuild_bhep_path%\%obuild_dir_bin%"
674IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
675FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
676cd "%obuild_pwd_bhep_0%"
677SET obuild_pwd_bhep_0=
678IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
679SET obuild_cxx_linker_command=cxx
680:end_if_platform_73
681SET obuild_platform_result=
682FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
683cd "%obuild_bhep_path%\%obuild_dir_bin%"
684IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
685FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
686cd "%obuild_pwd_bhep_0%"
687SET obuild_pwd_bhep_0=
688IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
689SET obuild_cxx_linker_command=link.exe
690:end_if_platform_74
691SET obuild_platform_result=
692IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
693
694FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
695cd "%obuild_bhep_path%\%obuild_dir_bin%"
696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
697FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
698cd "%obuild_pwd_bhep_0%"
699SET obuild_pwd_bhep_0=
700IF NOT %obuild_platform_result% == yes GOTO end_if_platform_75
701SET obuild_cxx_linker_debug=-g
702:end_if_platform_75
703SET obuild_platform_result=
704FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
705cd "%obuild_bhep_path%\%obuild_dir_bin%"
706IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
707FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
708cd "%obuild_pwd_bhep_0%"
709SET obuild_pwd_bhep_0=
710IF NOT %obuild_platform_result% == yes GOTO end_if_platform_76
711SET obuild_cxx_linker_debug=-g
712:end_if_platform_76
713SET obuild_platform_result=
714FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
715cd "%obuild_bhep_path%\%obuild_dir_bin%"
716IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
717FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
718cd "%obuild_pwd_bhep_0%"
719SET obuild_pwd_bhep_0=
720IF NOT %obuild_platform_result% == yes GOTO end_if_platform_77
721SET obuild_cxx_linker_debug=-g
722:end_if_platform_77
723SET obuild_platform_result=
724FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
725cd "%obuild_bhep_path%\%obuild_dir_bin%"
726IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
727FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
728cd "%obuild_pwd_bhep_0%"
729SET obuild_pwd_bhep_0=
730IF NOT %obuild_platform_result% == yes GOTO end_if_platform_78
731SET obuild_cxx_linker_debug=/DEBUG
732:end_if_platform_78
733SET obuild_platform_result=
734
735FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
736cd "%obuild_bhep_path%\%obuild_dir_bin%"
737IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
738FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
739cd "%obuild_pwd_bhep_0%"
740SET obuild_pwd_bhep_0=
741IF NOT %obuild_platform_result% == yes GOTO end_if_platform_79
742SET obuild_cxx_linker_options=/nologo
743:end_if_platform_79
744SET obuild_platform_result=
745
746IF 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
753IF 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
760FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
761cd "%obuild_bhep_path%\%obuild_dir_bin%"
762IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs
763FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs
764
765REM # Create the archive library bhep :
766@IF %obuild_verbose% == yes @ECHO ON
767lib.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
771REM # Build the obuild_windef.exe utility program :
772cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL
773IF EXIST obuild_windef.obj DEL obuild_windef.obj
774
775REM # Building the .def file :
776@IF %obuild_verbose% == yes @ECHO ON
777dumpbin.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
782REM # Building the linking library :
783REM # It produces a .exp file.
784@IF %obuild_verbose% == yes @ECHO ON
785lib.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
790REM # Building the DLL :
791IF EXIST .\bhep.dll DEL .\bhep.dll
792@IF %obuild_verbose% == yes @ECHO ON
793link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries%
794@IF %obuild_verbose% == yes @ECHO OFF
795
796cd "%obuild_pwd_bhep_0%"
797SET obuild_pwd_bhep_0=
798REM # Some cleanup :
799IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs"
800IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp"
801
802:obuild_return
803ENDLOCAL
804@ECHO ON
Note: See TracBrowser for help on using the repository browser.