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

Last change on this file since 241 was 241, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 28.2 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% UNIX`) 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_3
111SET Geant4_home=/usr/local/geant4/8.2
112:end_if_platform_3
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% UNIX`) 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_5
121SET HDF5_home=/usr/local/HDF5/1.6.5
122:end_if_platform_5
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% UNIX`) 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_7
131SET zlib_home=/usr
132:end_if_platform_7
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% Darwin`) 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_8
141SET obuild_cxx_command=c++
142:end_if_platform_8
143SET obuild_platform_result=
144FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
145cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
148cd "%obuild_pwd_snova_0%"
149SET obuild_pwd_snova_0=
150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
151SET obuild_cxx_command=c++
152:end_if_platform_9
153SET obuild_platform_result=
154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
155cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
158cd "%obuild_pwd_snova_0%"
159SET obuild_pwd_snova_0=
160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
161SET obuild_cxx_command=cxx
162:end_if_platform_10
163SET obuild_platform_result=
164FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
165cd "%obuild_snova_path%\%obuild_dir_bin%"
166IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
167FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
168cd "%obuild_pwd_snova_0%"
169SET obuild_pwd_snova_0=
170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
171SET obuild_cxx_command=cl.exe
172:end_if_platform_11
173SET obuild_platform_result=
174IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
175
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% Darwin`) 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_12
183SET obuild_cxx_optimize=-O
184:end_if_platform_12
185SET obuild_platform_result=
186FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
187cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
190cd "%obuild_pwd_snova_0%"
191SET obuild_pwd_snova_0=
192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
193SET obuild_cxx_optimize=-O
194:end_if_platform_13
195SET obuild_platform_result=
196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
197cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
200cd "%obuild_pwd_snova_0%"
201SET obuild_pwd_snova_0=
202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
203SET obuild_cxx_optimize=-O
204:end_if_platform_14
205SET obuild_platform_result=
206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
207cd "%obuild_snova_path%\%obuild_dir_bin%"
208IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
209FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
210cd "%obuild_pwd_snova_0%"
211SET obuild_pwd_snova_0=
212IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
213SET obuild_cxx_optimize=/O2
214:end_if_platform_15
215SET obuild_platform_result=
216
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% Darwin`) 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_16
224SET obuild_cxx_debug=-g
225:end_if_platform_16
226SET obuild_platform_result=
227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
228cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
231cd "%obuild_pwd_snova_0%"
232SET obuild_pwd_snova_0=
233IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
234SET obuild_cxx_debug=-g
235:end_if_platform_17
236SET obuild_platform_result=
237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
238cd "%obuild_snova_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% OSF1`) DO SET obuild_platform_result=%%j
241cd "%obuild_pwd_snova_0%"
242SET obuild_pwd_snova_0=
243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
244SET obuild_cxx_debug=-g
245:end_if_platform_18
246SET obuild_platform_result=
247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
248cd "%obuild_snova_path%\%obuild_dir_bin%"
249IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
250FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
251cd "%obuild_pwd_snova_0%"
252SET obuild_pwd_snova_0=
253IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
254SET obuild_cxx_debug=/ZI /Od
255:end_if_platform_19
256SET obuild_platform_result=
257
258FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
259cd "%obuild_snova_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% Linux`) DO SET obuild_platform_result=%%j
262cd "%obuild_pwd_snova_0%"
263SET obuild_pwd_snova_0=
264IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
265SET obuild_cxx_options=-fPIC
266:end_if_platform_20
267SET obuild_platform_result=
268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
269cd "%obuild_snova_path%\%obuild_dir_bin%"
270IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
271FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
272cd "%obuild_pwd_snova_0%"
273SET obuild_pwd_snova_0=
274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
275SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
276:end_if_platform_21
277SET obuild_platform_result=
278
279IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_22
280  SET obuild_cxx_debug_local=%obuild_cxx_debug%
281  GOTO end_if_db_build_lib_snova_sh_22
282:else_if_db_build_lib_snova_sh_22
283  SET obuild_cxx_debug_local=
284:end_if_db_build_lib_snova_sh_22
285
286IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_23
287  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
288  GOTO end_if_opt_build_lib_snova_sh_23
289:else_if_opt_build_lib_snova_sh_23
290  SET obuild_cxx_optimize_local=
291:end_if_opt_build_lib_snova_sh_23
292
293
294IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
295IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" (
296  cl.exe /nologo /DWIN32 /MD /O2 /W3 /GX /GR /Fe"%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" "%obuild_snova_path%\obuild\cpp\obuild_find.cpp" 1> NUL
297  IF EXIST obuild_find.obj DEL obuild_find.obj
298)
299FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
300cd "%obuild_snova_path%\%obuild_dir_bin%"
301IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
302FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
303cd "%obuild_pwd_snova_0%"
304SET obuild_pwd_snova_0=
305IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
306
307SET obuild_cxx_includes=/I"%obuild_snova_path%"
308SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
309SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
310SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
311SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
312FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
313cd "%obuild_snova_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_snova_0%"
317SET obuild_pwd_snova_0=
318IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
319SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
320:end_if_platform_29
321SET obuild_platform_result=
322FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
323cd "%obuild_snova_path%\%obuild_dir_bin%"
324IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
325FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
326cd "%obuild_pwd_snova_0%"
327SET obuild_pwd_snova_0=
328IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
329SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
330:end_if_platform_30
331SET obuild_platform_result=
332FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
333cd "%obuild_snova_path%\%obuild_dir_bin%"
334IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
335FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
336cd "%obuild_pwd_snova_0%"
337SET obuild_pwd_snova_0=
338IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
339SET obuild_cxx_includes=%obuild_cxx_includes% -I${HDF5_home}/include
340:end_if_platform_31
341SET obuild_platform_result=
342
343IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
344IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
345
346@IF %obuild_verbose% == yes @ECHO ON
347cd "%obuild_snova_path%\%obuild_dir_bin%"
348%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
349@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
350@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
351cd "%obuild_snova_path%\obuild"
352
353cd "%obuild_snova_path%\%obuild_dir_bin%"
354%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
355@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
356@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
357cd "%obuild_snova_path%\obuild"
358
359cd "%obuild_snova_path%\%obuild_dir_bin%"
360%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
361@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
362@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
363cd "%obuild_snova_path%\obuild"
364
365cd "%obuild_snova_path%\%obuild_dir_bin%"
366%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
367@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
368@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
369cd "%obuild_snova_path%\obuild"
370
371cd "%obuild_snova_path%\%obuild_dir_bin%"
372%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
373@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
374@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
375cd "%obuild_snova_path%\obuild"
376
377cd "%obuild_snova_path%\%obuild_dir_bin%"
378%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_utils.obj  /Tp"..\source\snova\base\snova_utils.cc" 1> cl_exe_error
379@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
380@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
381cd "%obuild_snova_path%\obuild"
382
383cd "%obuild_snova_path%\%obuild_dir_bin%"
384%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
385@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
386@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
387cd "%obuild_snova_path%\obuild"
388
389cd "%obuild_snova_path%\%obuild_dir_bin%"
390%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
391@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
392@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
393cd "%obuild_snova_path%\obuild"
394
395cd "%obuild_snova_path%\%obuild_dir_bin%"
396%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
397@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
398@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
399cd "%obuild_snova_path%\obuild"
400
401cd "%obuild_snova_path%\%obuild_dir_bin%"
402%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
403@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
404@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
405cd "%obuild_snova_path%\obuild"
406
407cd "%obuild_snova_path%\%obuild_dir_bin%"
408%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
409@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
410@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
411cd "%obuild_snova_path%\obuild"
412
413cd "%obuild_snova_path%\%obuild_dir_bin%"
414%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
415@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
416@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
417cd "%obuild_snova_path%\obuild"
418
419cd "%obuild_snova_path%\%obuild_dir_bin%"
420%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
421@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
422@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
423cd "%obuild_snova_path%\obuild"
424
425cd "%obuild_snova_path%\%obuild_dir_bin%"
426%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
427@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
428@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
429cd "%obuild_snova_path%\obuild"
430
431cd "%obuild_snova_path%\%obuild_dir_bin%"
432%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
433@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
434@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
435cd "%obuild_snova_path%\obuild"
436
437@IF %obuild_verbose% == yes @ECHO OFF
438
439FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
440cd "%obuild_snova_path%\%obuild_dir_bin%"
441IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
442FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
443cd "%obuild_pwd_snova_0%"
444SET obuild_pwd_snova_0=
445IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
446SET obuild_cxx_linker_command=c++
447:end_if_platform_47
448SET obuild_platform_result=
449FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
450cd "%obuild_snova_path%\%obuild_dir_bin%"
451IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
452FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
453cd "%obuild_pwd_snova_0%"
454SET obuild_pwd_snova_0=
455IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
456SET obuild_cxx_linker_command=c++
457:end_if_platform_48
458SET obuild_platform_result=
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% OSF1`) 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_49
466SET obuild_cxx_linker_command=cxx
467:end_if_platform_49
468SET obuild_platform_result=
469FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
470cd "%obuild_snova_path%\%obuild_dir_bin%"
471IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
472FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
473cd "%obuild_pwd_snova_0%"
474SET obuild_pwd_snova_0=
475IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
476SET obuild_cxx_linker_command=link.exe
477:end_if_platform_50
478SET obuild_platform_result=
479IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
480
481FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
482cd "%obuild_snova_path%\%obuild_dir_bin%"
483IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
484FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
485cd "%obuild_pwd_snova_0%"
486SET obuild_pwd_snova_0=
487IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
488SET obuild_cxx_linker_debug=-g
489:end_if_platform_51
490SET obuild_platform_result=
491FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
492cd "%obuild_snova_path%\%obuild_dir_bin%"
493IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
494FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
495cd "%obuild_pwd_snova_0%"
496SET obuild_pwd_snova_0=
497IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
498SET obuild_cxx_linker_debug=-g
499:end_if_platform_52
500SET obuild_platform_result=
501FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
502cd "%obuild_snova_path%\%obuild_dir_bin%"
503IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
504FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
505cd "%obuild_pwd_snova_0%"
506SET obuild_pwd_snova_0=
507IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
508SET obuild_cxx_linker_debug=-g
509:end_if_platform_53
510SET obuild_platform_result=
511FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
512cd "%obuild_snova_path%\%obuild_dir_bin%"
513IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
514FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
515cd "%obuild_pwd_snova_0%"
516SET obuild_pwd_snova_0=
517IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
518SET obuild_cxx_linker_debug=/DEBUG
519:end_if_platform_54
520SET obuild_platform_result=
521
522FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
523cd "%obuild_snova_path%\%obuild_dir_bin%"
524IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
525FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
526cd "%obuild_pwd_snova_0%"
527SET obuild_pwd_snova_0=
528IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
529SET obuild_cxx_linker_options=/nologo
530:end_if_platform_55
531SET obuild_platform_result=
532
533IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_56
534  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
535  GOTO end_if_db_build_lib_snova_sh_56
536:else_if_db_build_lib_snova_sh_56
537  SET obuild_cxx_linker_debug_local=
538:end_if_db_build_lib_snova_sh_56
539
540IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_57
541  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
542  GOTO end_if_opt_build_lib_snova_sh_57
543:else_if_opt_build_lib_snova_sh_57
544  SET obuild_cxx_linker_optimize_local=
545:end_if_opt_build_lib_snova_sh_57
546
547FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
548cd "%obuild_snova_path%\%obuild_dir_bin%"
549IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs
550FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs
551
552REM # Create the archive library snova :
553@IF %obuild_verbose% == yes @ECHO ON
554lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs
555@IF ERRORLEVEL 1 @GOTO obuild_return
556@IF %obuild_verbose% == yes @ECHO OFF
557
558REM # Build the obuild_windef.exe utility program :
559cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL
560IF EXIST obuild_windef.obj DEL obuild_windef.obj
561
562REM # Building the .def file :
563@IF %obuild_verbose% == yes @ECHO ON
564dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc 1> dumpbin_exe_error .\lib_snova\snova.arc
565@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
566@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
567@IF %obuild_verbose% == yes @ECHO OFF
568.\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def
569REM # Building the linking library :
570REM # It produces a .exp file.
571@IF %obuild_verbose% == yes @ECHO ON
572lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def 1> lib_exe_error
573@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
574@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
575@IF %obuild_verbose% == yes @ECHO OFF
576
577REM # Building the DLL :
578IF EXIST .\snova.dll DEL .\snova.dll
579@IF %obuild_verbose% == yes @ECHO ON
580link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries%
581@IF %obuild_verbose% == yes @ECHO OFF
582
583cd "%obuild_pwd_snova_0%"
584SET obuild_pwd_snova_0=
585REM # Some cleanup :
586IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs"
587IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snova.exp"
588
589:obuild_return
590ENDLOCAL
591@ECHO ON
Note: See TracBrowser for help on using the repository browser.