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

Last change on this file since 199 was 199, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 27.1 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% Darwin`) 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_4
121SET obuild_cxx_command=c++
122:end_if_platform_4
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% Linux`) 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_5
131SET obuild_cxx_command=c++
132:end_if_platform_5
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% OSF1`) 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_6
141SET obuild_cxx_command=cxx
142:end_if_platform_6
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% Windows_NT`) 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_7
151SET obuild_cxx_command=cl.exe
152:end_if_platform_7
153SET obuild_platform_result=
154IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
155
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% Darwin`) 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_8
163SET obuild_cxx_optimize=-O
164:end_if_platform_8
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% Linux`) 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_9
173SET obuild_cxx_optimize=-O
174:end_if_platform_9
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% OSF1`) 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_10
183SET obuild_cxx_optimize=-O
184:end_if_platform_10
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% Windows_NT`) 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_11
193SET obuild_cxx_optimize=/O2
194:end_if_platform_11
195SET obuild_platform_result=
196
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% Darwin`) 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_12
204SET obuild_cxx_debug=-g
205:end_if_platform_12
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% Linux`) 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_13
214SET obuild_cxx_debug=-g
215:end_if_platform_13
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% OSF1`) 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_14
224SET obuild_cxx_debug=-g
225:end_if_platform_14
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% Windows_NT`) 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_15
234SET obuild_cxx_debug=/ZI /Od
235:end_if_platform_15
236SET obuild_platform_result=
237
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% Linux`) 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_16
245SET obuild_cxx_options=-fPIC
246:end_if_platform_16
247SET obuild_platform_result=
248FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
249cd "%obuild_snova_path%\%obuild_dir_bin%"
250IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
251FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
252cd "%obuild_pwd_snova_0%"
253SET obuild_pwd_snova_0=
254IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
255SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
256:end_if_platform_17
257SET obuild_platform_result=
258
259IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_18
260  SET obuild_cxx_debug_local=%obuild_cxx_debug%
261  GOTO end_if_db_build_lib_snova_sh_18
262:else_if_db_build_lib_snova_sh_18
263  SET obuild_cxx_debug_local=
264:end_if_db_build_lib_snova_sh_18
265
266IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_19
267  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
268  GOTO end_if_opt_build_lib_snova_sh_19
269:else_if_opt_build_lib_snova_sh_19
270  SET obuild_cxx_optimize_local=
271:end_if_opt_build_lib_snova_sh_19
272
273
274IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%" MKDIR "%obuild_snova_path%\%obuild_dir_bin%"
275IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\obuild_find.exe" (
276  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
277  IF EXIST obuild_find.obj DEL obuild_find.obj
278)
279FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
280cd "%obuild_snova_path%\%obuild_dir_bin%"
281IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
282FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
283cd "%obuild_pwd_snova_0%"
284SET obuild_pwd_snova_0=
285IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
286FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
287cd "%obuild_snova_path%\%obuild_dir_bin%"
288IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
289FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
290cd "%obuild_pwd_snova_0%"
291SET obuild_pwd_snova_0=
292IF NOT DEFINED obuild_HDF5_path  ECHO Can't find HDF5 package.  && GOTO obuild_return
293
294SET obuild_cxx_includes=/I"%obuild_snova_path%"
295SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
296SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
297SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
298SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
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_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
302FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
303cd "%obuild_pwd_snova_0%"
304SET obuild_pwd_snova_0=
305IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
306SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
307:end_if_platform_25
308SET obuild_platform_result=
309FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
310cd "%obuild_snova_path%\%obuild_dir_bin%"
311IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
312FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
313cd "%obuild_pwd_snova_0%"
314SET obuild_pwd_snova_0=
315IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
316SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
317:end_if_platform_26
318SET obuild_platform_result=
319SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
320
321IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
322IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snova"
323
324@IF %obuild_verbose% == yes @ECHO ON
325cd "%obuild_snova_path%\%obuild_dir_bin%"
326%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
327@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
328@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
329cd "%obuild_snova_path%\obuild"
330
331cd "%obuild_snova_path%\%obuild_dir_bin%"
332%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
333@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
334@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
335cd "%obuild_snova_path%\obuild"
336
337cd "%obuild_snova_path%\%obuild_dir_bin%"
338%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
339@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
340@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
341cd "%obuild_snova_path%\obuild"
342
343cd "%obuild_snova_path%\%obuild_dir_bin%"
344%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
345@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
346@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
347cd "%obuild_snova_path%\obuild"
348
349cd "%obuild_snova_path%\%obuild_dir_bin%"
350%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
351@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
352@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
353cd "%obuild_snova_path%\obuild"
354
355cd "%obuild_snova_path%\%obuild_dir_bin%"
356%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
357@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
358@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
359cd "%obuild_snova_path%\obuild"
360
361cd "%obuild_snova_path%\%obuild_dir_bin%"
362%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
363@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
364@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
365cd "%obuild_snova_path%\obuild"
366
367cd "%obuild_snova_path%\%obuild_dir_bin%"
368%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
369@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
370@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
371cd "%obuild_snova_path%\obuild"
372
373cd "%obuild_snova_path%\%obuild_dir_bin%"
374%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
375@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
376@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
377cd "%obuild_snova_path%\obuild"
378
379cd "%obuild_snova_path%\%obuild_dir_bin%"
380%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
381@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
382@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
383cd "%obuild_snova_path%\obuild"
384
385cd "%obuild_snova_path%\%obuild_dir_bin%"
386%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
387@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
388@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
389cd "%obuild_snova_path%\obuild"
390
391cd "%obuild_snova_path%\%obuild_dir_bin%"
392%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
393@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
394@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
395cd "%obuild_snova_path%\obuild"
396
397cd "%obuild_snova_path%\%obuild_dir_bin%"
398%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
399@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
400@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
401cd "%obuild_snova_path%\obuild"
402
403cd "%obuild_snova_path%\%obuild_dir_bin%"
404%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
405@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
406@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
407cd "%obuild_snova_path%\obuild"
408
409cd "%obuild_snova_path%\%obuild_dir_bin%"
410%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
411@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
412@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
413cd "%obuild_snova_path%\obuild"
414
415@IF %obuild_verbose% == yes @ECHO OFF
416
417FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
418cd "%obuild_snova_path%\%obuild_dir_bin%"
419IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
420FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
421cd "%obuild_pwd_snova_0%"
422SET obuild_pwd_snova_0=
423IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
424SET obuild_cxx_linker_command=c++
425:end_if_platform_43
426SET obuild_platform_result=
427FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
428cd "%obuild_snova_path%\%obuild_dir_bin%"
429IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
430FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
431cd "%obuild_pwd_snova_0%"
432SET obuild_pwd_snova_0=
433IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
434SET obuild_cxx_linker_command=c++
435:end_if_platform_44
436SET obuild_platform_result=
437FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
438cd "%obuild_snova_path%\%obuild_dir_bin%"
439IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
440FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
441cd "%obuild_pwd_snova_0%"
442SET obuild_pwd_snova_0=
443IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
444SET obuild_cxx_linker_command=cxx
445:end_if_platform_45
446SET obuild_platform_result=
447FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
448cd "%obuild_snova_path%\%obuild_dir_bin%"
449IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
450FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
451cd "%obuild_pwd_snova_0%"
452SET obuild_pwd_snova_0=
453IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
454SET obuild_cxx_linker_command=link.exe
455:end_if_platform_46
456SET obuild_platform_result=
457IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
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% Darwin`) 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_47
466SET obuild_cxx_linker_debug=-g
467:end_if_platform_47
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% Linux`) 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_48
476SET obuild_cxx_linker_debug=-g
477:end_if_platform_48
478SET obuild_platform_result=
479FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
480cd "%obuild_snova_path%\%obuild_dir_bin%"
481IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
482FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
483cd "%obuild_pwd_snova_0%"
484SET obuild_pwd_snova_0=
485IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
486SET obuild_cxx_linker_debug=-g
487:end_if_platform_49
488SET obuild_platform_result=
489FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
490cd "%obuild_snova_path%\%obuild_dir_bin%"
491IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
492FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
493cd "%obuild_pwd_snova_0%"
494SET obuild_pwd_snova_0=
495IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
496SET obuild_cxx_linker_debug=/DEBUG
497:end_if_platform_50
498SET obuild_platform_result=
499
500FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
501cd "%obuild_snova_path%\%obuild_dir_bin%"
502IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
503FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
504cd "%obuild_pwd_snova_0%"
505SET obuild_pwd_snova_0=
506IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
507SET obuild_cxx_linker_options=/nologo
508:end_if_platform_51
509SET obuild_platform_result=
510
511IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_52
512  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
513  GOTO end_if_db_build_lib_snova_sh_52
514:else_if_db_build_lib_snova_sh_52
515  SET obuild_cxx_linker_debug_local=
516:end_if_db_build_lib_snova_sh_52
517
518IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_53
519  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
520  GOTO end_if_opt_build_lib_snova_sh_53
521:else_if_opt_build_lib_snova_sh_53
522  SET obuild_cxx_linker_optimize_local=
523:end_if_opt_build_lib_snova_sh_53
524
525FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
526cd "%obuild_snova_path%\%obuild_dir_bin%"
527IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs
528FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs
529
530REM # Create the archive library snova :
531@IF %obuild_verbose% == yes @ECHO ON
532lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs
533@IF ERRORLEVEL 1 @GOTO obuild_return
534@IF %obuild_verbose% == yes @ECHO OFF
535
536REM # Build the obuild_windef.exe utility program :
537cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL
538IF EXIST obuild_windef.obj DEL obuild_windef.obj
539
540REM # Building the .def file :
541@IF %obuild_verbose% == yes @ECHO ON
542dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc 1> dumpbin_exe_error .\lib_snova\snova.arc
543@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
544@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
545@IF %obuild_verbose% == yes @ECHO OFF
546.\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def
547REM # Building the linking library :
548REM # It produces a .exp file.
549@IF %obuild_verbose% == yes @ECHO ON
550lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def 1> lib_exe_error
551@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
552@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
553@IF %obuild_verbose% == yes @ECHO OFF
554
555REM # Building the DLL :
556IF EXIST .\snova.dll DEL .\snova.dll
557@IF %obuild_verbose% == yes @ECHO ON
558link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries%
559@IF %obuild_verbose% == yes @ECHO OFF
560
561cd "%obuild_pwd_snova_0%"
562SET obuild_pwd_snova_0=
563REM # Some cleanup :
564IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs"
565IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snova.exp"
566
567:obuild_return
568ENDLOCAL
569@ECHO ON
Note: See TracBrowser for help on using the repository browser.