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

Last change on this file since 127 was 127, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 33.9 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
263
264FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
265cd "%obuild_bhep_path%\%obuild_dir_bin%"
266IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
267FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
268cd "%obuild_pwd_bhep_0%"
269SET obuild_pwd_bhep_0=
270IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
271SET obuild_cxx_macros=%obuild_cxx_macros% /D_HDF5USEDLL_
272:end_if_platform_18
273SET obuild_platform_result=
274
275IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%"
276IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" (
277  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_bhep_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_bhep_path%\obuild\cpp\obuild_find.cpp" 1> NUL
278  IF EXIST obuild_find.obj DEL obuild_find.obj
279)
280FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
281cd "%obuild_bhep_path%\%obuild_dir_bin%"
282IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
283FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
284cd "%obuild_pwd_bhep_0%"
285SET obuild_pwd_bhep_0=
286IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
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_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
290FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  zlib v1r*`) DO SET obuild_zlib_path=%%j
291cd "%obuild_pwd_bhep_0%"
292SET obuild_pwd_bhep_0=
293IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
294
295SET obuild_cxx_includes=/I"%obuild_bhep_path%"
296SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%\bhep"
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_21
304SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
305:end_if_platform_21
306SET obuild_platform_result=
307SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
308SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_zlib_path%\include"
309
310IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" RMDIR /S /Q "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
311IF NOT EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep" MKDIR "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep"
312
313@IF %obuild_verbose% == yes @ECHO ON
314cd "%obuild_bhep_path%\%obuild_dir_bin%"
315%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\version.obj  /Tp"..\source\version.cpp" 1> cl_exe_error
316@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
317@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
318cd "%obuild_bhep_path%\obuild"
319
320cd "%obuild_bhep_path%\%obuild_dir_bin%"
321%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event.obj  /Tp"..\source\base\event.cpp" 1> cl_exe_error
322@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
323@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
324cd "%obuild_bhep_path%\obuild"
325
326cd "%obuild_bhep_path%\%obuild_dir_bin%"
327%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit.obj  /Tp"..\source\base\hit.cpp" 1> cl_exe_error
328@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
329@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
330cd "%obuild_bhep_path%\obuild"
331
332cd "%obuild_bhep_path%\%obuild_dir_bin%"
333%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle.obj  /Tp"..\source\base\mparticle.cpp" 1> cl_exe_error
334@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
335@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
336cd "%obuild_bhep_path%\obuild"
337
338cd "%obuild_bhep_path%\%obuild_dir_bin%"
339%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle.obj  /Tp"..\source\base\particle.cpp" 1> cl_exe_error
340@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
341@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
342cd "%obuild_bhep_path%\obuild"
343
344cd "%obuild_bhep_path%\%obuild_dir_bin%"
345%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle.obj  /Tp"..\source\base\sparticle.cpp" 1> cl_exe_error
346@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
347@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
348cd "%obuild_bhep_path%\obuild"
349
350cd "%obuild_bhep_path%\%obuild_dir_bin%"
351%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track.obj  /Tp"..\source\base\track.cpp" 1> cl_exe_error
352@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
353@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
354cd "%obuild_bhep_path%\obuild"
355
356cd "%obuild_bhep_path%\%obuild_dir_bin%"
357%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\material.obj  /Tp"..\source\util\material.cpp" 1> cl_exe_error
358@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
359@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
360cd "%obuild_bhep_path%\obuild"
361
362cd "%obuild_bhep_path%\%obuild_dir_bin%"
363%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_definition.obj  /Tp"..\source\util\particle_definition.cpp" 1> cl_exe_error
364@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
365@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
366cd "%obuild_bhep_path%\obuild"
367
368cd "%obuild_bhep_path%\%obuild_dir_bin%"
369%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\ray.obj  /Tp"..\source\util\ray.cpp" 1> cl_exe_error
370@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
371@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
372cd "%obuild_bhep_path%\obuild"
373
374cd "%obuild_bhep_path%\%obuild_dir_bin%"
375%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\event_cvt.obj  /Tp"..\source\converters\event_cvt.cpp" 1> cl_exe_error
376@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
377@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
378cd "%obuild_bhep_path%\obuild"
379
380cd "%obuild_bhep_path%\%obuild_dir_bin%"
381%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\hit_cvt.obj  /Tp"..\source\converters\hit_cvt.cpp" 1> cl_exe_error
382@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
383@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
384cd "%obuild_bhep_path%\obuild"
385
386cd "%obuild_bhep_path%\%obuild_dir_bin%"
387%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\mparticle_cvt.obj  /Tp"..\source\converters\mparticle_cvt.cpp" 1> cl_exe_error
388@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
389@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
390cd "%obuild_bhep_path%\obuild"
391
392cd "%obuild_bhep_path%\%obuild_dir_bin%"
393%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\particle_cvt.obj  /Tp"..\source\converters\particle_cvt.cpp" 1> cl_exe_error
394@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
395@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
396cd "%obuild_bhep_path%\obuild"
397
398cd "%obuild_bhep_path%\%obuild_dir_bin%"
399%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\sparticle_cvt.obj  /Tp"..\source\converters\sparticle_cvt.cpp" 1> cl_exe_error
400@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
401@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
402cd "%obuild_bhep_path%\obuild"
403
404cd "%obuild_bhep_path%\%obuild_dir_bin%"
405%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\track_cvt.obj  /Tp"..\source\converters\track_cvt.cpp" 1> cl_exe_error
406@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
407@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
408cd "%obuild_bhep_path%\obuild"
409
410cd "%obuild_bhep_path%\%obuild_dir_bin%"
411%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\base_reader.obj  /Tp"..\source\manager\base_reader.cpp" 1> cl_exe_error
412@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
413@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
414cd "%obuild_bhep_path%\obuild"
415
416cd "%obuild_bhep_path%\%obuild_dir_bin%"
417%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\bhep_svc.obj  /Tp"..\source\manager\bhep_svc.cpp" 1> cl_exe_error
418@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
419@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
420cd "%obuild_bhep_path%\obuild"
421
422cd "%obuild_bhep_path%\%obuild_dir_bin%"
423%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\brw.obj  /Tp"..\source\manager\brw.cpp" 1> cl_exe_error
424@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
425@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
426cd "%obuild_bhep_path%\obuild"
427
428cd "%obuild_bhep_path%\%obuild_dir_bin%"
429%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\converter_svc.obj  /Tp"..\source\manager\converter_svc.cpp" 1> cl_exe_error
430@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
431@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
432cd "%obuild_bhep_path%\obuild"
433
434cd "%obuild_bhep_path%\%obuild_dir_bin%"
435%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_bhep\random_reader.obj  /Tp"..\source\manager\random_reader.cpp" 1> cl_exe_error
436@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
437@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
438cd "%obuild_bhep_path%\obuild"
439
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\random_writer.obj  /Tp"..\source\manager\random_writer.cpp" 1> cl_exe_error
442@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
443@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\reader_gz.obj  /Tp"..\source\manager\reader_gz.cpp" 1> cl_exe_error
448@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
449@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\reader_hdf5.obj  /Tp"..\source\manager\reader_hdf5.cpp" 1> cl_exe_error
454@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
455@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\reader_txt.obj  /Tp"..\source\manager\reader_txt.cpp" 1> cl_exe_error
460@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
461@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\sequential_reader.obj  /Tp"..\source\manager\sequential_reader.cpp" 1> cl_exe_error
466@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
467@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\sequential_writer.obj  /Tp"..\source\manager\sequential_writer.cpp" 1> cl_exe_error
472@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
473@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\writer_gz.obj  /Tp"..\source\manager\writer_gz.cpp" 1> cl_exe_error
478@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
479@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\writer_hdf5.obj  /Tp"..\source\manager\writer_hdf5.cpp" 1> cl_exe_error
484@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
485@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\writer_txt.obj  /Tp"..\source\manager\writer_txt.cpp" 1> cl_exe_error
490@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
491@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\generate_event.obj  /Tp"..\source\examples\generate_event.cpp" 1> cl_exe_error
496@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
497@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\gevent.obj  /Tp"..\source\tutorials\gevent.cpp" 1> cl_exe_error
502@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
503@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\axis.obj  /Tp"..\source\histos\axis.cpp" 1> cl_exe_error
508@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
509@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\histogram.obj  /Tp"..\source\histos\histogram.cpp" 1> cl_exe_error
514@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
515@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
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\EventManager.obj  /Tp"..\source\tools\EventManager.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
524@IF %obuild_verbose% == yes @ECHO OFF
525
526FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
527cd "%obuild_bhep_path%\%obuild_dir_bin%"
528IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
529FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
530cd "%obuild_pwd_bhep_0%"
531SET obuild_pwd_bhep_0=
532IF NOT %obuild_platform_result% == yes GOTO end_if_platform_59
533SET obuild_cxx_linker_command=c++
534:end_if_platform_59
535SET obuild_platform_result=
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% Linux`) 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_60
543SET obuild_cxx_linker_command=c++
544:end_if_platform_60
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% OSF1`) 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_61
553SET obuild_cxx_linker_command=cxx
554:end_if_platform_61
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% Windows_NT`) 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_62
563SET obuild_cxx_linker_command=link.exe
564:end_if_platform_62
565SET obuild_platform_result=
566IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
567
568FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
569cd "%obuild_bhep_path%\%obuild_dir_bin%"
570IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
571FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
572cd "%obuild_pwd_bhep_0%"
573SET obuild_pwd_bhep_0=
574IF NOT %obuild_platform_result% == yes GOTO end_if_platform_63
575SET obuild_cxx_linker_debug=-g
576:end_if_platform_63
577SET obuild_platform_result=
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% Linux`) 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_64
585SET obuild_cxx_linker_debug=-g
586:end_if_platform_64
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% OSF1`) 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_65
595SET obuild_cxx_linker_debug=-g
596:end_if_platform_65
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% Windows_NT`) 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_66
605SET obuild_cxx_linker_debug=/DEBUG
606:end_if_platform_66
607SET obuild_platform_result=
608
609FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
610cd "%obuild_bhep_path%\%obuild_dir_bin%"
611IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
612FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
613cd "%obuild_pwd_bhep_0%"
614SET obuild_pwd_bhep_0=
615IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67
616SET obuild_cxx_linker_options=/nologo
617:end_if_platform_67
618SET obuild_platform_result=
619
620IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_bhep_sh_68
621  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
622  GOTO end_if_db_build_lib_bhep_sh_68
623:else_if_db_build_lib_bhep_sh_68
624  SET obuild_cxx_linker_debug_local=
625:end_if_db_build_lib_bhep_sh_68
626
627IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_bhep_sh_69
628  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
629  GOTO end_if_opt_build_lib_bhep_sh_69
630:else_if_opt_build_lib_bhep_sh_69
631  SET obuild_cxx_linker_optimize_local=
632:end_if_opt_build_lib_bhep_sh_69
633
634FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_bhep_0=%%d
635cd "%obuild_bhep_path%\%obuild_dir_bin%"
636IF EXIST .\lib_bhep\tmp_objs DEL .\lib_bhep\tmp_objs
637FOR %%f IN (.\lib_bhep\*.obj) DO ECHO %%f >> .\lib_bhep\tmp_objs
638
639REM # Create the archive library bhep :
640@IF %obuild_verbose% == yes @ECHO ON
641lib.exe /nologo /machine:ix86 /out:.\lib_bhep\bhep.arc @.\lib_bhep\tmp_objs
642@IF ERRORLEVEL 1 @GOTO obuild_return
643@IF %obuild_verbose% == yes @ECHO OFF
644
645REM # Build the obuild_windef.exe utility program :
646cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_bhep_path%\obuild\cpp\obuild_windef.c" 1> NUL
647IF EXIST obuild_windef.obj DEL obuild_windef.obj
648
649REM # Building the .def file :
650@IF %obuild_verbose% == yes @ECHO ON
651dumpbin.exe /symbols /out:.\lib_bhep\tmp .\lib_bhep\bhep.arc 1> dumpbin_exe_error .\lib_bhep\bhep.arc
652@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
653@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
654@IF %obuild_verbose% == yes @ECHO OFF
655.\obuild_windef.exe bhep < .\lib_bhep\tmp > .\lib_bhep\bhep.def
656REM # Building the linking library :
657REM # It produces a .exp file.
658@IF %obuild_verbose% == yes @ECHO ON
659lib.exe /nologo /machine:ix86 /out:.\bhep.lib /def:.\lib_bhep\bhep.def 1> lib_exe_error
660@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
661@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
662@IF %obuild_verbose% == yes @ECHO OFF
663
664REM # Building the DLL :
665IF EXIST .\bhep.dll DEL .\bhep.dll
666@IF %obuild_verbose% == yes @ECHO ON
667link.exe /nologo /dll /out:.\bhep.dll .\bhep.exp .\lib_bhep\bhep.arc %obuild_linked_libraries%
668@IF %obuild_verbose% == yes @ECHO OFF
669
670cd "%obuild_pwd_bhep_0%"
671SET obuild_pwd_bhep_0=
672REM # Some cleanup :
673IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs" DEL "%obuild_bhep_path%\%obuild_dir_bin%\lib_bhep\tmp_objs"
674IF EXIST "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp" DEL "%obuild_bhep_path%\%obuild_dir_bin%\bhep.exp"
675
676:obuild_return
677ENDLOCAL
678@ECHO ON
Note: See TracBrowser for help on using the repository browser.