source: build/snova/trunk/obuild/DOS/build_lib_snova.bat @ 130

Last change on this file since 130 was 130, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 24.7 KB
Line 
1@ECHO OFF
2SETLOCAL
3
4REM #
5REM # File produced by the obuild tool version 1.0
6REM # for the package snova with version v2r0p0.
7REM #
8
9REM #////////////////////////////////////////////////
10REM # Usage :
11REM #   DOS> CD some_path\pack\version\obuild
12REM #   DOS> DOS\build_snova
13REM #
14REM #////////////////////////////////////////////////
15
16REM #////////////////////////////////////////////////
17REM #/// Get path of this file :
18REM #////////////////////////////////////////////////
19SET obuild_snova_path=%~dp0
20REM # Remove ending \obuild\DOS\
21SET obuild_snova_path=%obuild_snova_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_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
87
88IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
89IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" (
90  cl.exe /nologo /DWIN32 /MD /O2 /W3  /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_platform.exe" "%obuild_snova_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_snova_0=%%d
95cd "%obuild_snova_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_snova_0%"
99SET obuild_pwd_snova_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_snova_0=%%d
105cd "%obuild_snova_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_snova_0%"
109SET obuild_pwd_snova_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_snova_0=%%d
115cd "%obuild_snova_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_snova_0%"
119SET obuild_pwd_snova_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_snova_0=%%d
125cd "%obuild_snova_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_snova_0%"
129SET obuild_pwd_snova_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_snova_0=%%d
135cd "%obuild_snova_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_snova_0%"
139SET obuild_pwd_snova_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_snova_0=%%d
147cd "%obuild_snova_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_snova_0%"
151SET obuild_pwd_snova_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_snova_0=%%d
157cd "%obuild_snova_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_snova_0%"
161SET obuild_pwd_snova_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_snova_0=%%d
167cd "%obuild_snova_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_snova_0%"
171SET obuild_pwd_snova_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_snova_0=%%d
177cd "%obuild_snova_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_snova_0%"
181SET obuild_pwd_snova_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_snova_0=%%d
188cd "%obuild_snova_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_snova_0%"
192SET obuild_pwd_snova_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_snova_0=%%d
198cd "%obuild_snova_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_snova_0%"
202SET obuild_pwd_snova_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_snova_0=%%d
208cd "%obuild_snova_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_snova_0%"
212SET obuild_pwd_snova_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_snova_0=%%d
218cd "%obuild_snova_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_snova_0%"
222SET obuild_pwd_snova_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_snova_0=%%d
229cd "%obuild_snova_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_snova_0%"
233SET obuild_pwd_snova_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_snova_0=%%d
239cd "%obuild_snova_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_snova_0%"
243SET obuild_pwd_snova_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_snova_sh_16
250  SET obuild_cxx_debug_local=%obuild_cxx_debug%
251  GOTO end_if_db_build_lib_snova_sh_16
252:else_if_db_build_lib_snova_sh_16
253  SET obuild_cxx_debug_local=
254:end_if_db_build_lib_snova_sh_16
255
256IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_17
257  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
258  GOTO end_if_opt_build_lib_snova_sh_17
259:else_if_opt_build_lib_snova_sh_17
260  SET obuild_cxx_optimize_local=
261:end_if_opt_build_lib_snova_sh_17
262
263
264
265SET obuild_cxx_includes=/I"%obuild_snova_path%"
266SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
267SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
268SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
269FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
270cd "%obuild_snova_path%\%obuild_dir_bin%"
271IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
272FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
273cd "%obuild_pwd_snova_0%"
274SET obuild_pwd_snova_0=
275IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
276SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
277:end_if_platform_22
278SET obuild_platform_result=
279
280IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
281IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
282
283@IF %obuild_verbose% == yes @ECHO ON
284cd "%obuild_snova_path%\%obuild_dir_bin%"
285%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\event.obj  /Tp"..\source\snova\base\event.cc" 1> cl_exe_error
286@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
287@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
288cd "%obuild_snova_path%\obuild"
289
290cd "%obuild_snova_path%\%obuild_dir_bin%"
291%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\generator.obj  /Tp"..\source\snova\base\generator.cc" 1> cl_exe_error
292@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
293@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
294cd "%obuild_snova_path%\obuild"
295
296cd "%obuild_snova_path%\%obuild_dir_bin%"
297%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\run.obj  /Tp"..\source\snova\base\run.cc" 1> cl_exe_error
298@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
299@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
300cd "%obuild_snova_path%\obuild"
301
302cd "%obuild_snova_path%\%obuild_dir_bin%"
303%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\snova_const.obj  /Tp"..\source\snova\base\snova_const.cc" 1> cl_exe_error
304@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
305@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
306cd "%obuild_snova_path%\obuild"
307
308cd "%obuild_snova_path%\%obuild_dir_bin%"
309%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snova\snova_mgr.obj  /Tp"..\source\snova\base\snova_mgr.cc" 1> cl_exe_error
310@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
311@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
312cd "%obuild_snova_path%\obuild"
313
314cd "%obuild_snova_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_snova\stacking.obj  /Tp"..\source\snova\base\stacking.cc" 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_snova_path%\obuild"
319
320cd "%obuild_snova_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_snova\stepping.obj  /Tp"..\source\snova\base\stepping.cc" 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_snova_path%\obuild"
325
326cd "%obuild_snova_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_snova\stepping_verbose.obj  /Tp"..\source\snova\base\stepping_verbose.cc" 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_snova_path%\obuild"
331
332cd "%obuild_snova_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_snova\tracking.obj  /Tp"..\source\snova\base\tracking.cc" 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_snova_path%\obuild"
337
338cd "%obuild_snova_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_snova\gen_vtx.obj  /Tp"..\source\snova\vertex\gen_vtx.cc" 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_snova_path%\obuild"
343
344cd "%obuild_snova_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_snova\geometry2.obj  /Tp"..\source\snova\geom\geometry2.cc" 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_snova_path%\obuild"
349
350cd "%obuild_snova_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_snova\materials.obj  /Tp"..\source\snova\geom\materials.cc" 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_snova_path%\obuild"
355
356cd "%obuild_snova_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_snova\nemo_field2.obj  /Tp"..\source\snova\geom\nemo_field2.cc" 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_snova_path%\obuild"
361
362cd "%obuild_snova_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_snova\visibilities2.obj  /Tp"..\source\snova\geom\visibilities2.cc" 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_snova_path%\obuild"
367
368cd "%obuild_snova_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_snova\physics.obj  /Tp"..\source\snova\physics\physics.cc" 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_snova_path%\obuild"
373
374@IF %obuild_verbose% == yes @ECHO OFF
375
376FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
377cd "%obuild_snova_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% Darwin`) DO SET obuild_platform_result=%%j
380cd "%obuild_pwd_snova_0%"
381SET obuild_pwd_snova_0=
382IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
383SET obuild_cxx_linker_command=c++
384:end_if_platform_38
385SET obuild_platform_result=
386FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
387cd "%obuild_snova_path%\%obuild_dir_bin%"
388IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
389FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
390cd "%obuild_pwd_snova_0%"
391SET obuild_pwd_snova_0=
392IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
393SET obuild_cxx_linker_command=c++
394:end_if_platform_39
395SET obuild_platform_result=
396FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
397cd "%obuild_snova_path%\%obuild_dir_bin%"
398IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
399FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
400cd "%obuild_pwd_snova_0%"
401SET obuild_pwd_snova_0=
402IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
403SET obuild_cxx_linker_command=cxx
404:end_if_platform_40
405SET obuild_platform_result=
406FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
407cd "%obuild_snova_path%\%obuild_dir_bin%"
408IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
409FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
410cd "%obuild_pwd_snova_0%"
411SET obuild_pwd_snova_0=
412IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
413SET obuild_cxx_linker_command=link.exe
414:end_if_platform_41
415SET obuild_platform_result=
416IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
417
418FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
419cd "%obuild_snova_path%\%obuild_dir_bin%"
420IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
421FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
422cd "%obuild_pwd_snova_0%"
423SET obuild_pwd_snova_0=
424IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
425SET obuild_cxx_linker_debug=-g
426:end_if_platform_42
427SET obuild_platform_result=
428FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
429cd "%obuild_snova_path%\%obuild_dir_bin%"
430IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
431FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
432cd "%obuild_pwd_snova_0%"
433SET obuild_pwd_snova_0=
434IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
435SET obuild_cxx_linker_debug=-g
436:end_if_platform_43
437SET obuild_platform_result=
438FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
439cd "%obuild_snova_path%\%obuild_dir_bin%"
440IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
441FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
442cd "%obuild_pwd_snova_0%"
443SET obuild_pwd_snova_0=
444IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
445SET obuild_cxx_linker_debug=-g
446:end_if_platform_44
447SET obuild_platform_result=
448FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
449cd "%obuild_snova_path%\%obuild_dir_bin%"
450IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
451FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
452cd "%obuild_pwd_snova_0%"
453SET obuild_pwd_snova_0=
454IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
455SET obuild_cxx_linker_debug=/DEBUG
456:end_if_platform_45
457SET obuild_platform_result=
458
459FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
460cd "%obuild_snova_path%\%obuild_dir_bin%"
461IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
462FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
463cd "%obuild_pwd_snova_0%"
464SET obuild_pwd_snova_0=
465IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
466SET obuild_cxx_linker_options=/nologo
467:end_if_platform_46
468SET obuild_platform_result=
469
470IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_47
471  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
472  GOTO end_if_db_build_lib_snova_sh_47
473:else_if_db_build_lib_snova_sh_47
474  SET obuild_cxx_linker_debug_local=
475:end_if_db_build_lib_snova_sh_47
476
477IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_48
478  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
479  GOTO end_if_opt_build_lib_snova_sh_48
480:else_if_opt_build_lib_snova_sh_48
481  SET obuild_cxx_linker_optimize_local=
482:end_if_opt_build_lib_snova_sh_48
483
484FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
485cd "%obuild_snova_path%\%obuild_dir_bin%"
486IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs
487FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs
488
489REM # Create the archive library snova :
490@IF %obuild_verbose% == yes @ECHO ON
491lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs
492@IF ERRORLEVEL 1 @GOTO obuild_return
493@IF %obuild_verbose% == yes @ECHO OFF
494
495REM # Build the obuild_windef.exe utility program :
496cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL
497IF EXIST obuild_windef.obj DEL obuild_windef.obj
498
499REM # Building the .def file :
500@IF %obuild_verbose% == yes @ECHO ON
501dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc 1> dumpbin_exe_error .\lib_snova\snova.arc
502@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
503@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
504@IF %obuild_verbose% == yes @ECHO OFF
505.\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def
506REM # Building the linking library :
507REM # It produces a .exp file.
508@IF %obuild_verbose% == yes @ECHO ON
509lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def 1> lib_exe_error
510@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
511@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
512@IF %obuild_verbose% == yes @ECHO OFF
513
514REM # Building the DLL :
515IF EXIST .\snova.dll DEL .\snova.dll
516@IF %obuild_verbose% == yes @ECHO ON
517link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries%
518@IF %obuild_verbose% == yes @ECHO OFF
519
520cd "%obuild_pwd_snova_0%"
521SET obuild_pwd_snova_0=
522REM # Some cleanup :
523IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs"
524IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snova.exp"
525
526:obuild_return
527ENDLOCAL
528@ECHO ON
Note: See TracBrowser for help on using the repository browser.