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

Last change on this file since 143 was 143, checked in by barrand, 17 years ago
  • Property svn:executable set to *
File size: 27.5 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 v2r0p1.
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\snova_utils.obj  /Tp"..\source\snova\base\snova_utils.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\event.obj  /Tp"..\source\snova\base\event.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\generator.obj  /Tp"..\source\snova\base\generator.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\run.obj  /Tp"..\source\snova\base\run.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_const.obj  /Tp"..\source\snova\base\snova_const.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_mgr.obj  /Tp"..\source\snova\base\snova_mgr.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\gen_vtx.obj  /Tp"..\source\snova\vertex\gen_vtx.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\geometry2.obj  /Tp"..\source\snova\geom\geometry2.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\materials.obj  /Tp"..\source\snova\geom\materials.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\nemo_field2.obj  /Tp"..\source\snova\geom\nemo_field2.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\visibilities2.obj  /Tp"..\source\snova\geom\visibilities2.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
415cd "%obuild_snova_path%\%obuild_dir_bin%"
416%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
417@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
418@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
419cd "%obuild_snova_path%\obuild"
420
421@IF %obuild_verbose% == yes @ECHO OFF
422
423FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
424cd "%obuild_snova_path%\%obuild_dir_bin%"
425IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
426FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
427cd "%obuild_pwd_snova_0%"
428SET obuild_pwd_snova_0=
429IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
430SET obuild_cxx_linker_command=c++
431:end_if_platform_44
432SET obuild_platform_result=
433FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
434cd "%obuild_snova_path%\%obuild_dir_bin%"
435IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
436FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
437cd "%obuild_pwd_snova_0%"
438SET obuild_pwd_snova_0=
439IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
440SET obuild_cxx_linker_command=c++
441:end_if_platform_45
442SET obuild_platform_result=
443FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
444cd "%obuild_snova_path%\%obuild_dir_bin%"
445IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
446FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
447cd "%obuild_pwd_snova_0%"
448SET obuild_pwd_snova_0=
449IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
450SET obuild_cxx_linker_command=cxx
451:end_if_platform_46
452SET obuild_platform_result=
453FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
454cd "%obuild_snova_path%\%obuild_dir_bin%"
455IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
456FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
457cd "%obuild_pwd_snova_0%"
458SET obuild_pwd_snova_0=
459IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
460SET obuild_cxx_linker_command=link.exe
461:end_if_platform_47
462SET obuild_platform_result=
463IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
464
465FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
466cd "%obuild_snova_path%\%obuild_dir_bin%"
467IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
468FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
469cd "%obuild_pwd_snova_0%"
470SET obuild_pwd_snova_0=
471IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
472SET obuild_cxx_linker_debug=-g
473:end_if_platform_48
474SET obuild_platform_result=
475FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
476cd "%obuild_snova_path%\%obuild_dir_bin%"
477IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
478FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
479cd "%obuild_pwd_snova_0%"
480SET obuild_pwd_snova_0=
481IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
482SET obuild_cxx_linker_debug=-g
483:end_if_platform_49
484SET obuild_platform_result=
485FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
486cd "%obuild_snova_path%\%obuild_dir_bin%"
487IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
488FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
489cd "%obuild_pwd_snova_0%"
490SET obuild_pwd_snova_0=
491IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
492SET obuild_cxx_linker_debug=-g
493:end_if_platform_50
494SET obuild_platform_result=
495FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
496cd "%obuild_snova_path%\%obuild_dir_bin%"
497IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
498FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
499cd "%obuild_pwd_snova_0%"
500SET obuild_pwd_snova_0=
501IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
502SET obuild_cxx_linker_debug=/DEBUG
503:end_if_platform_51
504SET obuild_platform_result=
505
506FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
507cd "%obuild_snova_path%\%obuild_dir_bin%"
508IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
509FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
510cd "%obuild_pwd_snova_0%"
511SET obuild_pwd_snova_0=
512IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
513SET obuild_cxx_linker_options=/nologo
514:end_if_platform_52
515SET obuild_platform_result=
516
517IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snova_sh_53
518  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
519  GOTO end_if_db_build_lib_snova_sh_53
520:else_if_db_build_lib_snova_sh_53
521  SET obuild_cxx_linker_debug_local=
522:end_if_db_build_lib_snova_sh_53
523
524IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snova_sh_54
525  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
526  GOTO end_if_opt_build_lib_snova_sh_54
527:else_if_opt_build_lib_snova_sh_54
528  SET obuild_cxx_linker_optimize_local=
529:end_if_opt_build_lib_snova_sh_54
530
531FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
532cd "%obuild_snova_path%\%obuild_dir_bin%"
533IF EXIST .\lib_snova\tmp_objs DEL .\lib_snova\tmp_objs
534FOR %%f IN (.\lib_snova\*.obj) DO ECHO %%f >> .\lib_snova\tmp_objs
535
536REM # Create the archive library snova :
537@IF %obuild_verbose% == yes @ECHO ON
538lib.exe /nologo /machine:ix86 /out:.\lib_snova\snova.arc @.\lib_snova\tmp_objs
539@IF ERRORLEVEL 1 @GOTO obuild_return
540@IF %obuild_verbose% == yes @ECHO OFF
541
542REM # Build the obuild_windef.exe utility program :
543cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL
544IF EXIST obuild_windef.obj DEL obuild_windef.obj
545
546REM # Building the .def file :
547@IF %obuild_verbose% == yes @ECHO ON
548dumpbin.exe /symbols /out:.\lib_snova\tmp .\lib_snova\snova.arc 1> dumpbin_exe_error .\lib_snova\snova.arc
549@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
550@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
551@IF %obuild_verbose% == yes @ECHO OFF
552.\obuild_windef.exe snova < .\lib_snova\tmp > .\lib_snova\snova.def
553REM # Building the linking library :
554REM # It produces a .exp file.
555@IF %obuild_verbose% == yes @ECHO ON
556lib.exe /nologo /machine:ix86 /out:.\snova.lib /def:.\lib_snova\snova.def 1> lib_exe_error
557@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
558@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
559@IF %obuild_verbose% == yes @ECHO OFF
560
561REM # Building the DLL :
562IF EXIST .\snova.dll DEL .\snova.dll
563@IF %obuild_verbose% == yes @ECHO ON
564link.exe /nologo /dll /out:.\snova.dll .\snova.exp .\lib_snova\snova.arc %obuild_linked_libraries%
565@IF %obuild_verbose% == yes @ECHO OFF
566
567cd "%obuild_pwd_snova_0%"
568SET obuild_pwd_snova_0=
569REM # Some cleanup :
570IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snova\tmp_objs"
571IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snova.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snova.exp"
572
573:obuild_return
574ENDLOCAL
575@ECHO ON
Note: See TracBrowser for help on using the repository browser.