Changeset 3840 in Sophya
- Timestamp:
- Aug 10, 2010, 12:25:04 AM (15 years ago)
- Location:
- trunk/SophyaLib/BuildMgr
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BuildMgr/AIX_xlC_make.inc
r3497 r3840 11 11 12 12 # Chemin et librairie pour PI 13 PIINC = 14 PILIBS = -lXm -lXt -lX11 13 PIINC = $(PIEXTINC) -I/usr/include/ 14 PILIBS = $(PIEXTLIB) -L/usr/lib/ -lXt -lX11 15 15 16 16 17 # Flag preprocesseur -
trunk/SophyaLib/BuildMgr/Darwin_g++_make.inc
r3250 r3840 5 5 6 6 # Chemin et librairie pour PI 7 PIINC = -I/usr/X11R6/include/ -I/sw/include8 PILIBS = -L/sw/lib -lXm -L/usr/X11R6/lib-lXt -lX117 PIINC = $(PIEXTINC) -I/usr/X11R6/include/ 8 PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11 9 9 10 10 -
trunk/SophyaLib/BuildMgr/IRIX64_CC_make.inc
r3265 r3840 5 5 6 6 # Chemin et librairie pour PI 7 PIINC = 8 PILIBS = -lXm-lXt -lX117 PIINC = $(PIEXTINC) -I/usr/include/ 8 PILIBS = $(PIEXTLIB) -L/usr/lib/ -lXt -lX11 9 9 10 10 -
trunk/SophyaLib/BuildMgr/Linux_g++_make.inc
r3820 r3840 6 6 7 7 # Chemin et librairie pour PI 8 PIINC = -I/usr/X11R6/include/9 PILIBS = -L/usr/X11R6/lib/ -lXm-lXt -lX118 PIINC = $(PIEXTINC) -I/usr/X11R6/include/ 9 PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11 10 10 11 11 -
trunk/SophyaLib/BuildMgr/Linux_icc_make.inc
r3834 r3840 5 5 6 6 # Chemin et librairie pour PI 7 PIINC = -I/usr/X11R6/include/8 PILIBS = -L/usr/X11R6/lib/ -lXm-lXt -lX117 PIINC = $(PIEXTINC) -I/usr/X11R6/include/ 8 PILIBS = $(PIEXTLIB) -L/usr/X11R6/lib/ -lXt -lX11 9 9 10 10 -
trunk/SophyaLib/BuildMgr/OSF1_cxx_make.inc
r3210 r3840 5 5 6 6 # Chemin et librairie pour PI 7 PIINC = 8 PILIBS = -lXm-lXt -lX117 PIINC = $(PIEXTINC) -I/usr/include/ 8 PILIBS = $(PIEXTLIB) -L/usr/lib/ -lXt -lX11 9 9 10 10 -
trunk/SophyaLib/BuildMgr/README
r3401 r3840 2 2 == Code Management scripts / top level makefile for SOPHYA ==== 3 3 =============================================================== 4 (C) LAL-IN2P3/CNRS 1998-2007 5 (C) DAPNIA/CEA 1998-2007 4 (C) LAL-IN2P3/CNRS 1998-2010 5 (C) Universite Paris Sud 1998-2010 6 (C) IRFU/CEA 1998-2010 6 7 =============================================================== 7 8 … … 17 18 csh> cd BuildMgr/ 18 19 csh> ./configure -h 20 configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] 21 [-minc mymake.inc] [-compopt 'cc/cxxOptions'] 22 [-arch64] [-arch32] [-sasz64] [-ldble128] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug] 23 [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ] 24 [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro] 25 [-alsofftwfloat] [-usefftw2] [-uselapack2] 26 [-wgrdl] [-epip mdir1 -motp mdir2 ...] [-noPI] [-slballinone] 27 (See SOPHYA manual/web pages for a detailed description of configure options) 28 29 ### Configuration example : 19 30 # configure with c-fitsio, installed in /usr/local/include and /usr/local/lib, 20 31 # with g++ as cxx compiler. The target installation directory is $HOME/SObjs/ … … 53 64 6/ Currently tested on the following platform/compilers 54 65 ------------------------------------------------------------------------- 55 Linux 2.4 , 2.6 g++ 3.x 4.0 (GNU g++ compiler) 66 Linux kernel 2.6 g++ 4.1 4.4 (GNU g++ compiler) 67 Linux kernel 2.6 icc 10.1 (Intel compiler) 56 68 MacOSX/Darwin 10.3/10.4 g++ 3.3,4.0 (Apple/GNU compiler) 57 Linux 2.4 icc 9.0 (Intel compiler) 69 MacOSX/Darwin 10.5 g++ 4.0 (Apple/GNU compiler) 70 MacOSX/Darwin 10.6 g++ 4.2 (Apple/GNU compiler) 71 IBM AIX 5.3 xlC 8.0 (AIX native compiler) 58 72 HP/Compaq/DEC OSF 5.x cxx 6.x (native Tru64/OSF compiler) 59 SGI IRIX64 CC 7.30 (IRIX-64 native compiler)60 IBM AIX (5.3) xlC 8.0 (AIX native compiler)61 73 ------------------------------------------------------------------------- 62 74 … … 119 131 * Tests/ Simple test programs 120 132 121 * PMixer/ skymixer and utility main programs 133 * PMixer/ skymixer and utility main programs (obsolete) 122 134 123 135 * PrgUtil/ Utility main programs -
trunk/SophyaLib/BuildMgr/configure
r3818 r3840 30 30 set defextlib = ( /usr/lib /usr/local/lib ) 31 31 32 set defepiinc = ( /usr/X11R6/include ) 33 set defepilib = ( /usr/X11R6/lib ) 32 34 33 35 #---------------------------------------------------------------------- … … 37 39 set extpathinc 38 40 set extpathlib 41 set avecEXT 39 42 unset incln 40 43 unset mincname … … 52 55 unset alsofftwfloat 53 56 unset slballinone 57 ## variables pour PI (librairie motif, GNU-readline ...) 58 set epipath 59 unset wgrdl 60 set avecPI 61 62 #### boucle de decodage des arguments : 54 63 while ( $#argv > 0 ) 55 64 … … 60 69 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]' 61 70 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]' 62 echo ' [-noPI] [-slballinone]'63 71 echo ' [-alsofftwfloat] [-usefftw2] [-uselapack2] ' 72 echo ' [-wgrdl] [-epip mdir1 -motp mdir2 ...] [-noPI] [-slballinone]' 64 73 echo ' (See SOPHYA manual/web pages for a detailed description of configure options)' 65 74 exit -1 … … 102 111 set SOPEXTOK[$i] = 0 103 112 end 113 unset avecEXT 104 114 endif 105 115 if( "$1" == "-noext" ) then … … 110 120 end 111 121 shift 112 endif113 if( "$1" == "-PI" ) then114 set SOPPIOK = ( 0 0 0 )115 122 endif 116 123 if( "$1" == "-alsofftwfloat" ) then … … 142 149 set uselapack2 143 150 endif 151 ## Decodage arguments specifique PI 152 if( "$1" == "-noPI" ) then 153 set SOPPIOK = ( 0 0 0 ) 154 unset avecPI 155 endif 156 ## compil piapp avec GNU-readline 157 if( "$1" == "-wgrdl" ) then 158 set wgrdl 159 endif 160 ## Chemin motif , readline ... 161 if( "$1" == "-epip" ) then 162 set epipath = ( $epipath $2 ) 163 shift 164 endif 144 165 if( "$1" == "-slballinone" ) then 145 166 # Pour utiliser une seule librairie libsophyaPIext.so au lieu … … 181 202 end 182 203 183 ## ------ Detection linux 64 bits ---204 ## ------ Detection linux 64 bits, AIX, IRIX --- 184 205 unset linux64 185 206 if ( `uname` == "Linux" ) then … … 190 211 endif 191 212 endif 213 set sname = `uname` 214 if ( ( "$sname" == "IRIX64" ) || ( "$sname" == "AIX" ) ) set arch64 192 215 193 216 … … 313 336 #### lien des .h des librairies externes 314 337 echo " " 315 echo ">>>>>> 3 / Include files for external libraries "338 echo ">>>>>> 3.1/ Include files for external libraries " 316 339 set i = 0 317 340 while ( $i < $#SOPEXT ) … … 341 364 end 342 365 366 ### recherche des .h Motif et si besoin readline 367 set piextinc 368 if ( $?avecPI ) then 369 echo " " 370 echo ">>>>>> 3.2/ searching include files for Motif " 371 foreach d ( $epipath /usr/X11R6/include ) 372 set duminc = `find $d -name Xm -print -follow | head -1 ` 373 set dumrep = $duminc:h 374 if ( "$dumrep" != "" ) then 375 set piextinc = "-I$dumrep" 376 echo Includes for Motif found in $dumrep 377 break 378 endif 379 end 380 if ( "$dumrep" == "" ) then 381 echo WARNING: Includes for Motif NOT found 382 echo ' expect problems when compiling PI modules, check sophyamake.inc ... ' 383 endif 384 endif 385 if ( $?wgrdl ) then 386 echo ">>>>>> 3.3/ searching include files for GNU readline " 387 foreach d ( $epipath /usr/local ) 388 set duminc = `find $d -name readline -print -follow | head -1 ` 389 set dumrep2 = $duminc:h 390 if ( "$dumrep2" != "" ) then 391 if ( "$dumrep2" != "$dumrep" ) set piextinc = "-I$dumrep2 $piextinc" 392 echo Includes for readline found in $dumrep 393 break 394 endif 395 end 396 if ( "$dumrep2" == "" ) then 397 echo WARNING: Includes for readline NOT found 398 echo ' expect problems when compiling piapp, check sophyamake.inc ... ' 399 endif 400 endif 401 402 endif 403 endif 343 404 344 405 #---------------------------------------------------------------------- … … 376 437 rm -f $fpath 377 438 439 ### recherche des librairies Motif et si besoin readline 440 set piextlib = '-L/usr/X11R6/lib -lXm' 441 if ( $?avecPI ) then 442 echo " " 443 echo ">>>>>> 4.2/ searching library Motif (libXm.a) " 444 foreach d ( $epipath /usr/X11R6/lib ) 445 set dumlib = `find $d -name libXm.a -print -follow | head -1 ` 446 set dumrep = $dumlib:h 447 if ( "$dumrep" != "" ) then 448 set piextlib = "-L$dumrep -lXm" 449 echo Motif library found in $dumrep 450 break 451 endif 452 end 453 if ( "$dumrep" == "" ) then 454 echo WARNING: Motif library NOT found 455 echo ' expect problems when for linking with PI, check sophyamake.inc ... ' 456 endif 457 endif 458 if ( $?wgrdl ) then 459 echo ">>>>>> 4.3/ searching libraries for GNU readline " 460 foreach d ( $epipath /usr/local ) 461 set dumlib = `find $d -name libreadline.a -print -follow | head -1 ` 462 set dumrep2 = $dumlib:h 463 if ( "$dumrep2" != "" ) then 464 if ( "$dumrep2" != "$dumrep" ) then 465 set piextlib = "$piextlib -L$dumrep -lreadline -lhistory " 466 else 467 set piextlib = "$piextlib -lreadline -lhistory " 468 endif 469 echo Libraries for readline found in $dumrep 470 break 471 endif 472 end 473 if ( "$dumrep" == "" ) then 474 echo WARNING: libraries for readline NOT found 475 echo ' expect problems for linking piapp, check sophyamake.inc ... ' 476 endif 477 endif 478 endif 479 endif 480 378 481 379 482 #---------------------------------------------------------------------- 380 483 #### Identification des librairies archives Sophya 381 484 echo " " 382 echo ">>>>>> 4. 2/ Sophya libraries archives "485 echo ">>>>>> 4.4/ Sophya libraries archives " 383 486 set sopmodlib 384 487 set i = 0 … … 443 546 echo "# PI libraries " >> $mfile 444 547 echo "SOPPILIBLIST = $soppilib" >> $mfile 548 echo "PIEXTINC = $piextinc" >> $mfile 549 echo "PIEXTLIB = $piextlib" >> $mfile 550 echo "PIEXTINC = $piextinc" 551 echo "PIEXTLIB = $piextlib" 445 552 446 553 echo " " >> $mfile … … 448 555 449 556 # --- Gestion des flags modifiants les options de compilation et liste de librairies (par sed) 450 set sname = `uname`451 557 set sprgfile = $TMPDIR/compop.scom 452 558 rm -f $sprgfile … … 477 583 echo "/SOPHYAEXTSLBLIST/s/-lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile 478 584 endif 479 if ( $?linux64 ) then 585 if ( ! $?avecEXT ) then 586 echo "/SOPHYAEXTSLBLIST/s/-lextsophya/ /" >> $sprgfile 587 echo "/SOPHYAALLSLBLIST/s/-lextsophya/ /" >> $sprgfile 588 endif 589 if ( ! $?avecPI ) then 590 echo "/SOPHYAALLSLBLIST/s/-lPI/ /" >> $sprgfile 591 endif 592 if ( ( $?linux64 ) && ( $?arch64) ) then 480 593 echo "s?-L/usr/X11R6/lib?-L/usr/X11R6/lib64?g" >> $sprgfile 481 594 endif … … 574 687 echo "#define LAPACK_V2_EXTSOP" >> $sinc/sspvflags.h 575 688 endif 576 echo " " >> $sinc/sspvflags.h 689 if( $?wgrdl ) then 690 echo "/*-- Compile piapp with GNU-readline -- */" >> $sinc/sspvflags.h 691 echo "#define PIA_WITH_GNUREADLINE" >> $sinc/sspvflags.h 692 endif 577 693 if( $?slballinone ) then 578 694 echo "/*------ Use of single shared lib for SOPHYA+extlibs+PI ---- */" >> $sinc/sspvflags.h
Note:
See TracChangeset
for help on using the changeset viewer.