source: build/snova/trunk/obuild/DOS/build_lib_snvertex.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: 25.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_snvertex
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_snvertex_sh_22
280  SET obuild_cxx_debug_local=%obuild_cxx_debug%
281  GOTO end_if_db_build_lib_snvertex_sh_22
282:else_if_db_build_lib_snvertex_sh_22
283  SET obuild_cxx_debug_local=
284:end_if_db_build_lib_snvertex_sh_22
285
286IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_23
287  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
288  GOTO end_if_opt_build_lib_snvertex_sh_23
289:else_if_opt_build_lib_snvertex_sh_23
290  SET obuild_cxx_optimize_local=
291:end_if_opt_build_lib_snvertex_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%\source\SNvertex\include"
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_bhep_path%"
311FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
312cd "%obuild_snova_path%\%obuild_dir_bin%"
313IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
314FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
315cd "%obuild_pwd_snova_0%"
316SET obuild_pwd_snova_0=
317IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
318SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
319:end_if_platform_28
320SET obuild_platform_result=
321
322IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" RMDIR /S /Q "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex"
323IF NOT EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex" MKDIR "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex"
324
325@IF %obuild_verbose% == yes @ECHO ON
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_snvertex\CALO_basic_VG.obj  /Tp"..\source\SNvertex\src\CALO_basic_VG.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_snvertex\base_VG.obj  /Tp"..\source\SNvertex\src\base_VG.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_snvertex\base_VG_factory.obj  /Tp"..\source\SNvertex\src\base_VG_factory.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_snvertex\base_geom_VG.obj  /Tp"..\source\SNvertex\src\base_geom_VG.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_snvertex\box_VG.obj  /Tp"..\source\SNvertex\src\box_VG.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_snvertex\cylinder_VG.obj  /Tp"..\source\SNvertex\src\cylinder_VG.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_snvertex\dummy_snvertex.obj  /Tp"..\source\SNvertex\src\dummy_snvertex.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_snvertex\from_file_VG.obj  /Tp"..\source\SNvertex\src\from_file_VG.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
374cd "%obuild_snova_path%\%obuild_dir_bin%"
375%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\snvertex_utils.obj  /Tp"..\source\SNvertex\src\snvertex_utils.cc" 1> cl_exe_error
376@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
377@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
378cd "%obuild_snova_path%\obuild"
379
380cd "%obuild_snova_path%\%obuild_dir_bin%"
381%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\source_simple_VG.obj  /Tp"..\source\SNvertex\src\source_simple_VG.cc" 1> cl_exe_error
382@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
383@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
384cd "%obuild_snova_path%\obuild"
385
386cd "%obuild_snova_path%\%obuild_dir_bin%"
387%obuild_cxx_command% /c %obuild_cxx_debug_local% %obuild_cxx_optimize_local% %obuild_cxx_options% %obuild_cxx_macros% %obuild_cxx_includes% /Fo.\lib_snvertex\spot_VG.obj  /Tp"..\source\SNvertex\src\spot_VG.cc" 1> cl_exe_error
388@IF ERRORLEVEL 1 @TYPE cl_exe_error && @GOTO obuild_return
389@IF NOT ERRORLEVEL 1 @DEL cl_exe_error
390cd "%obuild_snova_path%\obuild"
391
392@IF %obuild_verbose% == yes @ECHO OFF
393
394FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
395cd "%obuild_snova_path%\%obuild_dir_bin%"
396IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
397FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
398cd "%obuild_pwd_snova_0%"
399SET obuild_pwd_snova_0=
400IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
401SET obuild_cxx_linker_command=c++
402:end_if_platform_40
403SET obuild_platform_result=
404FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
405cd "%obuild_snova_path%\%obuild_dir_bin%"
406IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
407FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
408cd "%obuild_pwd_snova_0%"
409SET obuild_pwd_snova_0=
410IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
411SET obuild_cxx_linker_command=c++
412:end_if_platform_41
413SET obuild_platform_result=
414FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
415cd "%obuild_snova_path%\%obuild_dir_bin%"
416IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
417FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
418cd "%obuild_pwd_snova_0%"
419SET obuild_pwd_snova_0=
420IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
421SET obuild_cxx_linker_command=cxx
422:end_if_platform_42
423SET obuild_platform_result=
424FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
425cd "%obuild_snova_path%\%obuild_dir_bin%"
426IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
427FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
428cd "%obuild_pwd_snova_0%"
429SET obuild_pwd_snova_0=
430IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
431SET obuild_cxx_linker_command=link.exe
432:end_if_platform_43
433SET obuild_platform_result=
434IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
435
436FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
437cd "%obuild_snova_path%\%obuild_dir_bin%"
438IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
439FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
440cd "%obuild_pwd_snova_0%"
441SET obuild_pwd_snova_0=
442IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
443SET obuild_cxx_linker_debug=-g
444:end_if_platform_44
445SET obuild_platform_result=
446FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
447cd "%obuild_snova_path%\%obuild_dir_bin%"
448IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
449FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
450cd "%obuild_pwd_snova_0%"
451SET obuild_pwd_snova_0=
452IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
453SET obuild_cxx_linker_debug=-g
454:end_if_platform_45
455SET obuild_platform_result=
456FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
457cd "%obuild_snova_path%\%obuild_dir_bin%"
458IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
459FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
460cd "%obuild_pwd_snova_0%"
461SET obuild_pwd_snova_0=
462IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
463SET obuild_cxx_linker_debug=-g
464:end_if_platform_46
465SET obuild_platform_result=
466FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
467cd "%obuild_snova_path%\%obuild_dir_bin%"
468IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
469FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
470cd "%obuild_pwd_snova_0%"
471SET obuild_pwd_snova_0=
472IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
473SET obuild_cxx_linker_debug=/DEBUG
474:end_if_platform_47
475SET obuild_platform_result=
476
477FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
478cd "%obuild_snova_path%\%obuild_dir_bin%"
479IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
480FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
481cd "%obuild_pwd_snova_0%"
482SET obuild_pwd_snova_0=
483IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
484SET obuild_cxx_linker_options=/nologo
485:end_if_platform_48
486SET obuild_platform_result=
487
488IF NOT %obuild_debug% == yes GOTO else_if_db_build_lib_snvertex_sh_49
489  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
490  GOTO end_if_db_build_lib_snvertex_sh_49
491:else_if_db_build_lib_snvertex_sh_49
492  SET obuild_cxx_linker_debug_local=
493:end_if_db_build_lib_snvertex_sh_49
494
495IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_lib_snvertex_sh_50
496  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
497  GOTO end_if_opt_build_lib_snvertex_sh_50
498:else_if_opt_build_lib_snvertex_sh_50
499  SET obuild_cxx_linker_optimize_local=
500:end_if_opt_build_lib_snvertex_sh_50
501
502FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snova_0=%%d
503cd "%obuild_snova_path%\%obuild_dir_bin%"
504IF EXIST .\lib_snvertex\tmp_objs DEL .\lib_snvertex\tmp_objs
505FOR %%f IN (.\lib_snvertex\*.obj) DO ECHO %%f >> .\lib_snvertex\tmp_objs
506
507REM # Create the archive library snvertex :
508@IF %obuild_verbose% == yes @ECHO ON
509lib.exe /nologo /machine:ix86 /out:.\lib_snvertex\snvertex.arc @.\lib_snvertex\tmp_objs
510@IF ERRORLEVEL 1 @GOTO obuild_return
511@IF %obuild_verbose% == yes @ECHO OFF
512
513REM # Build the obuild_windef.exe utility program :
514cl.exe /nologo /DWIN32 /MD /O2 /W3 /Feobuild_windef.exe "%obuild_snova_path%\obuild\cpp\obuild_windef.c" 1> NUL
515IF EXIST obuild_windef.obj DEL obuild_windef.obj
516
517REM # Building the .def file :
518@IF %obuild_verbose% == yes @ECHO ON
519dumpbin.exe /symbols /out:.\lib_snvertex\tmp .\lib_snvertex\snvertex.arc 1> dumpbin_exe_error .\lib_snvertex\snvertex.arc
520@IF ERRORLEVEL 1 @TYPE dumpbin_exe_error && @GOTO obuild_return
521@IF NOT ERRORLEVEL 1 @DEL dumpbin_exe_error
522@IF %obuild_verbose% == yes @ECHO OFF
523.\obuild_windef.exe snvertex < .\lib_snvertex\tmp > .\lib_snvertex\snvertex.def
524REM # Building the linking library :
525REM # It produces a .exp file.
526@IF %obuild_verbose% == yes @ECHO ON
527lib.exe /nologo /machine:ix86 /out:.\snvertex.lib /def:.\lib_snvertex\snvertex.def 1> lib_exe_error
528@IF ERRORLEVEL 1 @TYPE lib_exe_error && @GOTO obuild_return
529@IF NOT ERRORLEVEL 1 @DEL lib_exe_error
530@IF %obuild_verbose% == yes @ECHO OFF
531
532REM # Building the DLL :
533IF EXIST .\snvertex.dll DEL .\snvertex.dll
534@IF %obuild_verbose% == yes @ECHO ON
535link.exe /nologo /dll /out:.\snvertex.dll .\snvertex.exp .\lib_snvertex\snvertex.arc %obuild_linked_libraries%
536@IF %obuild_verbose% == yes @ECHO OFF
537
538cd "%obuild_pwd_snova_0%"
539SET obuild_pwd_snova_0=
540REM # Some cleanup :
541IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex\tmp_objs" DEL "%obuild_snova_path%\%obuild_dir_bin%\lib_snvertex\tmp_objs"
542IF EXIST "%obuild_snova_path%\%obuild_dir_bin%\snvertex.exp" DEL "%obuild_snova_path%\%obuild_dir_bin%\snvertex.exp"
543
544:obuild_return
545ENDLOCAL
546@ECHO ON
Note: See TracBrowser for help on using the repository browser.