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_dll_snovis.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
     97FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) 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 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
    97107FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    98108cd "%obuild_pwd_snovis_0%"
    99109SET obuild_pwd_snovis_0=
    100 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_1
     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_dll_snovis_sh_26
     289IF NOT %obuild_debug% == yes GOTO else_if_db_build_dll_snovis_sh_24
    300290  SET obuild_cxx_debug_local=%obuild_cxx_debug%
    301   GOTO end_if_db_build_dll_snovis_sh_26
    302 :else_if_db_build_dll_snovis_sh_26
     291  GOTO end_if_db_build_dll_snovis_sh_24
     292:else_if_db_build_dll_snovis_sh_24
    303293  SET obuild_cxx_debug_local=
    304 :end_if_db_build_dll_snovis_sh_26
    305 
    306 IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_27
     294:end_if_db_build_dll_snovis_sh_24
     295
     296IF NOT %obuild_optimize% == yes GOTO else_if_opt_build_dll_snovis_sh_25
    307297  SET obuild_cxx_optimize_local=%obuild_cxx_optimize%
    308   GOTO end_if_opt_build_dll_snovis_sh_27
    309 :else_if_opt_build_dll_snovis_sh_27
     298  GOTO end_if_opt_build_dll_snovis_sh_25
     299:else_if_opt_build_dll_snovis_sh_25
    310300  SET obuild_cxx_optimize_local=
    311 :end_if_opt_build_dll_snovis_sh_27
     301:end_if_opt_build_dll_snovis_sh_25
    312302
    313303
     
    466456cd "%obuild_pwd_snovis_0%"
    467457SET obuild_pwd_snovis_0=
    468 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_37
     458IF NOT %obuild_platform_result% == yes GOTO end_if_platform_35
    469459SET obuild_cxx_includes=%obuild_cxx_includes% -I/System/Library/Frameworks/OpenGL.framework/Headers
    470 :end_if_platform_37
     460:end_if_platform_35
    471461SET obuild_platform_result=
    472462FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     
    476466cd "%obuild_pwd_snovis_0%"
    477467SET obuild_pwd_snovis_0=
    478 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_38
     468IF NOT %obuild_platform_result% == yes GOTO end_if_platform_36
    479469SET obuild_cxx_includes=%obuild_cxx_includes% -I${OBUILD_OPENGL_HOME}/include
    480 :end_if_platform_38
     470:end_if_platform_36
    481471SET obuild_platform_result=
    482472
     
    522512cd "%obuild_pwd_snovis_0%"
    523513SET obuild_pwd_snovis_0=
     514IF NOT %obuild_platform_result% == yes GOTO end_if_platform_51
     515SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     516:end_if_platform_51
     517SET obuild_platform_result=
     518FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     519cd "%obuild_snovis_path%\%obuild_dir_bin%"
     520IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     521FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     522cd "%obuild_pwd_snovis_0%"
     523SET obuild_pwd_snovis_0=
     524IF NOT %obuild_platform_result% == yes GOTO end_if_platform_52
     525SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     526:end_if_platform_52
     527SET obuild_platform_result=
     528FOR /F "usebackq delims=;" %%d IN (`cd`) DO SET obuild_pwd_snovis_0=%%d
     529cd "%obuild_snovis_path%\%obuild_dir_bin%"
     530IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
     531FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     532cd "%obuild_pwd_snovis_0%"
     533SET obuild_pwd_snovis_0=
    524534IF NOT %obuild_platform_result% == yes GOTO end_if_platform_53
    525 SET obuild_linked_libraries=%obuild_linked_libraries% -framework OpenGL -framework AGL
     535SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
    526536:end_if_platform_53
    527537SET obuild_platform_result=
     
    529539cd "%obuild_snovis_path%\%obuild_dir_bin%"
    530540IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    531 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Darwin`) DO SET obuild_platform_result=%%j
     541FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Windows_NT`) DO SET obuild_platform_result=%%j
    532542cd "%obuild_pwd_snovis_0%"
    533543SET obuild_pwd_snovis_0=
    534544IF NOT %obuild_platform_result% == yes GOTO end_if_platform_54
    535 SET obuild_linked_libraries=%obuild_linked_libraries% -framework ApplicationServices
     545SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
    536546:end_if_platform_54
    537547SET obuild_platform_result=
     
    539549cd "%obuild_snovis_path%\%obuild_dir_bin%"
    540550IF NOT EXIST .\obuild_platform.exe  ECHO Program obuild_platform.exe not found.  && GOTO obuild_return
    541 FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% Linux`) DO SET obuild_platform_result=%%j
     551FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% OSF1`) DO SET obuild_platform_result=%%j
    542552cd "%obuild_pwd_snovis_0%"
    543553SET obuild_pwd_snovis_0=
    544554IF NOT %obuild_platform_result% == yes GOTO end_if_platform_55
    545 SET obuild_linked_libraries=%obuild_linked_libraries% -L/usr/lib -lGLU -lGL -lm
     555SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    546556:end_if_platform_55
    547557SET obuild_platform_result=
     
    549559cd "%obuild_snovis_path%\%obuild_dir_bin%"
    550560IF 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% Windows_NT`) DO SET obuild_platform_result=%%j
     561FOR /F "usebackq" %%j IN (`.\obuild_platform.exe  %obuild_platform% UNIX`) DO SET obuild_platform_result=%%j
    552562cd "%obuild_pwd_snovis_0%"
    553563SET obuild_pwd_snovis_0=
    554564IF NOT %obuild_platform_result% == yes GOTO end_if_platform_56
    555 SET obuild_linked_libraries=%obuild_linked_libraries% glu32.lib opengl32.lib gdi32.lib user32.lib
     565SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    556566:end_if_platform_56
    557 SET 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
    562 cd "%obuild_pwd_snovis_0%"
    563 SET obuild_pwd_snovis_0=
    564 IF NOT %obuild_platform_result% == yes GOTO end_if_platform_57
    565 SET obuild_linked_libraries=%obuild_linked_libraries% -L${OBUILD_OPENGL_HOME}/lib -lGLU -lGL -lm
    566 :end_if_platform_57
    567 SET 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% UNIX`) 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_58
    575 SET obuild_linked_libraries=%obuild_linked_libraries% -lpthread
    576 :end_if_platform_58
    577567SET obuild_platform_result=
    578568
Note: See TracChangeset for help on using the changeset viewer.