- Timestamp:
- Apr 11, 2007, 3:23:47 PM (18 years ago)
- Location:
- trunk/SophyaLib/BuildMgr
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BuildMgr/AIX_xlC_make.inc
r3013 r3210 19 19 # Def compilateur C et flags 20 20 CC = xlc 21 CFLAGS = -O -g 21 # Replace [CNFPHFLF] by specific compilation flags below (done by configure) 22 CFLAGS = -O -g CNFPHFLF 22 23 # Def compilateur C++ et flags 23 24 CXX = xlC … … 25 26 # -qrtti=all : generate all RTTI infomation dynamic_cast + typeinfo 26 27 # -qeh=v6 : Exception handling compatible with v6 27 CXXFLAGS = -qrtti=all -qeh=v6 -O -g 28 CXXFLAGS = -qrtti=all -qeh=v6 -O -g CNFPHFLF 28 29 # flags specifiques pour templates repository... 29 30 # CXXTEMPFLG = -qtemplateregistry=$(SOPHYAOBJP)/templateregistry -qtemplaterecompile 30 31 CXXTEMPFLG = 31 32 # Compilo fortran 32 FC = xlf 33 FC = xlf CNFPHFLF 33 34 FFLAGS = 34 35 # Pour fabriquer les lib .a … … 58 59 59 60 SOPHYASLBLIST = -L$(SOPHYASLBP) -lsophya $(SOPBASELIBS) 60 # SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS) 61 # SOPHYAALLSLBLIST = -L$(SOPHYALIBP) -lPIext -lPIGcont -lPI -L$(SOPHYASLBP) -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS) 62 ### --- Pb sur AIX quand plusieurs shared libs sont utilisees 63 SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lAsophyaextPI $(SOPBASELIBS) $(SOPEXTLIBS) $(SOPBASELIBS) 64 SOPHYAALLSLBLIST = $(SOPHYAEXTSLBLIST) 61 SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lextsophya -lsophya $(SOPEXTLIBS) $(SOPBASELIBS) 62 SOPHYAALLSLBLIST = -L$(SOPHYASLBP) -lPI -lextsophya -lsophya $(PILIBS) $(SOPEXTLIBS) $(SOPBASELIBS) 63 ### --- Pb sur AIX quand plusieurs shared libs sont utilisees -> remplacement par -lAsophyaextPI 64 ## SOPHYAEXTSLBLIST = -L$(SOPHYASLBP) -lAsophyaextPI $(SOPBASELIBS) $(SOPEXTLIBS) $(SOPBASELIBS) 65 ## SOPHYAALLSLBLIST = $(SOPHYAEXTSLBLIST) 66 ### --------------------- 65 67 66 68 # Commande de link pour creation d'executables -
trunk/SophyaLib/BuildMgr/Darwin_g++_make.inc
r2912 r3210 13 13 # Def compilateur C et flags 14 14 CC = cc 15 CFLAGS = -fno-common -g -fPIC 15 # Replace [CNFPHFLF] by specific compilation flags below (done by configure) 16 CFLAGS = -fno-common -g -fPIC CNFPHFLF 16 17 # With optimization flags 17 # CFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC18 # CFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC 18 19 # Def compilateur C++ et flags 19 20 CXX = c++ 20 CXXFLAGS = -fno-common -g -fPIC 21 CXXFLAGS = -fno-common -g -fPIC CNFPHFLF 21 22 # CXXFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC 22 23 # flags specifiques pour templates repository... -
trunk/SophyaLib/BuildMgr/IRIX64_CC_make.inc
r3094 r3210 15 15 # Def compilateur C et flags 16 16 CC = cc 17 CFLAGS = -64 -O -g 17 # Replace [CNFPHFLF] by specific compilation flags below (done by configure) 18 CFLAGS = -O -g CNFPHFLF 18 19 # Def compilateur C++ et flags 19 20 CXX = CC 20 CXXFLAGS = - 64 -prelink -LANG:std -O -g21 CXXFLAGS = -prelink -LANG:std -O -g CNFPHFLF 21 22 # flags specifiques pour templates repository... 22 23 CXXTEMPFLG = 23 24 # Compilo fortran / commande et flags a verifier 24 25 FC = f90 25 FFLAGS = -6426 FFLAGS = CNFPHFLF 26 27 # Pour fabriquer les lib .a 27 28 AR = /usr/bin/ar -
trunk/SophyaLib/BuildMgr/Linux_g++_make.inc
r3130 r3210 13 13 # Def compilateur C et flags 14 14 CC = gcc 15 CFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -O -g 15 # Replace [CNFPHFLF] by specific compilation flags below (done by configure) 16 CFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -O -g -fPIC CNFPHFLF 16 17 # Def compilateur C++ et flags 17 18 CXX = g++ 18 CXXFLAGS = -Wall -Wpointer-arith -Wsynth -O -g 19 CXXFLAGS = -Wall -Wpointer-arith -Wsynth -O -g -fPIC CNFPHFLF 19 20 # flags specifiques pour templates repository... 20 21 CXXTEMPFLG = -
trunk/SophyaLib/BuildMgr/Linux_icc_make.inc
r2910 r3210 13 13 # Def compilateur C et flags 14 14 CC = icc 15 CFLAGS = -fpic -O -g 15 # Replace [CNFPHFLF] by specific compilation flags below (done by configure) 16 CFLAGS = -fpic -O -g CNFPHFLF 16 17 # Def compilateur C++ et flags 17 18 CXX = icpc 18 CXXFLAGS = -fpic -O -frtti -g 19 CXXFLAGS = -fpic -O -frtti -g CNFPHFLF 19 20 CXXREP = 20 21 # Compilo fortran -
trunk/SophyaLib/BuildMgr/OSF1_cxx_make.inc
r2910 r3210 13 13 # Def compilateur C et flags 14 14 CC = cc 15 CFLAGS = -O -pthread -g1 15 # Replace [CNFPHFLF] by specific compilation flags below (done by configure) 16 CFLAGS = -O -pthread -g1 CNFPHFLF 16 17 # Def compilateur C++ et flags 17 18 CXX = cxx 18 CXXFLAGS = -O -pthread -g1 -no_implicit_include 19 CXXFLAGS = -O -pthread -g1 -no_implicit_include CNFPHFLF 19 20 # flags specifiques pour templates repository... 20 21 CXXTEMPFLG = -ptr $(SOPHYAOBJP)/cxxrep/ 21 22 # Compilo fortran 22 FC = f77 23 FC = f77 CNFPHFLF 23 24 FFLAGS = 24 25 # Pour fabriquer les lib .a -
trunk/SophyaLib/BuildMgr/configure
r3202 r3210 2 2 # SOPHYA configuration managment script 3 3 # C. Magneville / R. Ansari - Mai 2005 4 # Updated : 2006, Avr/Mai 2007 4 5 # Exemple: ./configure -sbase /laltmp/ansari/sbase/ -scxx cxx -extp /exp/planck/ExtLibs/Include/ \ 5 6 # -extp /exp/planck/ExtLibs/OSF1-cxx/ … … 38 39 unset incln 39 40 unset mincname 41 set compopt 40 42 unset arch64 41 43 unset sasz64 42 44 unset nofpic 45 unset nothsafe 43 46 unset boundcheck 44 47 unset sodebug 45 48 unset usefftw2 46 49 unset uselapack2 47 unset s ingleslb50 unset slballinone 48 51 while ( $#argv > 0 ) 49 52 50 53 if( "$1" == "-h" ) then 51 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] [-minc mymake.inc] ' 52 echo ' [-arch64] [-sasz64] [-nofpic] [-boundcheck] [-sodebug]' 54 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] ' 55 echo " [-minc mymake.inc] [-compopt 'cc/cxxOptions'] " 56 echo ' [-arch64] [-sasz64] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]' 53 57 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]' 54 echo ' [-noextlib -noext fits -noext fftw -noext lapack -noext astro]' 55 echo ' [-usefftw2 -uselapack2] [-singleslb]' 58 echo ' [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]' 59 echo ' [-noPI] [-slballinone]' 60 echo ' [-usefftw2 -uselapack2] ' 61 echo ' (See SOPHYA manual/web pages for a detailed description of configure options)' 56 62 exit -1 57 63 endif … … 69 75 if( "$1" == "-minc" ) then 70 76 set mincname = ( $2 ) 77 shift 78 endif 79 if( "$1" == "-compopt" ) then 80 set spcompopt = ( $2 ) 71 81 shift 72 82 endif … … 97 107 end 98 108 shift 109 endif 110 if( "$1" == "-PI" ) then 111 set SOPPIOK = ( 0 0 0 ) 99 112 endif 100 113 if( "$1" == "-usefftw2" ) then … … 115 128 set uselapack2 116 129 endif 117 if( "$1" == "-s ingleslb" ) then130 if( "$1" == "-slballinone" ) then 118 131 # Pour utiliser une seule librairie libsophyaPIext.so au lieu 119 132 # des 3 libsophya.so libextsophya.so libPI.so 120 set s ingleslb133 set slballinone 121 134 endif 122 135 # Decodage options pour flags de machdefs.h … … 130 143 if( "$1" == "-nofpic" ) then 131 144 set nofpic 145 endif 146 if( "$1" == "-nothsafe" ) then 147 set nothsafe 132 148 endif 133 149 if( "$1" == "-boundcheck" ) then … … 396 412 397 413 echo " " >> $mfile 398 cat $mincname >> $mfile 414 cat $mincname >> $mfile 415 416 # --- Gestion des flags modifiants les options de compilation et liste de librairies (par sed) 417 set sprgfile = $TMPDIR/compop.scom 418 set scmd = "s/CNFPHFLF/ $compopt/g" 419 if ($?arch64) then 420 set a64cf = ' ' 421 if ( "$sname" == "IRIX64" ) && ("$SOPHYACXX" == "CC" ) set a64cf = '-64' 422 if ( "$sname" == "AIX" ) && ( ("$SOPHYACXX" == "xlC" ) || ("$SOPHYACXX" == "xlc" ) ) 423 set a64cf = '-q64' 424 set scmd = "s/CNFPHFLF/$a64cf $compopt/g" 425 endif 426 echo $scmd > $sprgfile 427 if ( $?nofpic ) echo "s/-fPIC/ /g" >> $sprgfile 428 if( $?slballinone ) then 429 echo "s/-lPI -lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile 430 echo "s/-lextsophya -lsophya/-lAsophyaextPI/" >> $sprgfile 431 endif 432 set scmd = "sed -f $sprgfile" 433 set mftmp = $TMPDIR/sopmake.inc 434 cp $mfile $mftmp 435 sed -f $sprgfile $mftmp > $mfile 436 rm -f $sprgfile $mftmp 437 # --- FIN de gestion des flags modifiants les options de compilation (par sed) 399 438 400 439 rm -f $mfile:t … … 418 457 echo "#endif" >> $mdefname 419 458 459 ## Definition de flags de compilation en fonction des options de configure 420 460 if ( $?arch64 ) echo "#define SO_ARCH64 1" >> $mdefname 461 if ( $?sasz64 ) echo "#define SO_SASIZET64 1" >> $mdefname 421 462 if ( $?nofpic ) echo "#define SO_NOFPIC 1" >> $mdefname 422 if ( $? sasz64 ) echo "#define SO_SASIZET641" >> $mdefname463 if ( $?nothsafe ) echo "#define SO_NOTHSAFE 1" >> $mdefname 423 464 if ( $?boundcheck ) echo "#define SO_BOUNDCHECKING 1" >> $mdefname 424 465 if ( $?sodebug ) echo "#define SOPHYA_DEBUG 1" >> $mdefname 425 466 426 467 if ( "$sname" == "IRIX64" ) then 427 # SGI_ARCH64 : compile avec -64 (en 64 bits)428 echo "#define SGI_ARCH64 1 /* Compile avec -64 */" >> $mdefname429 468 if ( "$SOPHYACXX" == "CC" ) then 430 469 # __SGICC__ : flag indiquant que c'est le compilo CC de SGI … … 478 517 echo " " >> $sinc/sspvflags.h 479 518 echo "/*------ Use of single shared lib for SOPHYA+extlibs+PI ---- */" >> $sinc/sspvflags.h 480 if( $?s ingleslb) then481 echo "#define S INGLESLB_SOPHYA_PI_EXT" >> $sinc/sspvflags.h519 if( $?slballinone ) then 520 echo "#define SO_SLBALLINONE " >> $sinc/sspvflags.h 482 521 endif 483 522 echo " " >> $sinc/sspvflags.h … … 516 555 echo " 7.c/ Creating $objlistname " 517 556 rm -f $objlistname ; touch $objlistname 518 foreach d ( $SOPPI ) 557 set i = 0 558 while ( $i < $#SOPPI ) 559 @ i += 1 560 set d = $SOPPI[$i] 519 561 rm -f $sconf/$d.conf 562 if( $SOPPIOK[$i] <= 0 ) continue 520 563 if ( ! -d ../$d ) continue 521 564 cat ../$d/objlist.list >> $objlistname
Note:
See TracChangeset
for help on using the changeset viewer.