Ignore:
Timestamp:
Feb 9, 2007, 4:47:00 PM (16 years ago)
Author:
barrand
Message:
 
File:
1 edited

Legend:

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

    r101 r134  
    9595cd "%obuild_snovis_path%\%obuild_dir_bin%"
    9696IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    97 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    9898cd "%obuild_pwd_snovis_0%"
    9999SET obuild_pwd_snovis_0=
    100100IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     101SET snova_platform=Darwin
     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
    101111SET bhep_home=/Users/barrand/dev/exp/nemo/bhep/v1r4p2
    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% Darwin`) 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_platform=Darwin
    112112:end_if_platform_3
    113113SET obuild_platform_result=
     
    125125cd "%obuild_snovis_path%\%obuild_dir_bin%"
    126126IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     127FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     128cd "%obuild_pwd_snovis_0%"
     129SET obuild_pwd_snovis_0=
     130IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
     131SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
     132:end_if_platform_7
     133SET obuild_platform_result=
     134FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     135cd "%obuild_snovis_path%\%obuild_dir_bin%"
     136IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     137FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) 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_9
     141SET Geant4_home=/usr/local/geant4/8.2
     142:end_if_platform_9
     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
    127147FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    128148cd "%obuild_pwd_snovis_0%"
    129149SET obuild_pwd_snovis_0=
    130 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_7
    131 SET snova_platform=Darwin
    132 :end_if_platform_7
    133 SET 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
    138 cd "%obuild_pwd_snovis_0%"
    139 SET obuild_pwd_snovis_0=
    140 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_9
    141 SET CLHEP_home=/usr/local/CLHEP/2.0.3.1
    142 :end_if_platform_9
    143 SET obuild_platform_result=
    144 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    145 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    146 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    147 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     150IF NOT %obuild_platform_result% == yes GOTO end_if_platform_10
     151SET obuild_cxx_command=c++
     152:end_if_platform_10
     153SET obuild_platform_result=
     154FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     155cd "%obuild_snovis_path%\%obuild_dir_bin%"
     156IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     157FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    148158cd "%obuild_pwd_snovis_0%"
    149159SET obuild_pwd_snovis_0=
    150160IF NOT %obuild_platform_result% == yes GOTO end_if_platform_11
    151 SET Geant4_home=/usr/local/geant4/8.2
     161SET obuild_cxx_command=c++
    152162:end_if_platform_11
    153163SET obuild_platform_result=
     
    155165cd "%obuild_snovis_path%\%obuild_dir_bin%"
    156166IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     167FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     168cd "%obuild_pwd_snovis_0%"
     169SET obuild_pwd_snovis_0=
     170IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
     171SET obuild_cxx_command=cxx
     172:end_if_platform_12
     173SET obuild_platform_result=
     174FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     175cd "%obuild_snovis_path%\%obuild_dir_bin%"
     176IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     177FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     178cd "%obuild_pwd_snovis_0%"
     179SET obuild_pwd_snovis_0=
     180IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
     181SET obuild_cxx_command=cl.exe
     182:end_if_platform_13
     183SET obuild_platform_result=
     184IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
     185
     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
    157189FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    158190cd "%obuild_pwd_snovis_0%"
    159191SET obuild_pwd_snovis_0=
    160 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_12
    161 SET obuild_cxx_command=c++
    162 :end_if_platform_12
     192IF NOT %obuild_platform_result% == yes GOTO end_if_platform_14
     193SET obuild_cxx_optimize=-O
     194:end_if_platform_14
    163195SET obuild_platform_result=
    164196FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    168200cd "%obuild_pwd_snovis_0%"
    169201SET obuild_pwd_snovis_0=
    170 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_13
    171 SET obuild_cxx_command=c++
    172 :end_if_platform_13
     202IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
     203SET obuild_cxx_optimize=-O
     204:end_if_platform_15
    173205SET obuild_platform_result=
    174206FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    176208IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    177209FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) 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_14
    181 SET obuild_cxx_command=cxx
    182 :end_if_platform_14
    183 SET obuild_platform_result=
    184 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    185 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    186 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    187 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    188 cd "%obuild_pwd_snovis_0%"
    189 SET obuild_pwd_snovis_0=
    190 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_15
    191 SET obuild_cxx_command=cl.exe
    192 :end_if_platform_15
    193 SET obuild_platform_result=
    194 IF "%obuild_cxx_command%" == ""  ECHO Variable obuild_cxx_command not defined.  && GOTO obuild_return
    195 
    196 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    197 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    198 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    199 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
    200210cd "%obuild_pwd_snovis_0%"
    201211SET obuild_pwd_snovis_0=
     
    207217cd "%obuild_snovis_path%\%obuild_dir_bin%"
    208218IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     219FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     220cd "%obuild_pwd_snovis_0%"
     221SET obuild_pwd_snovis_0=
     222IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
     223SET obuild_cxx_optimize=/O2
     224:end_if_platform_17
     225SET obuild_platform_result=
     226
     227FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     228cd "%obuild_snovis_path%\%obuild_dir_bin%"
     229IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     230FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) 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_18
     234SET obuild_cxx_debug=-g
     235:end_if_platform_18
     236SET obuild_platform_result=
     237FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     238cd "%obuild_snovis_path%\%obuild_dir_bin%"
     239IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    209240FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    210241cd "%obuild_pwd_snovis_0%"
    211242SET obuild_pwd_snovis_0=
    212 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_17
    213 SET obuild_cxx_optimize=-O
    214 :end_if_platform_17
     243IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
     244SET obuild_cxx_debug=-g
     245:end_if_platform_19
    215246SET obuild_platform_result=
    216247FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    218249IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    219250FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    220 cd "%obuild_pwd_snovis_0%"
    221 SET obuild_pwd_snovis_0=
    222 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_18
    223 SET obuild_cxx_optimize=-O
    224 :end_if_platform_18
    225 SET obuild_platform_result=
    226 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    227 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    228 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    229 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    230 cd "%obuild_pwd_snovis_0%"
    231 SET obuild_pwd_snovis_0=
    232 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_19
    233 SET obuild_cxx_optimize=/O2
    234 :end_if_platform_19
    235 SET obuild_platform_result=
    236 
    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% Darwin`) DO SET obuild_platform_result=%%j
    241251cd "%obuild_pwd_snovis_0%"
    242252SET obuild_pwd_snovis_0=
     
    248258cd "%obuild_snovis_path%\%obuild_dir_bin%"
    249259IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     260FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     261cd "%obuild_pwd_snovis_0%"
     262SET obuild_pwd_snovis_0=
     263IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
     264SET obuild_cxx_debug=/ZI /Od
     265:end_if_platform_21
     266SET obuild_platform_result=
     267
     268FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     269cd "%obuild_snovis_path%\%obuild_dir_bin%"
     270IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    250271FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    251272cd "%obuild_pwd_snovis_0%"
    252273SET obuild_pwd_snovis_0=
    253 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_21
    254 SET obuild_cxx_debug=-g
    255 :end_if_platform_21
    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% OSF1`) DO SET obuild_platform_result=%%j
    261 cd "%obuild_pwd_snovis_0%"
    262 SET obuild_pwd_snovis_0=
    263274IF NOT %obuild_platform_result% == yes GOTO end_if_platform_22
    264 SET obuild_cxx_debug=-g
     275SET obuild_cxx_options=-fPIC
    265276:end_if_platform_22
    266277SET obuild_platform_result=
     
    272283SET obuild_pwd_snovis_0=
    273284IF NOT %obuild_platform_result% == yes GOTO end_if_platform_23
    274 SET obuild_cxx_debug=/ZI /Od
     285SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    275286:end_if_platform_23
    276287SET obuild_platform_result=
    277288
    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% Linux`) 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_24
    285 SET obuild_cxx_options=-fPIC
    286 :end_if_platform_24
    287 SET obuild_platform_result=
    288 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    289 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    290 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    291 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    292 cd "%obuild_pwd_snovis_0%"
    293 SET obuild_pwd_snovis_0=
    294 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_25
    295 SET obuild_cxx_options=/nologo /DWIN32 /MD /GX /GR /W3
    296 :end_if_platform_25
    297 SET obuild_platform_result=
    298 
    299 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_26
     289IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_24
    300290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    301   GOTO end_if_db_build_app_prog_snova_sh_26
    302 :else_if_db_build_app_prog_snova_sh_26
     291  GOTO end_if_db_build_app_prog_snova_sh_24
     292:else_if_db_build_app_prog_snova_sh_24
    303293  SET obuild_cxx_debug_local=
    304 :end_if_db_build_app_prog_snova_sh_26
    305 
    306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_27
     294:end_if_db_build_app_prog_snova_sh_24
     295
     296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_25
    307297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    308   GOTO end_if_opt_build_app_prog_snova_sh_27
    309 :else_if_opt_build_app_prog_snova_sh_27
     298  GOTO end_if_opt_build_app_prog_snova_sh_25
     299:else_if_opt_build_app_prog_snova_sh_25
    310300  SET obuild_cxx_optimize_local=
    311 :end_if_opt_build_app_prog_snova_sh_27
     301:end_if_opt_build_app_prog_snova_sh_25
    312302
    313303
     
    345335cd "%obuild_pwd_snovis_0%"
    346336SET obuild_pwd_snovis_0=
     337IF NOT %obuild_platform_result% == yes GOTO end_if_platform_26
     338SET obuild_cxx_includes=-I${snova_home}
     339:end_if_platform_26
     340SET obuild_platform_result=
     341FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     342cd "%obuild_snovis_path%\%obuild_dir_bin%"
     343IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     344FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     345cd "%obuild_pwd_snovis_0%"
     346SET obuild_pwd_snovis_0=
     347IF NOT %obuild_platform_result% == yes GOTO end_if_platform_27
     348SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     349:end_if_platform_27
     350SET obuild_platform_result=
     351FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     352cd "%obuild_snovis_path%\%obuild_dir_bin%"
     353IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     354FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     355cd "%obuild_pwd_snovis_0%"
     356SET obuild_pwd_snovis_0=
    347357IF NOT %obuild_platform_result% == yes GOTO end_if_platform_28
    348 SET obuild_cxx_includes=-I${snova_home}
     358SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
    349359:end_if_platform_28
    350360SET obuild_platform_result=
     
    356366SET obuild_pwd_snovis_0=
    357367IF NOT %obuild_platform_result% == yes GOTO end_if_platform_29
    358 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/GeomUtils/include
     368SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
    359369:end_if_platform_29
    360370SET obuild_platform_result=
     
    366376SET obuild_pwd_snovis_0=
    367377IF NOT %obuild_platform_result% == yes GOTO end_if_platform_30
    368 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNgeom2/include
     378SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
    369379:end_if_platform_30
    370380SET obuild_platform_result=
     
    376386SET obuild_pwd_snovis_0=
    377387IF NOT %obuild_platform_result% == yes GOTO end_if_platform_31
    378 SET obuild_cxx_includes=%obuild_cxx_includes% -I${snova_home}/source/SNvertex/include
     388SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    379389:end_if_platform_31
    380390SET obuild_platform_result=
     
    386396SET obuild_pwd_snovis_0=
    387397IF NOT %obuild_platform_result% == yes GOTO end_if_platform_32
    388 SET obuild_cxx_includes=%obuild_cxx_includes% -I${bhep_home}
     398SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    389399:end_if_platform_32
    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_33
    398 SET obuild_cxx_includes=%obuild_cxx_includes% -I${CLHEP_home}/include
    399 :end_if_platform_33
    400 SET obuild_platform_result=
    401 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    402 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    403 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    404 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    405 cd "%obuild_pwd_snovis_0%"
    406 SET obuild_pwd_snovis_0=
    407 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_34
    408 SET obuild_cxx_includes=%obuild_cxx_includes% -I${Geant4_home}/include
    409 :end_if_platform_34
    410400SET obuild_platform_result=
    411401SET obuild_cxx_includes=%obuild_cxx_includes% /I"%obuild_HDF5_path%\include"
     
    429419cd "%obuild_pwd_snovis_0%"
    430420SET obuild_pwd_snovis_0=
     421IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
     422SET obuild_cxx_linker_command=c++
     423:end_if_platform_35
     424SET obuild_platform_result=
     425FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     426cd "%obuild_snovis_path%\%obuild_dir_bin%"
     427IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     428FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     429cd "%obuild_pwd_snovis_0%"
     430SET obuild_pwd_snovis_0=
     431IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
     432SET obuild_cxx_linker_command=c++
     433:end_if_platform_36
     434SET obuild_platform_result=
     435FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     436cd "%obuild_snovis_path%\%obuild_dir_bin%"
     437IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     438FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
     439cd "%obuild_pwd_snovis_0%"
     440SET obuild_pwd_snovis_0=
    431441IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
    432 SET obuild_cxx_linker_command=c++
     442SET obuild_cxx_linker_command=cxx
    433443:end_if_platform_37
    434444SET obuild_platform_result=
     
    436446cd "%obuild_snovis_path%\%obuild_dir_bin%"
    437447IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     448FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
     449cd "%obuild_pwd_snovis_0%"
     450SET obuild_pwd_snovis_0=
     451IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
     452SET obuild_cxx_linker_command=link.exe
     453:end_if_platform_38
     454SET obuild_platform_result=
     455IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
     456
     457FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     458cd "%obuild_snovis_path%\%obuild_dir_bin%"
     459IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     460FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     461cd "%obuild_pwd_snovis_0%"
     462SET obuild_pwd_snovis_0=
     463IF NOT %obuild_platform_result% == yes GOTO end_if_platform_39
     464SET obuild_cxx_linker_debug=-g
     465:end_if_platform_39
     466SET obuild_platform_result=
     467FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     468cd "%obuild_snovis_path%\%obuild_dir_bin%"
     469IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    438470FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
    439471cd "%obuild_pwd_snovis_0%"
    440472SET obuild_pwd_snovis_0=
    441 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
    442 SET obuild_cxx_linker_command=c++
    443 :end_if_platform_38
     473IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
     474SET obuild_cxx_linker_debug=-g
     475:end_if_platform_40
    444476SET obuild_platform_result=
    445477FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    447479IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    448480FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) 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_39
    452 SET obuild_cxx_linker_command=cxx
    453 :end_if_platform_39
    454 SET obuild_platform_result=
    455 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    456 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    457 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    458 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    459 cd "%obuild_pwd_snovis_0%"
    460 SET obuild_pwd_snovis_0=
    461 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_40
    462 SET obuild_cxx_linker_command=link.exe
    463 :end_if_platform_40
    464 SET obuild_platform_result=
    465 IF "%obuild_cxx_linker_command%" == ""  ECHO Variable obuild_cxx_linker_command not defined.  && GOTO obuild_return
    466 
    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% Darwin`) DO SET obuild_platform_result=%%j
    471481cd "%obuild_pwd_snovis_0%"
    472482SET obuild_pwd_snovis_0=
     
    478488cd "%obuild_snovis_path%\%obuild_dir_bin%"
    479489IF 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% Linux`) DO SET obuild_platform_result=%%j
     490FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    481491cd "%obuild_pwd_snovis_0%"
    482492SET obuild_pwd_snovis_0=
    483493IF NOT %obuild_platform_result% == yes GOTO end_if_platform_42
    484 SET obuild_cxx_linker_debug=-g
     494SET obuild_cxx_linker_debug=/DEBUG
    485495:end_if_platform_42
    486496SET 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% OSF1`) DO SET obuild_platform_result=%%j
     497
     498FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     499cd "%obuild_snovis_path%\%obuild_dir_bin%"
     500IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     501FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    491502cd "%obuild_pwd_snovis_0%"
    492503SET obuild_pwd_snovis_0=
    493504IF NOT %obuild_platform_result% == yes GOTO end_if_platform_43
    494 SET obuild_cxx_linker_debug=-g
     505SET obuild_cxx_linker_options=/nologo
    495506:end_if_platform_43
    496507SET obuild_platform_result=
    497 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    498 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    499 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    500 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    501 cd "%obuild_pwd_snovis_0%"
    502 SET obuild_pwd_snovis_0=
    503 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_44
    504 SET obuild_cxx_linker_debug=/DEBUG
    505 :end_if_platform_44
    506 SET obuild_platform_result=
    507 
    508 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    509 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    510 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    511 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    512 cd "%obuild_pwd_snovis_0%"
    513 SET obuild_pwd_snovis_0=
    514 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_45
    515 SET obuild_cxx_linker_options=/nologo
    516 :end_if_platform_45
    517 SET obuild_platform_result=
    518 
    519 IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_46
     508
     509IF NOT %obuild_debug% == yes GOTO else_if_db_build_app_prog_snova_sh_44
    520510  SET obuild_cxx_linker_debug_local=%obuild_cxx_linker_debug%
    521   GOTO end_if_db_build_app_prog_snova_sh_46
    522 :else_if_db_build_app_prog_snova_sh_46
     511  GOTO end_if_db_build_app_prog_snova_sh_44
     512:else_if_db_build_app_prog_snova_sh_44
    523513  SET obuild_cxx_linker_debug_local=
    524 :end_if_db_build_app_prog_snova_sh_46
    525 
    526 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_47
     514:end_if_db_build_app_prog_snova_sh_44
     515
     516IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_app_prog_snova_sh_45
    527517  SET obuild_cxx_linker_optimize_local=%obuild_cxx_linker_optimize%
    528   GOTO end_if_opt_build_app_prog_snova_sh_47
    529 :else_if_opt_build_app_prog_snova_sh_47
     518  GOTO end_if_opt_build_app_prog_snova_sh_45
     519:else_if_opt_build_app_prog_snova_sh_45
    530520  SET obuild_cxx_linker_optimize_local=
    531 :end_if_opt_build_app_prog_snova_sh_47
     521:end_if_opt_build_app_prog_snova_sh_45
    532522
    533523SET obuild_linked_libraries=-L${snova_home}/Darwin -lsnova -lsnvertex -lsngeom -lgeomutils
     
    540530cd "%obuild_pwd_snovis_0%"
    541531SET obuild_pwd_snovis_0=
    542 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
     532IF NOT %obuild_platform_result% == yes GOTO end_if_platform_49
    543533SET 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
    544 :end_if_platform_51
    545 SET obuild_platform_result=
    546 FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
    547 cd "%obuild_snovis_path%\%obuild_dir_bin%"
    548 IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    549 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    550 cd "%obuild_pwd_snovis_0%"
    551 SET obuild_pwd_snovis_0=
    552 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
     534:end_if_platform_49
     535SET obuild_platform_result=
     536FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     537cd "%obuild_snovis_path%\%obuild_dir_bin%"
     538IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     539FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
     540cd "%obuild_pwd_snovis_0%"
     541SET obuild_pwd_snovis_0=
     542IF NOT %obuild_platform_result% == yes GOTO end_if_platform_50
    553543SET obuild_linked_libraries=%obuild_linked_libraries% -L${CLHEP_home}/lib -lCLHEP
    554 :end_if_platform_52
     544:end_if_platform_50
    555545SET obuild_platform_result=
    556546SET obuild_linked_libraries=%obuild_linked_libraries% "%obuild_HDF5_path%\%obuild_dir_bin%\osc_HDF5.lib"
Note: See TracChangeset for help on using the changeset viewer.