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

Last change on this file since 259 was 259, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 34.0 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% UNIX`) 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_3
111SET HDF5_home=/usr/local/HDF5/1.6.5
112:end_if_platform_3
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% UNIX`) 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_5
121SET zlib_home=/usr
122:end_if_platform_5
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% Darwin`) 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_6
131SET obuild_cxx_command=c++
132:end_if_platform_6
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% Linux`) 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_7
141SET obuild_cxx_command=c++
142:end_if_platform_7
143SET obuild_platform_result=
144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
145cd "%obuild_bhep_path%\%obuild_dir_bin%"
146IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
148cd "%obuild_pwd_bhep_0%"
149SET obuild_pwd_bhep_0=
150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_8
151SET obuild_cxx_command=cxx
152:end_if_platform_8
153SET obuild_platform_result=
154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
155cd "%obuild_bhep_path%\%obuild_dir_bin%"
156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
158cd "%obuild_pwd_bhep_0%"
159SET obuild_pwd_bhep_0=
160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
161SET obuild_cxx_command=cl.exe
162:end_if_platform_9
163SET obuild_platform_result=
164IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
165
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% Darwin`) 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_10
173SET obuild_cxx_optimize=-O
174:end_if_platform_10
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% Linux`) 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_11
183SET obuild_cxx_optimize=-O
184:end_if_platform_11
185SET obuild_platform_result=
186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
187cd "%obuild_bhep_path%\%obuild_dir_bin%"
188IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
189FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
190cd "%obuild_pwd_bhep_0%"
191SET obuild_pwd_bhep_0=
192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
193SET obuild_cxx_optimize=-O
194:end_if_platform_12
195SET obuild_platform_result=
196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
197cd "%obuild_bhep_path%\%obuild_dir_bin%"
198IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
199FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
200cd "%obuild_pwd_bhep_0%"
201SET obuild_pwd_bhep_0=
202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
203SET obuild_cxx_optimize=/O2
204:end_if_platform_13
205SET obuild_platform_result=
206
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% Darwin`) 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_14
214SET obuild_cxx_debug=-g
215:end_if_platform_14
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% Linux`) 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_15
224SET obuild_cxx_debug=-g
225:end_if_platform_15
226SET obuild_platform_result=
227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
228cd "%obuild_bhep_path%\%obuild_dir_bin%"
229IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
230FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
231cd "%obuild_pwd_bhep_0%"
232SET obuild_pwd_bhep_0=
233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
234SET obuild_cxx_debug=-g
235:end_if_platform_16
236SET obuild_platform_result=
237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
238cd "%obuild_bhep_path%\%obuild_dir_bin%"
239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
241cd "%obuild_pwd_bhep_0%"
242SET obuild_pwd_bhep_0=
243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
244SET obuild_cxx_debug=/ZI /Od
245:end_if_platform_17
246SET obuild_platform_result=
247
248FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
249cd "%obuild_bhep_path%\%obuild_dir_bin%"
250IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
251FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
252cd "%obuild_pwd_bhep_0%"
253SET obuild_pwd_bhep_0=
254IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
255SET obuild_cxx_options=-fPIC
256:end_if_platform_18
257SET obuild_platform_result=
258FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
259cd "%obuild_bhep_path%\%obuild_dir_bin%"
260IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
261FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
262cd "%obuild_pwd_bhep_0%"
263SET obuild_pwd_bhep_0=
264IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
265SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
266:end_if_platform_19
267SET obuild_platform_result=
268
269IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_20
270  SET obuild_cxx_debug_local=%obuild_cxx_debug%
271  GOTO end_if_db_build_lib_bhep_sh_20
272:else_if_db_build_lib_bhep_sh_20
273  SET obuild_cxx_debug_local=
274:end_if_db_build_lib_bhep_sh_20
275
276IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_21
277  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
278  GOTO end_if_opt_build_lib_bhep_sh_21
279:else_if_opt_build_lib_bhep_sh_21
280  SET obuild_cxx_optimize_local=
281:end_if_opt_build_lib_bhep_sh_21
282
283
284
285SET obuild_cxx_includes=/I"%obuild_bhep_path%"
286SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep"
287FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
288cd "%obuild_bhep_path%\%obuild_dir_bin%"
289IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
290FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
291cd "%obuild_pwd_bhep_0%"
292SET obuild_pwd_bhep_0=
293IF NOT %obuild_platform_result% == yes GOTO end_if_platform_24
294SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
295:end_if_platform_24
296SET obuild_platform_result=
297FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
298cd "%obuild_bhep_path%\%obuild_dir_bin%"
299IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
300FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
301cd "%obuild_pwd_bhep_0%"
302SET obuild_pwd_bhep_0=
303IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
304SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include
305:end_if_platform_25
306SET obuild_platform_result=
307
308IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
309IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
310
311REM # pre_build scripts :
312FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
313cd "%obuild_bhep_path%\%obuild_dir_bin%"
314IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
315FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
316cd "%obuild_pwd_bhep_0%"
317SET obuild_pwd_bhep_0=
318IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
319./pre_build
320:end_if_platform_26
321SET obuild_platform_result=
322
323@IF %obuild_verbose% == yes @ECHO ON
324cd "%obuild_bhep_path%\%obuild_dir_bin%"
325%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
326@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
327@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
328cd "%obuild_bhep_path%\obuild"
329
330cd "%obuild_bhep_path%\%obuild_dir_bin%"
331%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
332@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
333@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
334cd "%obuild_bhep_path%\obuild"
335
336cd "%obuild_bhep_path%\%obuild_dir_bin%"
337%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
338@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
339@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
340cd "%obuild_bhep_path%\obuild"
341
342cd "%obuild_bhep_path%\%obuild_dir_bin%"
343%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
344@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
345@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
346cd "%obuild_bhep_path%\obuild"
347
348cd "%obuild_bhep_path%\%obuild_dir_bin%"
349%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
350@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
351@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
352cd "%obuild_bhep_path%\obuild"
353
354cd "%obuild_bhep_path%\%obuild_dir_bin%"
355%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
356@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
357@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
358cd "%obuild_bhep_path%\obuild"
359
360cd "%obuild_bhep_path%\%obuild_dir_bin%"
361%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
362@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
363@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
364cd "%obuild_bhep_path%\obuild"
365
366cd "%obuild_bhep_path%\%obuild_dir_bin%"
367%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
368@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
369@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
370cd "%obuild_bhep_path%\obuild"
371
372cd "%obuild_bhep_path%\%obuild_dir_bin%"
373%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
374@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
375@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
376cd "%obuild_bhep_path%\obuild"
377
378cd "%obuild_bhep_path%\%obuild_dir_bin%"
379%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
380@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
381@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
382cd "%obuild_bhep_path%\obuild"
383
384cd "%obuild_bhep_path%\%obuild_dir_bin%"
385%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
386@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
387@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
388cd "%obuild_bhep_path%\obuild"
389
390cd "%obuild_bhep_path%\%obuild_dir_bin%"
391%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
392@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
393@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
394cd "%obuild_bhep_path%\obuild"
395
396cd "%obuild_bhep_path%\%obuild_dir_bin%"
397%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
398@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
399@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
400cd "%obuild_bhep_path%\obuild"
401
402cd "%obuild_bhep_path%\%obuild_dir_bin%"
403%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
404@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
405@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
406cd "%obuild_bhep_path%\obuild"
407
408cd "%obuild_bhep_path%\%obuild_dir_bin%"
409%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
410@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
411@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
412cd "%obuild_bhep_path%\obuild"
413
414cd "%obuild_bhep_path%\%obuild_dir_bin%"
415%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
416@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
417@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
418cd "%obuild_bhep_path%\obuild"
419
420cd "%obuild_bhep_path%\%obuild_dir_bin%"
421%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
422@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
423@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
424cd "%obuild_bhep_path%\obuild"
425
426cd "%obuild_bhep_path%\%obuild_dir_bin%"
427%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
428@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
429@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
430cd "%obuild_bhep_path%\obuild"
431
432cd "%obuild_bhep_path%\%obuild_dir_bin%"
433%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
434@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
435@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
436cd "%obuild_bhep_path%\obuild"
437
438cd "%obuild_bhep_path%\%obuild_dir_bin%"
439%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
440@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
441@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
442cd "%obuild_bhep_path%\obuild"
443
444cd "%obuild_bhep_path%\%obuild_dir_bin%"
445%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
446@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
447@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
448cd "%obuild_bhep_path%\obuild"
449
450cd "%obuild_bhep_path%\%obuild_dir_bin%"
451%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
452@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
453@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
454cd "%obuild_bhep_path%\obuild"
455
456cd "%obuild_bhep_path%\%obuild_dir_bin%"
457%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
458@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
459@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
460cd "%obuild_bhep_path%\obuild"
461
462cd "%obuild_bhep_path%\%obuild_dir_bin%"
463%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
464@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
465@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
466cd "%obuild_bhep_path%\obuild"
467
468cd "%obuild_bhep_path%\%obuild_dir_bin%"
469%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
470@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
471@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
472cd "%obuild_bhep_path%\obuild"
473
474cd "%obuild_bhep_path%\%obuild_dir_bin%"
475%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
476@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
477@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
478cd "%obuild_bhep_path%\obuild"
479
480cd "%obuild_bhep_path%\%obuild_dir_bin%"
481%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
482@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
483@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
484cd "%obuild_bhep_path%\obuild"
485
486cd "%obuild_bhep_path%\%obuild_dir_bin%"
487%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
488@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
489@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
490cd "%obuild_bhep_path%\obuild"
491
492cd "%obuild_bhep_path%\%obuild_dir_bin%"
493%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
494@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
495@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
496cd "%obuild_bhep_path%\obuild"
497
498cd "%obuild_bhep_path%\%obuild_dir_bin%"
499%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
500@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
501@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
502cd "%obuild_bhep_path%\obuild"
503
504cd "%obuild_bhep_path%\%obuild_dir_bin%"
505%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
506@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
507@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
508cd "%obuild_bhep_path%\obuild"
509
510cd "%obuild_bhep_path%\%obuild_dir_bin%"
511%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
512@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
513@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
514cd "%obuild_bhep_path%\obuild"
515
516cd "%obuild_bhep_path%\%obuild_dir_bin%"
517%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
518@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
519@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
520cd "%obuild_bhep_path%\obuild"
521
522cd "%obuild_bhep_path%\%obuild_dir_bin%"
523%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
524@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
525@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
526cd "%obuild_bhep_path%\obuild"
527
528cd "%obuild_bhep_path%\%obuild_dir_bin%"
529%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\EventManager.obj  /Tp"..\source\tools\EventManager.cpp" 1> cl_exe_error
530@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
531@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
532cd "%obuild_bhep_path%\obuild"
533
534@IF %obuild_verbose% == yes @ECHO OFF
535
536FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
537cd "%obuild_bhep_path%\%obuild_dir_bin%"
538IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
539FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
540cd "%obuild_pwd_bhep_0%"
541SET obuild_pwd_bhep_0=
542IF NOT %obuild_platform_result% == yes GOTO end_if_platform_62
543SET obuild_cxx_linker_command=c++
544:end_if_platform_62
545SET obuild_platform_result=
546FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
547cd "%obuild_bhep_path%\%obuild_dir_bin%"
548IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
549FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
550cd "%obuild_pwd_bhep_0%"
551SET obuild_pwd_bhep_0=
552IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63
553SET obuild_cxx_linker_command=c++
554:end_if_platform_63
555SET obuild_platform_result=
556FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
557cd "%obuild_bhep_path%\%obuild_dir_bin%"
558IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
559FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
560cd "%obuild_pwd_bhep_0%"
561SET obuild_pwd_bhep_0=
562IF NOT %obuild_platform_result% == yes GOTO end_if_platform_64
563SET obuild_cxx_linker_command=cxx
564:end_if_platform_64
565SET obuild_platform_result=
566FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
567cd "%obuild_bhep_path%\%obuild_dir_bin%"
568IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
569FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
570cd "%obuild_pwd_bhep_0%"
571SET obuild_pwd_bhep_0=
572IF NOT %obuild_platform_result% == yes GOTO end_if_platform_65
573SET obuild_cxx_linker_command=link.exe
574:end_if_platform_65
575SET obuild_platform_result=
576IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
577
578FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
579cd "%obuild_bhep_path%\%obuild_dir_bin%"
580IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
581FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
582cd "%obuild_pwd_bhep_0%"
583SET obuild_pwd_bhep_0=
584IF NOT %obuild_platform_result% == yes GOTO end_if_platform_66
585SET obuild_cxx_linker_debug=-g
586:end_if_platform_66
587SET obuild_platform_result=
588FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
589cd "%obuild_bhep_path%\%obuild_dir_bin%"
590IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
591FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
592cd "%obuild_pwd_bhep_0%"
593SET obuild_pwd_bhep_0=
594IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67
595SET obuild_cxx_linker_debug=-g
596:end_if_platform_67
597SET obuild_platform_result=
598FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
599cd "%obuild_bhep_path%\%obuild_dir_bin%"
600IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
601FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
602cd "%obuild_pwd_bhep_0%"
603SET obuild_pwd_bhep_0=
604IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68
605SET obuild_cxx_linker_debug=-g
606:end_if_platform_68
607SET obuild_platform_result=
608FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
609cd "%obuild_bhep_path%\%obuild_dir_bin%"
610IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
611FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
612cd "%obuild_pwd_bhep_0%"
613SET obuild_pwd_bhep_0=
614IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
615SET obuild_cxx_linker_debug=/DEBUG
616:end_if_platform_69
617SET obuild_platform_result=
618
619FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
620cd "%obuild_bhep_path%\%obuild_dir_bin%"
621IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
622FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
623cd "%obuild_pwd_bhep_0%"
624SET obuild_pwd_bhep_0=
625IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70
626SET obuild_cxx_linker_options=/nologo
627:end_if_platform_70
628SET obuild_platform_result=
629
630IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_71
631  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
632  GOTO end_if_db_build_lib_bhep_sh_71
633:else_if_db_build_lib_bhep_sh_71
634  SET obuild_cxx_linker_debug_local=
635:end_if_db_build_lib_bhep_sh_71
636
637IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_72
638  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
639  GOTO end_if_opt_build_lib_bhep_sh_72
640:else_if_opt_build_lib_bhep_sh_72
641  SET obuild_cxx_linker_optimize_local=
642:end_if_opt_build_lib_bhep_sh_72
643
644FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
645cd "%obuild_bhep_path%\%obuild_dir_bin%"
646IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs
647FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs
648
649REM # Create the archive library bhep :
650@IF %obuild_verbose% == yes @ECHO ON
651lib.exe /nologo /machine:ix86 /out:.\lib_bhep\bhep.arc @.\lib_bhep\tmp_objs
652@IF ERRORLEVEL 1 @GOTO obuild_return
653@IF %obuild_verbose% == yes @ECHO OFF
654
655REM # Build the obuild_windef.exe utility program :
656cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL
657IF EXIST obuild_windef.obj DEL obuild_windef.obj
658
659REM # Building the .def file :
660@IF %obuild_verbose% == yes @ECHO ON
661dumpbin.exe /symbols /out:.\lib_bhep\tmp .\lib_bhep\bhep.arc 1> dumpbin_exe_error .\lib_bhep\bhep.arc
662@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
663@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
664@IF %obuild_verbose% == yes @ECHO OFF
665.\obuild_windef.exe bhep < .\lib_bhep\tmp > .\lib_bhep\bhep.def
666REM # Building the linking library :
667REM # It produces a .exp file.
668@IF %obuild_verbose% == yes @ECHO ON
669lib.exe /nologo /machine:ix86 /out:.\bhep.lib /def:.\lib_bhep\bhep.def 1> lib_exe_error
670@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
671@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
672@IF %obuild_verbose% == yes @ECHO OFF
673
674REM # Building the DLL :
675IF EXIST .\bhep.dll DEL .\bhep.dll
676@IF %obuild_verbose% == yes @ECHO ON
677link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries%
678@IF %obuild_verbose% == yes @ECHO OFF
679
680cd "%obuild_pwd_bhep_0%"
681SET obuild_pwd_bhep_0=
682REM # Some cleanup :
683IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs"
684IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp"
685
686:obuild_return
687ENDLOCAL
688@ECHO ON
Note: See TracBrowser for help on using the repository browser.