Changeset 137 for snovis


Ignore:
Timestamp:
Feb 9, 2007, 4:59:29 PM (15 years ago)
Author:
barrand
Message:
 
Location:
snovis/trunk/obuild
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • snovis/trunk/obuild/DOS/build_app_prog_snova.bat

    r134 r137  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF 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_snovis_0%"
     99SET obuild_pwd_snovis_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_snovis_0=%%d
     105cd "%obuild_snovis_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_snovis_0%"
     109SET obuild_pwd_snovis_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_snovis_0=%%d
     115cd "%obuild_snovis_path%\%obuild_dir_bin%"
     116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    98118cd "%obuild_pwd_snovis_0%"
    99119SET obuild_pwd_snovis_0=
    100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET snova_platform=Darwin
    102 :end_if_platform_1
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    112 :end_if_platform_3
    113 SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     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_snovis_0=%%d
     125cd "%obuild_snovis_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
    118128cd "%obuild_pwd_snovis_0%"
    119129SET obuild_pwd_snovis_0=
    120130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     131SET obuild_cxx_command=c++
    122132:end_if_platform_5
    123133SET obuild_platform_result=
     
    125135cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     138cd "%obuild_pwd_snovis_0%"
     139SET obuild_pwd_snovis_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_snovis_0=%%d
     145cd "%obuild_snovis_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
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     151SET obuild_cxx_command=cl.exe
    132152:end_if_platform_7
    133153SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     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_snovis_0=%%d
     157cd "%obuild_snovis_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_snovis_0%"
     161SET obuild_pwd_snovis_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_snovis_0=%%d
     167cd "%obuild_snovis_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
    138170cd "%obuild_pwd_snovis_0%"
    139171SET obuild_pwd_snovis_0=
    140172IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET Geant4_home=/usr/local/geant4/8.2
     173SET obuild_cxx_optimize=-O
    142174:end_if_platform_9
    143175SET obuild_platform_result=
     
    145177cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146178IF 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_snovis_0%"
     181SET obuild_pwd_snovis_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_snovis_0=%%d
     187cd "%obuild_snovis_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_snovis_0%"
     191SET obuild_pwd_snovis_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_snovis_0=%%d
     198cd "%obuild_snovis_path%\%obuild_dir_bin%"
     199IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147200FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    148201cd "%obuild_pwd_snovis_0%"
    149202SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_10
     203IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     204SET obuild_cxx_debug=-g
     205:end_if_platform_12
    153206SET obuild_platform_result=
    154207FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    158211cd "%obuild_pwd_snovis_0%"
    159212SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_11
     213IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     214SET obuild_cxx_debug=-g
     215:end_if_platform_13
    163216SET obuild_platform_result=
    164217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168221cd "%obuild_pwd_snovis_0%"
    169222SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    171 SET obuild_cxx_command=cxx
    172 :end_if_platform_12
    173 SET obuild_platform_result=
    174 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    175 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    176 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    178 cd "%obuild_pwd_snovis_0%"
    179 SET obuild_pwd_snovis_0=
    180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    181 SET obuild_cxx_command=cl.exe
    182 :end_if_platform_13
    183 SET obuild_platform_result=
    184 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    185 
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    193 SET obuild_cxx_optimize=-O
     224SET obuild_cxx_debug=-g
    194225:end_if_platform_14
    195226SET obuild_platform_result=
     
    197228cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198229IF 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_snovis_0%"
     232SET obuild_pwd_snovis_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_snovis_0=%%d
     239cd "%obuild_snovis_path%\%obuild_dir_bin%"
     240IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199241FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    200242cd "%obuild_pwd_snovis_0%"
    201243SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_15
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212244IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    213 SET obuild_cxx_optimize=-O
     245SET obuild_cxx_options=-fPIC
    214246:end_if_platform_16
    215247SET obuild_platform_result=
     
    221253SET obuild_pwd_snovis_0=
    222254IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    223 SET obuild_cxx_optimize=/O2
     255SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    224256:end_if_platform_17
    225257SET obuild_platform_result=
    226258
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_18
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_19
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_20
    256 SET obuild_platform_result=
    257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    258 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    259 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    260 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    264 SET obuild_cxx_debug=/ZI /Od
    265 :end_if_platform_21
    266 SET obuild_platform_result=
    267 
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    275 SET obuild_cxx_options=-fPIC
    276 :end_if_platform_22
    277 SET obuild_platform_result=
    278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    279 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    280 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    281 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    282 cd "%obuild_pwd_snovis_0%"
    283 SET obuild_pwd_snovis_0=
    284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    285 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    286 :end_if_platform_23
    287 SET obuild_platform_result=
    288 
    289 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_24
     259IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_18
    290260  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    291   GOTO end_if_db_build_app_prog_snova_sh_24
    292 :else_if_db_build_app_prog_snova_sh_24
     261  GOTO end_if_db_build_app_prog_snova_sh_18
     262:else_if_db_build_app_prog_snova_sh_18
    293263  SET obuild_cxx_debug_local=
    294 :end_if_db_build_app_prog_snova_sh_24
    295 
    296 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_25
     264:end_if_db_build_app_prog_snova_sh_18
     265
     266IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_19
    297267  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    298   GOTO end_if_opt_build_app_prog_snova_sh_25
    299 :else_if_opt_build_app_prog_snova_sh_25
     268  GOTO end_if_opt_build_app_prog_snova_sh_19
     269:else_if_opt_build_app_prog_snova_sh_19
    300270  SET obuild_cxx_optimize_local=
    301 :end_if_opt_build_app_prog_snova_sh_25
     271:end_if_opt_build_app_prog_snova_sh_19
    302272
    303273
     
    310280cd "%obuild_snovis_path%\%obuild_dir_bin%"
    311281IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     282FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     283cd "%obuild_pwd_snovis_0%"
     284SET obuild_pwd_snovis_0=
     285IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     286FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     287cd "%obuild_snovis_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  snova v2r0p0`) DO SET obuild_snova_path=%%j
     290cd "%obuild_pwd_snovis_0%"
     291SET obuild_pwd_snovis_0=
     292IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     293FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     294cd "%obuild_snovis_path%\%obuild_dir_bin%"
     295IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     296FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     297cd "%obuild_pwd_snovis_0%"
     298SET obuild_pwd_snovis_0=
     299IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     300FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     301cd "%obuild_snovis_path%\%obuild_dir_bin%"
     302IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     303FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     304cd "%obuild_pwd_snovis_0%"
     305SET obuild_pwd_snovis_0=
     306IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     307FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     308cd "%obuild_snovis_path%\%obuild_dir_bin%"
     309IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     310FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
     311cd "%obuild_pwd_snovis_0%"
     312SET obuild_pwd_snovis_0=
     313IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
     314FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     315cd "%obuild_snovis_path%\%obuild_dir_bin%"
     316IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    312317FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
    313318cd "%obuild_pwd_snovis_0%"
     
    317322cd "%obuild_snovis_path%\%obuild_dir_bin%"
    318323IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     324FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     325cd "%obuild_pwd_snovis_0%"
     326SET obuild_pwd_snovis_0=
     327IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     328FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     329cd "%obuild_snovis_path%\%obuild_dir_bin%"
     330IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     331FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     332cd "%obuild_pwd_snovis_0%"
     333SET obuild_pwd_snovis_0=
     334IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     335FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     336cd "%obuild_snovis_path%\%obuild_dir_bin%"
     337IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     338FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     339cd "%obuild_pwd_snovis_0%"
     340SET obuild_pwd_snovis_0=
     341IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     342FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     343cd "%obuild_snovis_path%\%obuild_dir_bin%"
     344IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     345FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     346cd "%obuild_pwd_snovis_0%"
     347SET obuild_pwd_snovis_0=
     348IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     349FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     350cd "%obuild_snovis_path%\%obuild_dir_bin%"
     351IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     352FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
     353cd "%obuild_pwd_snovis_0%"
     354SET obuild_pwd_snovis_0=
     355IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
     356FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     357cd "%obuild_snovis_path%\%obuild_dir_bin%"
     358IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    319359FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
    320360cd "%obuild_pwd_snovis_0%"
     
    329369IF NOT DEFINED obuild_zlib_path  ECHO Can't find zlib package.  && GOTO obuild_return
    330370
     371SET obuild_cxx_includes=/I"%obuild_snova_path%"
     372SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
     373SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
     374SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
     375SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    331376FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    332377cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    335380cd "%obuild_pwd_snovis_0%"
    336381SET obuild_pwd_snovis_0=
     382IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
     383SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
     384:end_if_platform_25
     385SET obuild_platform_result=
     386FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     387cd "%obuild_snovis_path%\%obuild_dir_bin%"
     388IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     389FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     390cd "%obuild_pwd_snovis_0%"
     391SET obuild_pwd_snovis_0=
    337392IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    338 SET obuild_cxx_includes=-I${snova_home}
     393SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    339394:end_if_platform_26
    340 SET obuild_platform_result=
    341 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    342 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    343 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    344 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    345 cd "%obuild_pwd_snovis_0%"
    346 SET obuild_pwd_snovis_0=
    347 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    348 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
    349 :end_if_platform_27
    350 SET obuild_platform_result=
    351 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    352 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    353 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    354 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    355 cd "%obuild_pwd_snovis_0%"
    356 SET obuild_pwd_snovis_0=
    357 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    358 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
    359 :end_if_platform_28
    360 SET obuild_platform_result=
    361 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    362 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    363 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    364 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    365 cd "%obuild_pwd_snovis_0%"
    366 SET obuild_pwd_snovis_0=
    367 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    368 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
    369 :end_if_platform_29
    370 SET obuild_platform_result=
    371 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    372 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    373 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    374 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    375 cd "%obuild_pwd_snovis_0%"
    376 SET obuild_pwd_snovis_0=
    377 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    378 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
    379 :end_if_platform_30
    380 SET obuild_platform_result=
    381 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    382 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    383 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    384 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    385 cd "%obuild_pwd_snovis_0%"
    386 SET obuild_pwd_snovis_0=
    387 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    388 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    389 :end_if_platform_31
    390 SET obuild_platform_result=
    391 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    392 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    393 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    394 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    395 cd "%obuild_pwd_snovis_0%"
    396 SET obuild_pwd_snovis_0=
    397 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    398 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    399 :end_if_platform_32
    400395SET obuild_platform_result=
    401396SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    419414cd "%obuild_pwd_snovis_0%"
    420415SET obuild_pwd_snovis_0=
     416IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
     417SET obuild_cxx_linker_command=c++
     418:end_if_platform_29
     419SET obuild_platform_result=
     420FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     421cd "%obuild_snovis_path%\%obuild_dir_bin%"
     422IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     423FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     424cd "%obuild_pwd_snovis_0%"
     425SET obuild_pwd_snovis_0=
     426IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
     427SET obuild_cxx_linker_command=c++
     428:end_if_platform_30
     429SET obuild_platform_result=
     430FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     431cd "%obuild_snovis_path%\%obuild_dir_bin%"
     432IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     433FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     434cd "%obuild_pwd_snovis_0%"
     435SET obuild_pwd_snovis_0=
     436IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
     437SET obuild_cxx_linker_command=cxx
     438:end_if_platform_31
     439SET obuild_platform_result=
     440FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     441cd "%obuild_snovis_path%\%obuild_dir_bin%"
     442IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     443FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     444cd "%obuild_pwd_snovis_0%"
     445SET obuild_pwd_snovis_0=
     446IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
     447SET obuild_cxx_linker_command=link.exe
     448:end_if_platform_32
     449SET obuild_platform_result=
     450IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     451
     452FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     453cd "%obuild_snovis_path%\%obuild_dir_bin%"
     454IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     455FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     456cd "%obuild_pwd_snovis_0%"
     457SET obuild_pwd_snovis_0=
     458IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
     459SET obuild_cxx_linker_debug=-g
     460:end_if_platform_33
     461SET obuild_platform_result=
     462FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     463cd "%obuild_snovis_path%\%obuild_dir_bin%"
     464IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     465FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     466cd "%obuild_pwd_snovis_0%"
     467SET obuild_pwd_snovis_0=
     468IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
     469SET obuild_cxx_linker_debug=-g
     470:end_if_platform_34
     471SET obuild_platform_result=
     472FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     473cd "%obuild_snovis_path%\%obuild_dir_bin%"
     474IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     475FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     476cd "%obuild_pwd_snovis_0%"
     477SET obuild_pwd_snovis_0=
    421478IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
    422 SET obuild_cxx_linker_command=c++
     479SET obuild_cxx_linker_debug=-g
    423480:end_if_platform_35
    424481SET obuild_platform_result=
     
    426483cd "%obuild_snovis_path%\%obuild_dir_bin%"
    427484IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    428 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     485FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    429486cd "%obuild_pwd_snovis_0%"
    430487SET obuild_pwd_snovis_0=
    431488IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
    432 SET obuild_cxx_linker_command=c++
     489SET obuild_cxx_linker_debug=/DEBUG
    433490:end_if_platform_36
    434491SET obuild_platform_result=
    435 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    436 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    437 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    438 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     492
     493FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     494cd "%obuild_snovis_path%\%obuild_dir_bin%"
     495IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     496FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    439497cd "%obuild_pwd_snovis_0%"
    440498SET obuild_pwd_snovis_0=
    441499IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    442 SET obuild_cxx_linker_command=cxx
     500SET obuild_cxx_linker_options=/nologo
    443501:end_if_platform_37
    444502SET obuild_platform_result=
    445 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    446 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    447 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    448 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    449 cd "%obuild_pwd_snovis_0%"
    450 SET obuild_pwd_snovis_0=
    451 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    452 SET obuild_cxx_linker_command=link.exe
    453 :end_if_platform_38
    454 SET obuild_platform_result=
    455 IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
    456 
    457 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    458 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    459 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    460 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    461 cd "%obuild_pwd_snovis_0%"
    462 SET obuild_pwd_snovis_0=
    463 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    464 SET obuild_cxx_linker_debug=-g
    465 :end_if_platform_39
    466 SET obuild_platform_result=
    467 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    468 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    469 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    470 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    471 cd "%obuild_pwd_snovis_0%"
    472 SET obuild_pwd_snovis_0=
    473 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    474 SET obuild_cxx_linker_debug=-g
    475 :end_if_platform_40
    476 SET obuild_platform_result=
    477 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    478 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    479 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    480 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    481 cd "%obuild_pwd_snovis_0%"
    482 SET obuild_pwd_snovis_0=
    483 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    484 SET obuild_cxx_linker_debug=-g
    485 :end_if_platform_41
    486 SET obuild_platform_result=
    487 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    488 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    489 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    490 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    491 cd "%obuild_pwd_snovis_0%"
    492 SET obuild_pwd_snovis_0=
    493 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    494 SET obuild_cxx_linker_debug=/DEBUG
    495 :end_if_platform_42
    496 SET obuild_platform_result=
    497 
    498 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    499 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    500 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    501 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    502 cd "%obuild_pwd_snovis_0%"
    503 SET obuild_pwd_snovis_0=
    504 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    505 SET obuild_cxx_linker_options=/nologo
    506 :end_if_platform_43
    507 SET obuild_platform_result=
    508 
    509 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_44
     503
     504IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_38
    510505  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    511   GOTO end_if_db_build_app_prog_snova_sh_44
    512 :else_if_db_build_app_prog_snova_sh_44
     506  GOTO end_if_db_build_app_prog_snova_sh_38
     507:else_if_db_build_app_prog_snova_sh_38
    513508  SET obuild_cxx_linker_debug_local=
    514 :end_if_db_build_app_prog_snova_sh_44
    515 
    516 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_45
     509:end_if_db_build_app_prog_snova_sh_38
     510
     511IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_39
    517512  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    518   GOTO end_if_opt_build_app_prog_snova_sh_45
    519 :else_if_opt_build_app_prog_snova_sh_45
     513  GOTO end_if_opt_build_app_prog_snova_sh_39
     514:else_if_opt_build_app_prog_snova_sh_39
    520515  SET obuild_cxx_linker_optimize_local=
    521 :end_if_opt_build_app_prog_snova_sh_45
    522 
    523 SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
    524 SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
     516:end_if_opt_build_app_prog_snova_sh_39
     517
     518SET obuild_linked_libraries="%obuild_snova_path%\%obuild_dir_bin%\snova.lib"
     519SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib"
     520SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib"
     521SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib"
     522SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib"
    525523SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces
    526524FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    530528cd "%obuild_pwd_snovis_0%"
    531529SET obuild_pwd_snovis_0=
    532 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
     530IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    533531SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
    534 :end_if_platform_49
     532:end_if_platform_46
    535533SET obuild_platform_result=
    536534FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    540538cd "%obuild_pwd_snovis_0%"
    541539SET obuild_pwd_snovis_0=
    542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
     540IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    543541SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    544 :end_if_platform_50
     542:end_if_platform_47
    545543SET obuild_platform_result=
    546544SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
  • snovis/trunk/obuild/DOS/build_app_snovis_session.bat

    r134 r137  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF 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_snovis_0%"
     99SET obuild_pwd_snovis_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_snovis_0=%%d
     105cd "%obuild_snovis_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_snovis_0%"
     109SET obuild_pwd_snovis_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_snovis_0=%%d
     115cd "%obuild_snovis_path%\%obuild_dir_bin%"
     116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    98118cd "%obuild_pwd_snovis_0%"
    99119SET obuild_pwd_snovis_0=
    100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET snova_platform=Darwin
    102 :end_if_platform_1
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    112 :end_if_platform_3
    113 SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     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_snovis_0=%%d
     125cd "%obuild_snovis_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
    118128cd "%obuild_pwd_snovis_0%"
    119129SET obuild_pwd_snovis_0=
    120130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     131SET obuild_cxx_command=c++
    122132:end_if_platform_5
    123133SET obuild_platform_result=
     
    125135cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     138cd "%obuild_pwd_snovis_0%"
     139SET obuild_pwd_snovis_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_snovis_0=%%d
     145cd "%obuild_snovis_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
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     151SET obuild_cxx_command=cl.exe
    132152:end_if_platform_7
    133153SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     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_snovis_0=%%d
     157cd "%obuild_snovis_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_snovis_0%"
     161SET obuild_pwd_snovis_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_snovis_0=%%d
     167cd "%obuild_snovis_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
    138170cd "%obuild_pwd_snovis_0%"
    139171SET obuild_pwd_snovis_0=
    140172IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET Geant4_home=/usr/local/geant4/8.2
     173SET obuild_cxx_optimize=-O
    142174:end_if_platform_9
    143175SET obuild_platform_result=
     
    145177cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146178IF 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_snovis_0%"
     181SET obuild_pwd_snovis_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_snovis_0=%%d
     187cd "%obuild_snovis_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_snovis_0%"
     191SET obuild_pwd_snovis_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_snovis_0=%%d
     198cd "%obuild_snovis_path%\%obuild_dir_bin%"
     199IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147200FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    148201cd "%obuild_pwd_snovis_0%"
    149202SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_10
     203IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     204SET obuild_cxx_debug=-g
     205:end_if_platform_12
    153206SET obuild_platform_result=
    154207FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    158211cd "%obuild_pwd_snovis_0%"
    159212SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_11
     213IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     214SET obuild_cxx_debug=-g
     215:end_if_platform_13
    163216SET obuild_platform_result=
    164217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168221cd "%obuild_pwd_snovis_0%"
    169222SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    171 SET obuild_cxx_command=cxx
    172 :end_if_platform_12
     223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     224SET obuild_cxx_debug=-g
     225:end_if_platform_14
    173226SET obuild_platform_result=
    174227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    178231cd "%obuild_pwd_snovis_0%"
    179232SET obuild_pwd_snovis_0=
    180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    181 SET obuild_cxx_command=cl.exe
    182 :end_if_platform_13
    183 SET obuild_platform_result=
    184 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    185 
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_14
    195 SET obuild_platform_result=
     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
    196238FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197239cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    200242cd "%obuild_pwd_snovis_0%"
    201243SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_15
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212244IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    213 SET obuild_cxx_optimize=-O
     245SET obuild_cxx_options=-fPIC
    214246:end_if_platform_16
    215247SET obuild_platform_result=
     
    221253SET obuild_pwd_snovis_0=
    222254IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    223 SET obuild_cxx_optimize=/O2
     255SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    224256:end_if_platform_17
    225257SET obuild_platform_result=
    226258
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_18
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_19
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_20
    256 SET obuild_platform_result=
    257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    258 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    259 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    260 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    264 SET obuild_cxx_debug=/ZI /Od
    265 :end_if_platform_21
    266 SET obuild_platform_result=
    267 
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    275 SET obuild_cxx_options=-fPIC
    276 :end_if_platform_22
    277 SET obuild_platform_result=
    278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    279 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    280 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    281 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    282 cd "%obuild_pwd_snovis_0%"
    283 SET obuild_pwd_snovis_0=
    284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    285 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    286 :end_if_platform_23
    287 SET obuild_platform_result=
    288 
    289 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_24
     259IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_18
    290260  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    291   GOTO end_if_db_build_app_snovis_session_sh_24
    292 :else_if_db_build_app_snovis_session_sh_24
     261  GOTO end_if_db_build_app_snovis_session_sh_18
     262:else_if_db_build_app_snovis_session_sh_18
    293263  SET obuild_cxx_debug_local=
    294 :end_if_db_build_app_snovis_session_sh_24
    295 
    296 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_25
     264:end_if_db_build_app_snovis_session_sh_18
     265
     266IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_19
    297267  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    298   GOTO end_if_opt_build_app_snovis_session_sh_25
    299 :else_if_opt_build_app_snovis_session_sh_25
     268  GOTO end_if_opt_build_app_snovis_session_sh_19
     269:else_if_opt_build_app_snovis_session_sh_19
    300270  SET obuild_cxx_optimize_local=
    301 :end_if_opt_build_app_snovis_session_sh_25
     271:end_if_opt_build_app_snovis_session_sh_19
    302272
    303273
     
    310280cd "%obuild_snovis_path%\%obuild_dir_bin%"
    311281IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     282FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     283cd "%obuild_pwd_snovis_0%"
     284SET obuild_pwd_snovis_0=
     285IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     286FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     287cd "%obuild_snovis_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  snova v2r0p0`) DO SET obuild_snova_path=%%j
     290cd "%obuild_pwd_snovis_0%"
     291SET obuild_pwd_snovis_0=
     292IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     293FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     294cd "%obuild_snovis_path%\%obuild_dir_bin%"
     295IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     296FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     297cd "%obuild_pwd_snovis_0%"
     298SET obuild_pwd_snovis_0=
     299IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     300FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     301cd "%obuild_snovis_path%\%obuild_dir_bin%"
     302IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     303FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     304cd "%obuild_pwd_snovis_0%"
     305SET obuild_pwd_snovis_0=
     306IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     307FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     308cd "%obuild_snovis_path%\%obuild_dir_bin%"
     309IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     310FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
     311cd "%obuild_pwd_snovis_0%"
     312SET obuild_pwd_snovis_0=
     313IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
     314FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     315cd "%obuild_snovis_path%\%obuild_dir_bin%"
     316IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    312317FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
    313318cd "%obuild_pwd_snovis_0%"
     
    352357cd "%obuild_snovis_path%\%obuild_dir_bin%"
    353358IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     359FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     360cd "%obuild_pwd_snovis_0%"
     361SET obuild_pwd_snovis_0=
     362IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     363FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     364cd "%obuild_snovis_path%\%obuild_dir_bin%"
     365IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     366FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     367cd "%obuild_pwd_snovis_0%"
     368SET obuild_pwd_snovis_0=
     369IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     370FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     371cd "%obuild_snovis_path%\%obuild_dir_bin%"
     372IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     373FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     374cd "%obuild_pwd_snovis_0%"
     375SET obuild_pwd_snovis_0=
     376IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     377FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     378cd "%obuild_snovis_path%\%obuild_dir_bin%"
     379IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     380FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  snova v2r0p0`) DO SET obuild_snova_path=%%j
     381cd "%obuild_pwd_snovis_0%"
     382SET obuild_pwd_snovis_0=
     383IF NOT DEFINED obuild_snova_path  ECHO Can't find snova package.  && GOTO obuild_return
     384FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     385cd "%obuild_snovis_path%\%obuild_dir_bin%"
     386IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
     387FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  bhep v1r4p2`) DO SET obuild_bhep_path=%%j
     388cd "%obuild_pwd_snovis_0%"
     389SET obuild_pwd_snovis_0=
     390IF NOT DEFINED obuild_bhep_path  ECHO Can't find bhep package.  && GOTO obuild_return
     391FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     392cd "%obuild_snovis_path%\%obuild_dir_bin%"
     393IF NOT EXIST obuild_find.exe  ECHO Program obuild_find.exe not found.  && GOTO obuild_return
    354394FOR /F "usebackq delims=;" %%j IN (`.\obuild_find.exe  HDF5 v1r*`) DO SET obuild_HDF5_path=%%j
    355395cd "%obuild_pwd_snovis_0%"
     
    448488IF NOT DEFINED obuild_CoinGL_path  ECHO Can't find CoinGL package.  && GOTO obuild_return
    449489
     490SET obuild_cxx_includes=/I"%obuild_snova_path%"
     491SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\GeomUtils\include"
     492SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNvertex\include"
     493SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_snova_path%\source\SNgeom2\include"
     494SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_bhep_path%"
    450495FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    451496cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    454499cd "%obuild_pwd_snovis_0%"
    455500SET obuild_pwd_snovis_0=
     501IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
     502SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
     503:end_if_platform_25
     504SET obuild_platform_result=
     505FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     506cd "%obuild_snovis_path%\%obuild_dir_bin%"
     507IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     508FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     509cd "%obuild_pwd_snovis_0%"
     510SET obuild_pwd_snovis_0=
    456511IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
    457 SET obuild_cxx_includes=-I${snova_home}
     512SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    458513:end_if_platform_26
    459 SET obuild_platform_result=
    460 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    461 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    462 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    463 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    464 cd "%obuild_pwd_snovis_0%"
    465 SET obuild_pwd_snovis_0=
    466 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
    467 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
    468 :end_if_platform_27
    469 SET obuild_platform_result=
    470 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    471 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    472 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    473 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    474 cd "%obuild_pwd_snovis_0%"
    475 SET obuild_pwd_snovis_0=
    476 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    477 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
    478 :end_if_platform_28
    479 SET obuild_platform_result=
    480 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    481 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    482 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    483 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    484 cd "%obuild_pwd_snovis_0%"
    485 SET obuild_pwd_snovis_0=
    486 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    487 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
    488 :end_if_platform_29
    489 SET obuild_platform_result=
    490 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    491 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    492 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    493 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    494 cd "%obuild_pwd_snovis_0%"
    495 SET obuild_pwd_snovis_0=
    496 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    497 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
    498 :end_if_platform_30
    499 SET obuild_platform_result=
    500 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    501 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    502 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    503 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    504 cd "%obuild_pwd_snovis_0%"
    505 SET obuild_pwd_snovis_0=
    506 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    507 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    508 :end_if_platform_31
    509 SET obuild_platform_result=
    510 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    511 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    512 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    513 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    514 cd "%obuild_pwd_snovis_0%"
    515 SET obuild_pwd_snovis_0=
    516 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    517 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    518 :end_if_platform_32
    519514SET obuild_platform_result=
    520515SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    542537cd "%obuild_pwd_snovis_0%"
    543538SET obuild_pwd_snovis_0=
     539IF NOT %obuild_platform_result% == yes GOTO end_if_platform_33
     540SET obuild_cxx_linker_command=c++
     541:end_if_platform_33
     542SET obuild_platform_result=
     543FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     544cd "%obuild_snovis_path%\%obuild_dir_bin%"
     545IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     546FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     547cd "%obuild_pwd_snovis_0%"
     548SET obuild_pwd_snovis_0=
     549IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
     550SET obuild_cxx_linker_command=c++
     551:end_if_platform_34
     552SET obuild_platform_result=
     553FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     554cd "%obuild_snovis_path%\%obuild_dir_bin%"
     555IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     556FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     557cd "%obuild_pwd_snovis_0%"
     558SET obuild_pwd_snovis_0=
     559IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
     560SET obuild_cxx_linker_command=cxx
     561:end_if_platform_35
     562SET obuild_platform_result=
     563FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     564cd "%obuild_snovis_path%\%obuild_dir_bin%"
     565IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     566FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     567cd "%obuild_pwd_snovis_0%"
     568SET obuild_pwd_snovis_0=
     569IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
     570SET obuild_cxx_linker_command=link.exe
     571:end_if_platform_36
     572SET obuild_platform_result=
     573IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     574
     575FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     576cd "%obuild_snovis_path%\%obuild_dir_bin%"
     577IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     578FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     579cd "%obuild_pwd_snovis_0%"
     580SET obuild_pwd_snovis_0=
     581IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
     582SET obuild_cxx_linker_debug=-g
     583:end_if_platform_37
     584SET obuild_platform_result=
     585FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     586cd "%obuild_snovis_path%\%obuild_dir_bin%"
     587IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     588FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     589cd "%obuild_pwd_snovis_0%"
     590SET obuild_pwd_snovis_0=
     591IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
     592SET obuild_cxx_linker_debug=-g
     593:end_if_platform_38
     594SET obuild_platform_result=
     595FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     596cd "%obuild_snovis_path%\%obuild_dir_bin%"
     597IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     598FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     599cd "%obuild_pwd_snovis_0%"
     600SET obuild_pwd_snovis_0=
    544601IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
    545 SET obuild_cxx_linker_command=c++
     602SET obuild_cxx_linker_debug=-g
    546603:end_if_platform_39
    547604SET obuild_platform_result=
     
    549606cd "%obuild_snovis_path%\%obuild_dir_bin%"
    550607IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    551 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     608FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    552609cd "%obuild_pwd_snovis_0%"
    553610SET obuild_pwd_snovis_0=
    554611IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    555 SET obuild_cxx_linker_command=c++
     612SET obuild_cxx_linker_debug=/DEBUG
    556613:end_if_platform_40
    557614SET obuild_platform_result=
    558 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    559 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    560 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    561 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     615
     616FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     617cd "%obuild_snovis_path%\%obuild_dir_bin%"
     618IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     619FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    562620cd "%obuild_pwd_snovis_0%"
    563621SET obuild_pwd_snovis_0=
    564622IF NOT %obuild_platform_result% == yes GOTO end_if_platform_41
    565 SET obuild_cxx_linker_command=cxx
     623SET obuild_cxx_linker_options=/nologo
    566624:end_if_platform_41
    567625SET obuild_platform_result=
    568 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    569 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    570 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    571 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    572 cd "%obuild_pwd_snovis_0%"
    573 SET obuild_pwd_snovis_0=
    574 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    575 SET obuild_cxx_linker_command=link.exe
    576 :end_if_platform_42
    577 SET obuild_platform_result=
    578 IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
    579 
    580 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    581 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    582 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    583 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    584 cd "%obuild_pwd_snovis_0%"
    585 SET obuild_pwd_snovis_0=
    586 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    587 SET obuild_cxx_linker_debug=-g
    588 :end_if_platform_43
    589 SET obuild_platform_result=
    590 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    591 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    592 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    593 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    594 cd "%obuild_pwd_snovis_0%"
    595 SET obuild_pwd_snovis_0=
    596 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    597 SET obuild_cxx_linker_debug=-g
    598 :end_if_platform_44
    599 SET obuild_platform_result=
    600 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    601 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    602 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    603 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    604 cd "%obuild_pwd_snovis_0%"
    605 SET obuild_pwd_snovis_0=
    606 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    607 SET obuild_cxx_linker_debug=-g
    608 :end_if_platform_45
    609 SET obuild_platform_result=
    610 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    611 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    612 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    613 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    614 cd "%obuild_pwd_snovis_0%"
    615 SET obuild_pwd_snovis_0=
    616 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    617 SET obuild_cxx_linker_debug=/DEBUG
    618 :end_if_platform_46
    619 SET obuild_platform_result=
    620 
    621 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    622 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    623 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    624 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    625 cd "%obuild_pwd_snovis_0%"
    626 SET obuild_pwd_snovis_0=
    627 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    628 SET obuild_cxx_linker_options=/nologo
    629 :end_if_platform_47
    630 SET obuild_platform_result=
    631 
    632 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_48
     626
     627IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_snovis_session_sh_42
    633628  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    634   GOTO end_if_db_build_app_snovis_session_sh_48
    635 :else_if_db_build_app_snovis_session_sh_48
     629  GOTO end_if_db_build_app_snovis_session_sh_42
     630:else_if_db_build_app_snovis_session_sh_42
    636631  SET obuild_cxx_linker_debug_local=
    637 :end_if_db_build_app_snovis_session_sh_48
    638 
    639 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_49
     632:end_if_db_build_app_snovis_session_sh_42
     633
     634IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_snovis_session_sh_43
    640635  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    641   GOTO end_if_opt_build_app_snovis_session_sh_49
    642 :else_if_opt_build_app_snovis_session_sh_49
     636  GOTO end_if_opt_build_app_snovis_session_sh_43
     637:else_if_opt_build_app_snovis_session_sh_43
    643638  SET obuild_cxx_linker_optimize_local=
    644 :end_if_opt_build_app_snovis_session_sh_49
     639:end_if_opt_build_app_snovis_session_sh_43
    645640
    646641SET obuild_linked_libraries="%obuild_OnX_path%\%obuild_dir_bin%\OnXCore.lib"
    647 SET obuild_linked_libraries=%obuild_linked_libraries% -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
    648 SET obuild_linked_libraries=%obuild_linked_libraries% -L${bhep_home}/Darwin -lbhep
     642SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snova.lib"
     643SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\snvertex.lib"
     644SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\sngeom.lib"
     645SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_snova_path%\%obuild_dir_bin%\geomutils.lib"
     646SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_bhep_path%\%obuild_dir_bin%\bhep.lib"
    649647SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
    650648SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabUIOnX.lib"
    651649SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_G4Lab_path%\%obuild_dir_bin%\G4LabCore.lib"
     650SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4interfaces
    652651FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    653652cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    656655cd "%obuild_pwd_snovis_0%"
    657656SET obuild_pwd_snovis_0=
    658 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
     657IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
    659658SET obuild_linked_libraries=%obuild_linked_libraries% -L${Geant4_home}/lib -lG4readout -lG4run -lG4event -lG4tracking -lG4processes -lG4digits_hits -lG4track -lG4particles -lG4geometry -lG4graphics_reps -lG4materials -lG4intercoms -lG4global
    660 :end_if_platform_56
     659:end_if_platform_54
    661660SET obuild_platform_result=
    662661FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    666665cd "%obuild_pwd_snovis_0%"
    667666SET obuild_pwd_snovis_0=
    668 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
     667IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
    669668SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    670 :end_if_platform_57
     669:end_if_platform_55
    671670SET obuild_platform_result=
    672671SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_Lib_path%\%obuild_dir_bin%\LibXML.lib"
     
    687686cd "%obuild_pwd_snovis_0%"
    688687SET obuild_pwd_snovis_0=
     688IF NOT %obuild_platform_result% == yes GOTO end_if_platform_67
     689SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     690:end_if_platform_67
     691SET obuild_platform_result=
     692FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     693cd "%obuild_snovis_path%\%obuild_dir_bin%"
     694IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     695FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     696cd "%obuild_pwd_snovis_0%"
     697SET obuild_pwd_snovis_0=
     698IF NOT %obuild_platform_result% == yes GOTO end_if_platform_68
     699SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     700:end_if_platform_68
     701SET obuild_platform_result=
     702FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     703cd "%obuild_snovis_path%\%obuild_dir_bin%"
     704IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     705FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     706cd "%obuild_pwd_snovis_0%"
     707SET obuild_pwd_snovis_0=
    689708IF NOT %obuild_platform_result% == yes GOTO end_if_platform_69
    690 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     709SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    691710:end_if_platform_69
    692711SET obuild_platform_result=
     
    694713cd "%obuild_snovis_path%\%obuild_dir_bin%"
    695714IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    696 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     715FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    697716cd "%obuild_pwd_snovis_0%"
    698717SET obuild_pwd_snovis_0=
    699718IF NOT %obuild_platform_result% == yes GOTO end_if_platform_70
    700 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     719SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    701720:end_if_platform_70
    702721SET obuild_platform_result=
     
    704723cd "%obuild_snovis_path%\%obuild_dir_bin%"
    705724IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    706 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     725FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    707726cd "%obuild_pwd_snovis_0%"
    708727SET obuild_pwd_snovis_0=
    709728IF NOT %obuild_platform_result% == yes GOTO end_if_platform_71
    710 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
     729SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    711730:end_if_platform_71
    712731SET obuild_platform_result=
     
    714733cd "%obuild_snovis_path%\%obuild_dir_bin%"
    715734IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    716 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     735FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    717736cd "%obuild_pwd_snovis_0%"
    718737SET obuild_pwd_snovis_0=
    719738IF NOT %obuild_platform_result% == yes GOTO end_if_platform_72
    720 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
     739SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    721740:end_if_platform_72
    722 SET obuild_platform_result=
    723 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    724 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    725 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    726 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    727 cd "%obuild_pwd_snovis_0%"
    728 SET obuild_pwd_snovis_0=
    729 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_73
    730 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    731 :end_if_platform_73
    732 SET obuild_platform_result=
    733 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    734 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    735 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    736 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    737 cd "%obuild_pwd_snovis_0%"
    738 SET obuild_pwd_snovis_0=
    739 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_74
    740 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    741 :end_if_platform_74
    742741SET obuild_platform_result=
    743742
  • snovis/trunk/obuild/DOS/build_dll_snovis.bat

    r134 r137  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF 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_snovis_0%"
     99SET obuild_pwd_snovis_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_snovis_0=%%d
     105cd "%obuild_snovis_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_snovis_0%"
     109SET obuild_pwd_snovis_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_snovis_0=%%d
     115cd "%obuild_snovis_path%\%obuild_dir_bin%"
     116IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97117FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    98118cd "%obuild_pwd_snovis_0%"
    99119SET obuild_pwd_snovis_0=
    100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    101 SET snova_platform=Darwin
    102 :end_if_platform_1
    103 SET obuild_platform_result=
    104 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    105 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    106 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    107 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    108 cd "%obuild_pwd_snovis_0%"
    109 SET obuild_pwd_snovis_0=
    110 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    111 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    112 :end_if_platform_3
    113 SET obuild_platform_result=
    114 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    115 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    116 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    117 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     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_snovis_0=%%d
     125cd "%obuild_snovis_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
    118128cd "%obuild_pwd_snovis_0%"
    119129SET obuild_pwd_snovis_0=
    120130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    121 SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
     131SET obuild_cxx_command=c++
    122132:end_if_platform_5
    123133SET obuild_platform_result=
     
    125135cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    127 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     138cd "%obuild_pwd_snovis_0%"
     139SET obuild_pwd_snovis_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_snovis_0=%%d
     145cd "%obuild_snovis_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
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     151SET obuild_cxx_command=cl.exe
    132152:end_if_platform_7
    133153SET obuild_platform_result=
    134 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    135 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    136 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    137 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     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_snovis_0=%%d
     157cd "%obuild_snovis_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_snovis_0%"
     161SET obuild_pwd_snovis_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_snovis_0=%%d
     167cd "%obuild_snovis_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
    138170cd "%obuild_pwd_snovis_0%"
    139171SET obuild_pwd_snovis_0=
    140172IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET Geant4_home=/usr/local/geant4/8.2
     173SET obuild_cxx_optimize=-O
    142174:end_if_platform_9
    143175SET obuild_platform_result=
     
    145177cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146178IF 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_snovis_0%"
     181SET obuild_pwd_snovis_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_snovis_0=%%d
     187cd "%obuild_snovis_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_snovis_0%"
     191SET obuild_pwd_snovis_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_snovis_0=%%d
     198cd "%obuild_snovis_path%\%obuild_dir_bin%"
     199IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147200FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    148201cd "%obuild_pwd_snovis_0%"
    149202SET obuild_pwd_snovis_0=
    150 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
    151 SET obuild_cxx_command=c++
    152 :end_if_platform_10
     203IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     204SET obuild_cxx_debug=-g
     205:end_if_platform_12
    153206SET obuild_platform_result=
    154207FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    158211cd "%obuild_pwd_snovis_0%"
    159212SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_11
     213IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     214SET obuild_cxx_debug=-g
     215:end_if_platform_13
    163216SET obuild_platform_result=
    164217FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168221cd "%obuild_pwd_snovis_0%"
    169222SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    171 SET obuild_cxx_command=cxx
    172 :end_if_platform_12
     223IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     224SET obuild_cxx_debug=-g
     225:end_if_platform_14
    173226SET obuild_platform_result=
    174227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    178231cd "%obuild_pwd_snovis_0%"
    179232SET obuild_pwd_snovis_0=
    180 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    181 SET obuild_cxx_command=cl.exe
    182 :end_if_platform_13
    183 SET obuild_platform_result=
    184 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    185 
    186 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    187 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    188 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    189 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    190 cd "%obuild_pwd_snovis_0%"
    191 SET obuild_pwd_snovis_0=
    192 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
    193 SET obuild_cxx_optimize=-O
    194 :end_if_platform_14
    195 SET obuild_platform_result=
     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
    196238FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197239cd "%obuild_snovis_path%\%obuild_dir_bin%"
     
    200242cd "%obuild_pwd_snovis_0%"
    201243SET obuild_pwd_snovis_0=
    202 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    203 SET obuild_cxx_optimize=-O
    204 :end_if_platform_15
    205 SET obuild_platform_result=
    206 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    207 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    210 cd "%obuild_pwd_snovis_0%"
    211 SET obuild_pwd_snovis_0=
    212244IF NOT %obuild_platform_result% == yes GOTO end_if_platform_16
    213 SET obuild_cxx_optimize=-O
     245SET obuild_cxx_options=-fPIC
    214246:end_if_platform_16
    215247SET obuild_platform_result=
     
    221253SET obuild_pwd_snovis_0=
    222254IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    223 SET obuild_cxx_optimize=/O2
     255SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    224256:end_if_platform_17
    225257SET obuild_platform_result=
    226258
    227 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    228 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    229 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    230 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    231 cd "%obuild_pwd_snovis_0%"
    232 SET obuild_pwd_snovis_0=
    233 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    234 SET obuild_cxx_debug=-g
    235 :end_if_platform_18
    236 SET obuild_platform_result=
    237 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    238 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    239 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    240 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    241 cd "%obuild_pwd_snovis_0%"
    242 SET obuild_pwd_snovis_0=
    243 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    244 SET obuild_cxx_debug=-g
    245 :end_if_platform_19
    246 SET obuild_platform_result=
    247 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    248 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    251 cd "%obuild_pwd_snovis_0%"
    252 SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_20
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_20
    256 SET obuild_platform_result=
    257 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    258 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    259 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    260 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    264 SET obuild_cxx_debug=/ZI /Od
    265 :end_if_platform_21
    266 SET obuild_platform_result=
    267 
    268 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    269 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    270 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    271 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    272 cd "%obuild_pwd_snovis_0%"
    273 SET obuild_pwd_snovis_0=
    274 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    275 SET obuild_cxx_options=-fPIC
    276 :end_if_platform_22
    277 SET obuild_platform_result=
    278 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    279 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    280 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    281 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    282 cd "%obuild_pwd_snovis_0%"
    283 SET obuild_pwd_snovis_0=
    284 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    285 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    286 :end_if_platform_23
    287 SET obuild_platform_result=
    288 
    289 IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_24
     259IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_18
    290260  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    291   GOTO end_if_db_build_dll_snovis_sh_24
    292 :else_if_db_build_dll_snovis_sh_24
     261  GOTO end_if_db_build_dll_snovis_sh_18
     262:else_if_db_build_dll_snovis_sh_18
    293263  SET obuild_cxx_debug_local=
    294 :end_if_db_build_dll_snovis_sh_24
    295 
    296 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_25
     264:end_if_db_build_dll_snovis_sh_18
     265
     266IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_19
    297267  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    298   GOTO end_if_opt_build_dll_snovis_sh_25
    299 :else_if_opt_build_dll_snovis_sh_25
     268  GOTO end_if_opt_build_dll_snovis_sh_19
     269:else_if_opt_build_dll_snovis_sh_19
    300270  SET obuild_cxx_optimize_local=
    301 :end_if_opt_build_dll_snovis_sh_25
     271:end_if_opt_build_dll_snovis_sh_19
    302272
    303273
     
    456426cd "%obuild_pwd_snovis_0%"
    457427SET obuild_pwd_snovis_0=
    458 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
     428IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    459429SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    460 :end_if_platform_35
     430:end_if_platform_29
    461431SET obuild_platform_result=
    462432FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    466436cd "%obuild_pwd_snovis_0%"
    467437SET obuild_pwd_snovis_0=
    468 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
     438IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    469439SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    470 :end_if_platform_36
     440:end_if_platform_30
    471441SET obuild_platform_result=
    472442
     
    512482cd "%obuild_pwd_snovis_0%"
    513483SET obuild_pwd_snovis_0=
    514 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
     484IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    515485SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
    516 :end_if_platform_51
     486:end_if_platform_45
    517487SET obuild_platform_result=
    518488FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    522492cd "%obuild_pwd_snovis_0%"
    523493SET obuild_pwd_snovis_0=
    524 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
     494IF NOT %obuild_platform_result% == yes GOTO end_if_platform_46
    525495SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
    526 :end_if_platform_52
     496:end_if_platform_46
    527497SET obuild_platform_result=
    528498FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    532502cd "%obuild_pwd_snovis_0%"
    533503SET obuild_pwd_snovis_0=
    534 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
     504IF NOT %obuild_platform_result% == yes GOTO end_if_platform_47
    535505SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    536 :end_if_platform_53
     506:end_if_platform_47
    537507SET obuild_platform_result=
    538508FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    542512cd "%obuild_pwd_snovis_0%"
    543513SET obuild_pwd_snovis_0=
    544 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
     514IF NOT %obuild_platform_result% == yes GOTO end_if_platform_48
    545515SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    546 :end_if_platform_54
     516:end_if_platform_48
    547517SET obuild_platform_result=
    548518FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    552522cd "%obuild_pwd_snovis_0%"
    553523SET obuild_pwd_snovis_0=
    554 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
     524IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    555525SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    556 :end_if_platform_55
     526:end_if_platform_49
    557527SET obuild_platform_result=
    558528FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    562532cd "%obuild_pwd_snovis_0%"
    563533SET obuild_pwd_snovis_0=
    564 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
     534IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
    565535SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    566 :end_if_platform_56
     536:end_if_platform_50
    567537SET obuild_platform_result=
    568538
  • snovis/trunk/obuild/setup.bat

    r134 r137  
    5151cd "%obuild_snovis_path%\%obuild_dir_bin%"
    5252IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    53 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     53FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    5454cd "%obuild_pwd_snovis_0%"
    5555SET obuild_pwd_snovis_0=
    5656IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
    57 SET snova_platform=Darwin
     57SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    5858:end_if_platform_1
    5959SET obuild_platform_result=
     
    6565SET obuild_pwd_snovis_0=
    6666IF NOT %obuild_platform_result% == yes GOTO end_if_platform_3
    67 SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
     67SET Geant4_home=/usr/local/geant4/8.2
    6868:end_if_platform_3
    69 SET obuild_platform_result=
    70 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    71 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    72 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    73 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    74 cd "%obuild_pwd_snovis_0%"
    75 SET obuild_pwd_snovis_0=
    76 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_5
    77 SET snova_home=/Users/barrand/dev/exp/nemo/snova/v2r0p0
    78 :end_if_platform_5
    79 SET obuild_platform_result=
    80 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    81 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    82 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    83 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    84 cd "%obuild_pwd_snovis_0%"
    85 SET obuild_pwd_snovis_0=
    86 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    87 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    88 :end_if_platform_7
    89 SET obuild_platform_result=
    90 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    91 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    92 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    93 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    94 cd "%obuild_pwd_snovis_0%"
    95 SET obuild_pwd_snovis_0=
    96 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    97 SET Geant4_home=/usr/local/geant4/8.2
    98 :end_if_platform_9
    9969SET obuild_platform_result=
    10070IF NOT EXIST "%obuild_snovis_path%\%obuild_dir_bin%" MKDIR "%obuild_snovis_path%\%obuild_dir_bin%"
     
    134104SET NeutronHPCrossSections=%Geant4_home%\data\G4NDL3.10
    135105
    136 IF DEFINED PATH GOTO else_if_path_snovis_15
     106IF DEFINED PATH GOTO else_if_path_snovis_9
    137107  SET PATH=%obuild_snovis_path%\%obuild_dir_bin%
    138   GOTO end_if_path_snovis_15
    139 :else_if_path_snovis_15
     108  GOTO end_if_path_snovis_9
     109:else_if_path_snovis_9
    140110  SET PATH=%PATH%;%obuild_snovis_path%\%obuild_dir_bin%
    141 :end_if_path_snovis_15
     111:end_if_path_snovis_9
    142112
    143113:obuild_return
  • snovis/trunk/obuild/setup.csh

    r134 r137  
    127127  exit
    128128endif
    129 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    130 if ( ${obuild_platform_result} == yes ) then
    131 set snova_platform="Darwin"
    132 endif
    133 unset obuild_platform_result
    134 if ( "${obuild_platform_exe}" == "" ) then
    135   echo "Variable obuild_platform_exe not defined."
    136   exit
    137 endif
    138 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    139 if ( ${obuild_platform_result} == yes ) then
    140 set bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    141 endif
    142 unset obuild_platform_result
    143 if ( "${obuild_platform_exe}" == "" ) then
    144   echo "Variable obuild_platform_exe not defined."
    145   exit
    146 endif
    147 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    148 if ( ${obuild_platform_result} == yes ) then
    149 set snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    150 endif
    151 unset obuild_platform_result
    152 if ( "${obuild_platform_exe}" == "" ) then
    153   echo "Variable obuild_platform_exe not defined."
    154   exit
    155 endif
    156129set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} UNIX`
    157130if ( ${obuild_platform_result} == yes ) then
     
    223196set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    224197if ( ${obuild_platform_result} == yes ) then
    225 if ( "${obuild_platform_exe}" == "" ) then
    226   echo "Variable obuild_platform_exe not defined."
    227   exit
    228 endif
    229 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    230 if ( ${obuild_platform_result} == yes ) then
    231   if (  $?DYLD_LIBRARY_PATH ) then
    232     setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin"
    233   else
    234     setenv DYLD_LIBRARY_PATH "${bhep_home}/Darwin"
    235   endif
    236 endif
    237 unset obuild_platform_result
    238 else
    239 if ( "${obuild_platform_exe}" == "" ) then
    240   echo "Variable obuild_platform_exe not defined."
    241   exit
    242 endif
    243 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    244 if ( ${obuild_platform_result} == yes ) then
    245   if (  $?LD_LIBRARY_PATH ) then
    246     setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${bhep_home}/Darwin"
    247   else
    248     setenv LD_LIBRARY_PATH "${bhep_home}/Darwin"
    249   endif
    250 endif
    251 unset obuild_platform_result
    252 endif
    253 unset obuild_platform_result
    254 
    255 if ( "${obuild_platform_exe}" == "" ) then
    256   echo "Variable obuild_platform_exe not defined."
    257   exit
    258 endif
    259 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    260 if ( ${obuild_platform_result} == yes ) then
    261 if ( "${obuild_platform_exe}" == "" ) then
    262   echo "Variable obuild_platform_exe not defined."
    263   exit
    264 endif
    265 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    266 if ( ${obuild_platform_result} == yes ) then
    267   if (  $?DYLD_LIBRARY_PATH ) then
    268     setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${snova_home}/Darwin"
    269   else
    270     setenv DYLD_LIBRARY_PATH "${snova_home}/Darwin"
    271   endif
    272 endif
    273 unset obuild_platform_result
    274 else
    275 if ( "${obuild_platform_exe}" == "" ) then
    276   echo "Variable obuild_platform_exe not defined."
    277   exit
    278 endif
    279 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    280 if ( ${obuild_platform_result} == yes ) then
    281   if (  $?LD_LIBRARY_PATH ) then
    282     setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${snova_home}/Darwin"
    283   else
    284     setenv LD_LIBRARY_PATH "${snova_home}/Darwin"
    285   endif
    286 endif
    287 unset obuild_platform_result
    288 endif
    289 unset obuild_platform_result
    290 
    291 if ( "${obuild_platform_exe}" == "" ) then
    292   echo "Variable obuild_platform_exe not defined."
    293   exit
    294 endif
    295 set obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} Darwin`
    296 if ( ${obuild_platform_result} == yes ) then
    297198  if (  $?DYLD_LIBRARY_PATH ) then
    298199    setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${obuild_snovis_path}/${obuild_dir_bin}"
  • snovis/trunk/obuild/setup.sh

    r134 r137  
    114114  return
    115115fi
    116 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    117 if [ ${obuild_platform_result} = yes ] ; then
    118 snova_platform="Darwin"
    119 fi
    120 unset obuild_platform_result
    121 if [ "${obuild_platform_exe}" = "" ] ; then
    122   echo "Variable obuild_platform_exe not defined."
    123   return
    124 fi
    125 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    126 if [ ${obuild_platform_result} = yes ] ; then
    127 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    128 fi
    129 unset obuild_platform_result
    130 if [ "${obuild_platform_exe}" = "" ] ; then
    131   echo "Variable obuild_platform_exe not defined."
    132   return
    133 fi
    134 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    135 if [ ${obuild_platform_result} = yes ] ; then
    136 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    137 fi
    138 unset obuild_platform_result
    139 if [ "${obuild_platform_exe}" = "" ] ; then
    140   echo "Variable obuild_platform_exe not defined."
    141   return
    142 fi
    143116obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    144117if [ ${obuild_platform_result} = yes ] ; then
     
    227200obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    228201if [ ${obuild_platform_result} = yes ] ; then
    229 if [ "${obuild_platform_exe}" = "" ] ; then
    230   echo "Variable obuild_platform_exe not defined."
    231   return
    232 fi
    233 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    234 if [ ${obuild_platform_result} = yes ] ; then
    235   if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
    236     DYLD_LIBRARY_PATH="${bhep_home}/Darwin"
    237     export DYLD_LIBRARY_PATH
    238   else
    239     DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${bhep_home}/Darwin"
    240     export DYLD_LIBRARY_PATH
    241   fi
    242 fi
    243 unset obuild_platform_result
    244 else
    245 if [ "${obuild_platform_exe}" = "" ] ; then
    246   echo "Variable obuild_platform_exe not defined."
    247   return
    248 fi
    249 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    250 if [ ${obuild_platform_result} = yes ] ; then
    251   if [  "${LD_LIBRARY_PATH}" = "" ] ; then
    252     LD_LIBRARY_PATH="${bhep_home}/Darwin"
    253     export LD_LIBRARY_PATH
    254   else
    255     LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${bhep_home}/Darwin"
    256     export LD_LIBRARY_PATH
    257   fi
    258 fi
    259 unset obuild_platform_result
    260 fi
    261 unset obuild_platform_result
    262 
    263 if [ "${obuild_platform_exe}" = "" ] ; then
    264   echo "Variable obuild_platform_exe not defined."
    265   return
    266 fi
    267 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    268 if [ ${obuild_platform_result} = yes ] ; then
    269 if [ "${obuild_platform_exe}" = "" ] ; then
    270   echo "Variable obuild_platform_exe not defined."
    271   return
    272 fi
    273 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    274 if [ ${obuild_platform_result} = yes ] ; then
    275   if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
    276     DYLD_LIBRARY_PATH="${snova_home}/Darwin"
    277     export DYLD_LIBRARY_PATH
    278   else
    279     DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${snova_home}/Darwin"
    280     export DYLD_LIBRARY_PATH
    281   fi
    282 fi
    283 unset obuild_platform_result
    284 else
    285 if [ "${obuild_platform_exe}" = "" ] ; then
    286   echo "Variable obuild_platform_exe not defined."
    287   return
    288 fi
    289 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    290 if [ ${obuild_platform_result} = yes ] ; then
    291   if [  "${LD_LIBRARY_PATH}" = "" ] ; then
    292     LD_LIBRARY_PATH="${snova_home}/Darwin"
    293     export LD_LIBRARY_PATH
    294   else
    295     LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${snova_home}/Darwin"
    296     export LD_LIBRARY_PATH
    297   fi
    298 fi
    299 unset obuild_platform_result
    300 fi
    301 unset obuild_platform_result
    302 
    303 if [ "${obuild_platform_exe}" = "" ] ; then
    304   echo "Variable obuild_platform_exe not defined."
    305   return
    306 fi
    307 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    308 if [ ${obuild_platform_result} = yes ] ; then
    309202  if [  "${DYLD_LIBRARY_PATH}" = "" ] ; then
    310203    DYLD_LIBRARY_PATH="${obuild_snovis_path}/${obuild_dir_bin}"
  • snovis/trunk/obuild/sh/build_app_prog_snova

    r134 r137  
    107107  exit
    108108fi
    109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    110 if [ ${obuild_platform_result} = yes ] ; then
    111 snova_platform="Darwin"
    112 fi
    113 unset obuild_platform_result
    114 if [ "${obuild_platform_exe}" = "" ] ; then
    115   echo "Variable obuild_platform_exe not defined."
    116   exit
    117 fi
    118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    119 if [ ${obuild_platform_result} = yes ] ; then
    120 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    121 fi
    122 unset obuild_platform_result
    123 if [ "${obuild_platform_exe}" = "" ] ; then
    124   echo "Variable obuild_platform_exe not defined."
    125   exit
    126 fi
    127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128 if [ ${obuild_platform_result} = yes ] ; then
    129 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130 fi
    131 unset obuild_platform_result
    132 if [ "${obuild_platform_exe}" = "" ] ; then
    133   echo "Variable obuild_platform_exe not defined."
    134   exit
    135 fi
    136109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    137110if [ ${obuild_platform_result} = yes ] ; then
     
    320293  exit
    321294fi
     295obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     296if [ "${obuild_snova_path}" = "" ] ; then
     297  echo "Can't find snova package."
     298  exit
     299fi
     300if [ "${obuild_find_exe}" = "" ] ; then
     301  echo "Variable obuild_find_exe not defined."
     302  exit
     303fi
     304obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     305if [ "${obuild_snova_path}" = "" ] ; then
     306  echo "Can't find snova package."
     307  exit
     308fi
     309if [ "${obuild_find_exe}" = "" ] ; then
     310  echo "Variable obuild_find_exe not defined."
     311  exit
     312fi
     313obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     314if [ "${obuild_snova_path}" = "" ] ; then
     315  echo "Can't find snova package."
     316  exit
     317fi
     318if [ "${obuild_find_exe}" = "" ] ; then
     319  echo "Variable obuild_find_exe not defined."
     320  exit
     321fi
     322obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     323if [ "${obuild_snova_path}" = "" ] ; then
     324  echo "Can't find snova package."
     325  exit
     326fi
     327if [ "${obuild_find_exe}" = "" ] ; then
     328  echo "Variable obuild_find_exe not defined."
     329  exit
     330fi
     331obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
     332if [ "${obuild_bhep_path}" = "" ] ; then
     333  echo "Can't find bhep package."
     334  exit
     335fi
     336if [ "${obuild_find_exe}" = "" ] ; then
     337  echo "Variable obuild_find_exe not defined."
     338  exit
     339fi
    322340obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
    323341if [ "${obuild_HDF5_path}" = "" ] ; then
     
    329347  exit
    330348fi
     349obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     350if [ "${obuild_snova_path}" = "" ] ; then
     351  echo "Can't find snova package."
     352  exit
     353fi
     354if [ "${obuild_find_exe}" = "" ] ; then
     355  echo "Variable obuild_find_exe not defined."
     356  exit
     357fi
     358obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     359if [ "${obuild_snova_path}" = "" ] ; then
     360  echo "Can't find snova package."
     361  exit
     362fi
     363if [ "${obuild_find_exe}" = "" ] ; then
     364  echo "Variable obuild_find_exe not defined."
     365  exit
     366fi
     367obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     368if [ "${obuild_snova_path}" = "" ] ; then
     369  echo "Can't find snova package."
     370  exit
     371fi
     372if [ "${obuild_find_exe}" = "" ] ; then
     373  echo "Variable obuild_find_exe not defined."
     374  exit
     375fi
     376obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     377if [ "${obuild_snova_path}" = "" ] ; then
     378  echo "Can't find snova package."
     379  exit
     380fi
     381if [ "${obuild_find_exe}" = "" ] ; then
     382  echo "Variable obuild_find_exe not defined."
     383  exit
     384fi
     385obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
     386if [ "${obuild_bhep_path}" = "" ] ; then
     387  echo "Can't find bhep package."
     388  exit
     389fi
     390if [ "${obuild_find_exe}" = "" ] ; then
     391  echo "Variable obuild_find_exe not defined."
     392  exit
     393fi
    331394obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
    332395if [ "${obuild_HDF5_path}" = "" ] ; then
     
    344407fi
    345408
    346 if [ "${obuild_platform_exe}" = "" ] ; then
    347   echo "Variable obuild_platform_exe not defined."
    348   exit
    349 fi
    350 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    351 if [ ${obuild_platform_result} = yes ] ; then
    352 obuild_cxx_includes="-I${snova_home}"
    353 fi
    354 unset obuild_platform_result
    355 if [ "${obuild_platform_exe}" = "" ] ; then
    356   echo "Variable obuild_platform_exe not defined."
    357   exit
    358 fi
    359 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    360 if [ ${obuild_platform_result} = yes ] ; then
    361 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/GeomUtils/include"
    362 fi
    363 unset obuild_platform_result
    364 if [ "${obuild_platform_exe}" = "" ] ; then
    365   echo "Variable obuild_platform_exe not defined."
    366   exit
    367 fi
    368 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    369 if [ ${obuild_platform_result} = yes ] ; then
    370 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNgeom2/include"
    371 fi
    372 unset obuild_platform_result
    373 if [ "${obuild_platform_exe}" = "" ] ; then
    374   echo "Variable obuild_platform_exe not defined."
    375   exit
    376 fi
    377 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    378 if [ ${obuild_platform_result} = yes ] ; then
    379 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNvertex/include"
    380 fi
    381 unset obuild_platform_result
    382 if [ "${obuild_platform_exe}" = "" ] ; then
    383   echo "Variable obuild_platform_exe not defined."
    384   exit
    385 fi
    386 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    387 if [ ${obuild_platform_result} = yes ] ; then
    388 obuild_cxx_includes="${obuild_cxx_includes} -I${bhep_home}"
    389 fi
    390 unset obuild_platform_result
     409obuild_cxx_includes="-I\"${obuild_snova_path}\""
     410obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/GeomUtils/include\""
     411obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNvertex/include\""
     412obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNgeom2/include\""
     413obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}\""
    391414if [ "${obuild_platform_exe}" = "" ] ; then
    392415  echo "Variable obuild_platform_exe not defined."
     
    527550  obuild_cxx_linker_optimize_local=
    528551fi
    529 obuild_linked_libraries="-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils"
    530 obuild_linked_libraries="${obuild_linked_libraries} -L${bhep_home}/Darwin -lbhep"
     552obuild_linked_paths="-L\"${obuild_snova_path}/${obuild_dir_bin}\""
     553obuild_linked_libraries=" -lsnova"
     554obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     555obuild_linked_libraries="${obuild_linked_libraries}  -lsnvertex"
     556obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     557obuild_linked_libraries="${obuild_linked_libraries}  -lsngeom"
     558obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     559obuild_linked_libraries="${obuild_linked_libraries}  -lgeomutils"
     560obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_bhep_path}/${obuild_dir_bin}\""
     561obuild_linked_libraries="${obuild_linked_libraries}  -lbhep"
    531562obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4interfaces"
    532563if [ "${obuild_platform_exe}" = "" ] ; then
  • snovis/trunk/obuild/sh/build_app_snovis_session

    r134 r137  
    107107  exit
    108108fi
    109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    110 if [ ${obuild_platform_result} = yes ] ; then
    111 snova_platform="Darwin"
    112 fi
    113 unset obuild_platform_result
    114 if [ "${obuild_platform_exe}" = "" ] ; then
    115   echo "Variable obuild_platform_exe not defined."
    116   exit
    117 fi
    118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    119 if [ ${obuild_platform_result} = yes ] ; then
    120 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    121 fi
    122 unset obuild_platform_result
    123 if [ "${obuild_platform_exe}" = "" ] ; then
    124   echo "Variable obuild_platform_exe not defined."
    125   exit
    126 fi
    127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128 if [ ${obuild_platform_result} = yes ] ; then
    129 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130 fi
    131 unset obuild_platform_result
    132 if [ "${obuild_platform_exe}" = "" ] ; then
    133   echo "Variable obuild_platform_exe not defined."
    134   exit
    135 fi
    136109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    137110if [ ${obuild_platform_result} = yes ] ; then
     
    320293  exit
    321294fi
     295obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     296if [ "${obuild_snova_path}" = "" ] ; then
     297  echo "Can't find snova package."
     298  exit
     299fi
     300if [ "${obuild_find_exe}" = "" ] ; then
     301  echo "Variable obuild_find_exe not defined."
     302  exit
     303fi
     304obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     305if [ "${obuild_snova_path}" = "" ] ; then
     306  echo "Can't find snova package."
     307  exit
     308fi
     309if [ "${obuild_find_exe}" = "" ] ; then
     310  echo "Variable obuild_find_exe not defined."
     311  exit
     312fi
     313obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     314if [ "${obuild_snova_path}" = "" ] ; then
     315  echo "Can't find snova package."
     316  exit
     317fi
     318if [ "${obuild_find_exe}" = "" ] ; then
     319  echo "Variable obuild_find_exe not defined."
     320  exit
     321fi
     322obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     323if [ "${obuild_snova_path}" = "" ] ; then
     324  echo "Can't find snova package."
     325  exit
     326fi
     327if [ "${obuild_find_exe}" = "" ] ; then
     328  echo "Variable obuild_find_exe not defined."
     329  exit
     330fi
     331obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
     332if [ "${obuild_bhep_path}" = "" ] ; then
     333  echo "Can't find bhep package."
     334  exit
     335fi
     336if [ "${obuild_find_exe}" = "" ] ; then
     337  echo "Variable obuild_find_exe not defined."
     338  exit
     339fi
    322340obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
    323341if [ "${obuild_HDF5_path}" = "" ] ; then
     
    374392  exit
    375393fi
     394obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     395if [ "${obuild_snova_path}" = "" ] ; then
     396  echo "Can't find snova package."
     397  exit
     398fi
     399if [ "${obuild_find_exe}" = "" ] ; then
     400  echo "Variable obuild_find_exe not defined."
     401  exit
     402fi
     403obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     404if [ "${obuild_snova_path}" = "" ] ; then
     405  echo "Can't find snova package."
     406  exit
     407fi
     408if [ "${obuild_find_exe}" = "" ] ; then
     409  echo "Variable obuild_find_exe not defined."
     410  exit
     411fi
     412obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     413if [ "${obuild_snova_path}" = "" ] ; then
     414  echo "Can't find snova package."
     415  exit
     416fi
     417if [ "${obuild_find_exe}" = "" ] ; then
     418  echo "Variable obuild_find_exe not defined."
     419  exit
     420fi
     421obuild_snova_path=`"${obuild_find_exe}" snova 'v2r0p0'`
     422if [ "${obuild_snova_path}" = "" ] ; then
     423  echo "Can't find snova package."
     424  exit
     425fi
     426if [ "${obuild_find_exe}" = "" ] ; then
     427  echo "Variable obuild_find_exe not defined."
     428  exit
     429fi
     430obuild_bhep_path=`"${obuild_find_exe}" bhep 'v1r4p2'`
     431if [ "${obuild_bhep_path}" = "" ] ; then
     432  echo "Can't find bhep package."
     433  exit
     434fi
     435if [ "${obuild_find_exe}" = "" ] ; then
     436  echo "Variable obuild_find_exe not defined."
     437  exit
     438fi
    376439obuild_HDF5_path=`"${obuild_find_exe}" HDF5 'v1r*'`
    377440if [ "${obuild_HDF5_path}" = "" ] ; then
     
    497560fi
    498561
    499 if [ "${obuild_platform_exe}" = "" ] ; then
    500   echo "Variable obuild_platform_exe not defined."
    501   exit
    502 fi
    503 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    504 if [ ${obuild_platform_result} = yes ] ; then
    505 obuild_cxx_includes="-I${snova_home}"
    506 fi
    507 unset obuild_platform_result
    508 if [ "${obuild_platform_exe}" = "" ] ; then
    509   echo "Variable obuild_platform_exe not defined."
    510   exit
    511 fi
    512 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    513 if [ ${obuild_platform_result} = yes ] ; then
    514 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/GeomUtils/include"
    515 fi
    516 unset obuild_platform_result
    517 if [ "${obuild_platform_exe}" = "" ] ; then
    518   echo "Variable obuild_platform_exe not defined."
    519   exit
    520 fi
    521 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    522 if [ ${obuild_platform_result} = yes ] ; then
    523 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNgeom2/include"
    524 fi
    525 unset obuild_platform_result
    526 if [ "${obuild_platform_exe}" = "" ] ; then
    527   echo "Variable obuild_platform_exe not defined."
    528   exit
    529 fi
    530 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    531 if [ ${obuild_platform_result} = yes ] ; then
    532 obuild_cxx_includes="${obuild_cxx_includes} -I${snova_home}/source/SNvertex/include"
    533 fi
    534 unset obuild_platform_result
    535 if [ "${obuild_platform_exe}" = "" ] ; then
    536   echo "Variable obuild_platform_exe not defined."
    537   exit
    538 fi
    539 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    540 if [ ${obuild_platform_result} = yes ] ; then
    541 obuild_cxx_includes="${obuild_cxx_includes} -I${bhep_home}"
    542 fi
    543 unset obuild_platform_result
     562obuild_cxx_includes="-I\"${obuild_snova_path}\""
     563obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/GeomUtils/include\""
     564obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNvertex/include\""
     565obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_snova_path}/source/SNgeom2/include\""
     566obuild_cxx_includes="${obuild_cxx_includes} -I\"${obuild_bhep_path}\""
    544567if [ "${obuild_platform_exe}" = "" ] ; then
    545568  echo "Variable obuild_platform_exe not defined."
     
    686709obuild_linked_paths="-L\"${obuild_OnX_path}/${obuild_dir_bin}\""
    687710obuild_linked_libraries=" -lOnXCore"
    688 obuild_linked_libraries="${obuild_linked_libraries} -L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils"
    689 obuild_linked_libraries="${obuild_linked_libraries} -L${bhep_home}/Darwin -lbhep"
     711obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     712obuild_linked_libraries="${obuild_linked_libraries}  -lsnova"
     713obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     714obuild_linked_libraries="${obuild_linked_libraries}  -lsnvertex"
     715obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     716obuild_linked_libraries="${obuild_linked_libraries}  -lsngeom"
     717obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_snova_path}/${obuild_dir_bin}\""
     718obuild_linked_libraries="${obuild_linked_libraries}  -lgeomutils"
     719obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_bhep_path}/${obuild_dir_bin}\""
     720obuild_linked_libraries="${obuild_linked_libraries}  -lbhep"
    690721obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_HDF5_path}/${obuild_dir_bin}\""
    691722obuild_linked_libraries="${obuild_linked_libraries}  -losc_HDF5"
     
    694725obuild_linked_paths="${obuild_linked_paths} -L\"${obuild_G4Lab_path}/${obuild_dir_bin}\""
    695726obuild_linked_libraries="${obuild_linked_libraries}  -lG4LabCore"
     727obuild_linked_libraries="${obuild_linked_libraries} -L${Geant4_home}/lib -lG4interfaces"
    696728if [ "${obuild_platform_exe}" = "" ] ; then
    697729  echo "Variable obuild_platform_exe not defined."
  • snovis/trunk/obuild/sh/build_dll_snovis

    r134 r137  
    107107  exit
    108108fi
    109 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    110 if [ ${obuild_platform_result} = yes ] ; then
    111 snova_platform="Darwin"
    112 fi
    113 unset obuild_platform_result
    114 if [ "${obuild_platform_exe}" = "" ] ; then
    115   echo "Variable obuild_platform_exe not defined."
    116   exit
    117 fi
    118 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    119 if [ ${obuild_platform_result} = yes ] ; then
    120 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    121 fi
    122 unset obuild_platform_result
    123 if [ "${obuild_platform_exe}" = "" ] ; then
    124   echo "Variable obuild_platform_exe not defined."
    125   exit
    126 fi
    127 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    128 if [ ${obuild_platform_result} = yes ] ; then
    129 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    130 fi
    131 unset obuild_platform_result
    132 if [ "${obuild_platform_exe}" = "" ] ; then
    133   echo "Variable obuild_platform_exe not defined."
    134   exit
    135 fi
    136109obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    137110if [ ${obuild_platform_result} = yes ] ; then
  • snovis/trunk/obuild/sh/check_foreigns

    r134 r137  
    7777  exit
    7878fi
    79 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'Darwin'`
    80 if [ ${obuild_platform_result} = yes ] ; then
    81 snova_platform="Darwin"
    82 fi
    83 unset obuild_platform_result
    84 if [ "${obuild_platform_exe}" = "" ] ; then
    85   echo "Variable obuild_platform_exe not defined."
    86   exit
    87 fi
    88 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    89 if [ ${obuild_platform_result} = yes ] ; then
    90 bhep_home="/Users/barrand/dev/exp/nemo/bhep/v1r4p2"
    91 fi
    92 unset obuild_platform_result
    93 if [ "${obuild_platform_exe}" = "" ] ; then
    94   echo "Variable obuild_platform_exe not defined."
    95   exit
    96 fi
    97 obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    98 if [ ${obuild_platform_result} = yes ] ; then
    99 snova_home="/Users/barrand/dev/exp/nemo/snova/v2r0p0"
    100 fi
    101 unset obuild_platform_result
    102 if [ "${obuild_platform_exe}" = "" ] ; then
    103   echo "Variable obuild_platform_exe not defined."
    104   exit
    105 fi
    10679obuild_platform_result=`"${obuild_platform_exe}" ${obuild_platform} 'UNIX'`
    10780if [ ${obuild_platform_result} = yes ] ; then
  • snovis/trunk/obuild/this.obuild

    r134 r137  
    77    <!-- not this : -->
    88
    9     <reference package="snovis" version="v1r1" file="obuild/snova.obuild"/>
     9    <reference package="snova" version="v2r0p0" file="obuild/export.obuild"/>
    1010
    1111    <reference package="G4Lab" version="v8r*" file="obuild/export.obuild"/>
    1212 
    13     <use name="HDF5" version="v1r*">
    14       <c_include>include</c_include>
    15       <lib>osc_HDF5</lib>
    16     </use>
    17 
    1813    <!-- this : -->
    1914
     
    5449
    5550      <!-- not this : -->
    56       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}</cxx_include>
    57       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}/source/GeomUtils/include</cxx_include>
    58       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}/source/SNgeom2/include</cxx_include>
    59       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}/source/SNvertex/include</cxx_include>
    60       <cxx_include platform="UNIX" verbatim="yes">-I${bhep_home}</cxx_include>
     51      <cxx_include copy="cxx_include" from="snova"/>
     52      <cxx_include copy="cxx_include_geomutils" from="snova"/>
     53      <cxx_include copy="cxx_include_snvertex" from="snova"/>
     54      <cxx_include copy="cxx_include_sngeom" from="snova"/>
     55      <cxx_include copy="cxx_include" from="bhep"/>
    6156
    6257      <cxx_include copy="cxx_include" from="CLHEP"/>
     
    6459      <cxx_include copy="c_include" from="HDF5"/>
    6560
    66       <lib verbatim="yes">-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils</lib>
    67       <lib verbatim="yes">-L${bhep_home}/Darwin -lbhep</lib>
     61      <lib copy="lib" from="snova"/>
     62      <lib copy="lib_snvertex" from="snova"/>
     63      <lib copy="lib_sngeom" from="snova"/>
     64      <lib copy="lib_geomutils" from="snova"/>
     65      <lib copy="lib" from="bhep"/>
    6866
    6967      <lib copy="interfaces_lib" from="Geant4"/>
     
    7977
    8078      <!-- not this : -->
    81       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}</cxx_include>
    82       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}/source/GeomUtils/include</cxx_include>
    83       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}/source/SNgeom2/include</cxx_include>
    84       <cxx_include platform="UNIX" verbatim="yes">-I${snova_home}/source/SNvertex/include</cxx_include>
    85       <cxx_include platform="UNIX" verbatim="yes">-I${bhep_home}</cxx_include>
     79      <cxx_include copy="cxx_include" from="snova"/>
     80      <cxx_include copy="cxx_include_geomutils" from="snova"/>
     81      <cxx_include copy="cxx_include_snvertex" from="snova"/>
     82      <cxx_include copy="cxx_include_sngeom" from="snova"/>
     83      <cxx_include copy="cxx_include" from="bhep"/>
    8684
    8785      <cxx_include copy="cxx_include" from="CLHEP"/>
     
    9795      <lib copy="lib" from="OnX"/>
    9896
    99       <lib verbatim="yes">-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils</lib>
    100       <lib verbatim="yes">-L${bhep_home}/Darwin -lbhep</lib>
     97      <lib copy="lib" from="snova"/>
     98      <lib copy="lib_snvertex" from="snova"/>
     99      <lib copy="lib_sngeom" from="snova"/>
     100      <lib copy="lib_geomutils" from="snova"/>
     101      <lib copy="lib" from="bhep"/>
    101102
    102103      <lib copy="lib" from="HDF5"/>
     
    104105      <lib copy="lib_G4LabUIOnX" from="G4Lab"/>
    105106      <lib copy="lib_G4LabCore" from="G4Lab"/>
     107      <lib copy="interfaces_lib" from="Geant4"/>
    106108      <lib copy="lib" from="Geant4"/>
    107109      <lib copy="lib" from="CLHEP"/>
     
    132134      <run_path/>
    133135
     136<!--
    134137      <load_library_path copy="load_library_path" from="snova"/>
     138-->
    135139
    136140      <load_library_path/>
Note: See TracChangeset for help on using the changeset viewer.