Changeset 2739 in Sophya for trunk/SophyaLib/BuildMgr
- Timestamp:
- May 20, 2005, 9:28:55 AM (20 years ago)
- Location:
- trunk/SophyaLib/BuildMgr
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BuildMgr/Makefile
r2726 r2739 28 28 if [ -d ../LinAlg ] ; then cd ../LinAlg ; $(MAKE) ; fi 29 29 if [ -d ../XAstroPack ] ; then cd ../XAstroPack ; $(MAKE) ; fi 30 if [ -d ../MinuitAdapt ] ; then cd ../MinuitAdapt ; $(MAKE) ; fi 30 31 31 32 PI:: … … 38 39 # List of libraries (.a) 39 40 PSLB = $(SOPHYALIBP)libBaseTools.a $(SOPHYALIBP)libSysTools.a $(SOPHYALIBP)libSUtils.a $(SOPHYALIBP)libTArray.a $(SOPHYALIBP)libNTools.a $(SOPHYALIBP)libHiStats.a $(SOPHYALIBP)libSkyMap.a $(SOPHYALIBP)libSamba.a $(SOPHYALIBP)libSkyT.a 40 EXTPSLB = $(SOPHYALIBP)libFitsIOServer.a $(SOPHYALIBP)libIFFTW.a $(SOPHYALIBP)libLinAlg.a $(SOPHYALIBP)libXAstroPack.a 41 EXTPSLB = $(SOPHYALIBP)libFitsIOServer.a $(SOPHYALIBP)libIFFTW.a $(SOPHYALIBP)libLinAlg.a41 EXTPSLB = $(SOPHYALIBP)libFitsIOServer.a $(SOPHYALIBP)libIFFTW.a $(SOPHYALIBP)libLinAlg.a $(SOPHYALIBP)libXAstroPack.a $(SOPHYALIBP)libMinuitAdapt.a 42 #EXTPSLB = $(SOPHYALIBP)libFitsIOServer.a $(SOPHYALIBP)libIFFTW.a $(SOPHYALIBP)libLinAlg.a 42 43 PIPSLB = $(SOPHYALIBP)libPI.a $(SOPHYALIBP)libPIGcont.a $(SOPHYALIBP)libPIext.a 43 44 -
trunk/SophyaLib/BuildMgr/README
r2720 r2739 6 6 ./mkmflib -sbase /tmp/sbase SUtils 7 7 8 3/ domkmf : c-shell script : calls mkmflib for all modules 8 3/ mkmfprog : c-shell script for creation of programs module Makefile / smakefile 9 ./mkmfprog -sbase /tmp/sbase SUtils 10 11 4/ domkmf : c-shell script : calls mkmflib for all modules 9 12 ./domkmf -sbase /tmp/sbase 10 13 11 4/ Makefile : Top level makefile for library modules14 5/ Makefile : Top level makefile for library modules 12 15 13 5/ Configuration files :16 6/ Configuration files : 14 17 - Linux_g++_make.inc : Linux with g++ compiler 15 18 - OSF1_cxx_make.inc : (HP/Compaq/Digital Tru64 with native cxx compiler) -
trunk/SophyaLib/BuildMgr/configure
r2726 r2739 34 34 echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] [-minc mymake.inc] ' 35 35 echo ' [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]' 36 echo ' [-noext fits -noext fftw -noext lapack -noext astro -noext minuit]'36 echo ' [-noextlib -noext fits -noext fftw -noext lapack -noext astro -noext minuit]' 37 37 exit -1 38 38 endif … … 63 63 set extpathlib = ( $extpathlib $2 ) 64 64 shift 65 endif 66 if( "$1" == "-noextlib" ) then 67 set i = 0 68 while ( $i < $#SOPEXTOK ) 69 @ i += 1 70 set SOPEXTOK[$i] = 0 71 end 65 72 endif 66 73 if( "$1" == "-noext" ) then … … 172 179 set file 173 180 foreach f ( *.h ) 174 grep "$f" excludeinc > /dev/null181 grep -q "$f:r\.h" excludeinc 175 182 if( $status != 0 ) set file = ( $file $f ) 176 183 end … … 350 357 echo " 7.b/ Creating $objlistname " 351 358 rm -f $objlistname ; touch $objlistname 352 foreach d ( $SOPEXT ) 353 if ( -d ../$d ) then 354 cat ../$d/objlist.list >> $objlistname 355 endif 356 end 359 set i = 0 360 while ( $i < $#SOPEXT ) 361 @ i += 1 362 if( $SOPEXTOK[$i] <= 0 ) continue 363 set d = $SOPEXT[$i] 364 if ( ! -d ../$d ) continue 365 cat ../$d/objlist.list >> $objlistname 366 end 357 367 358 368 set objlistname = $sconf/libPI.objlist -
trunk/SophyaLib/BuildMgr/domkmf
r2734 r2739 26 26 end 27 27 28 ###echo " ==== Creation smakefile pour les modules de Programmes ====" 29 ###foreach f ( ProgPI PrgUtil PrgMap Tests PMixer ) 30 ### set cmd = "./mkmfprog $* $f" 31 ### $DO $cmd 32 ###end 28 echo " ==== Creation smakefile pour les modules de Programmes ====" 29 #foreach f ( ProgPI PrgUtil PrgMap Tests PMixer ) 30 foreach f ( ProgPI PrgUtil PrgMap PMixer ) 31 set cmd = "./mkmfprog $* $f" 32 $DO $cmd 33 end -
trunk/SophyaLib/BuildMgr/mkdepend.csh
r2734 r2739 30 30 | sed -e 's?'$inc/'?$(SOPHYAINCP)?g' 31 31 else 32 echo "extension $ext not reated"32 echo "extension $ext not treated" 33 33 endif 34 34 -
trunk/SophyaLib/BuildMgr/mkmflib
r2734 r2739 3 3 # librairies SOPHYA 4 4 # C. Magneville / R. Ansari - Mai 2005 5 #------ 6 # Option controlant la generation des smakefile OU Makefile 7 # smakefile utilise pour le developpement - contient une reference 8 # a $(SOPHYABASE)/include/sophyamake.inc 9 # les Makefile reference ../BuildMgr/sophyamake.inc 10 #------ 11 12 if ( ! $?TMPDIR ) set TMPDIR = /tmp 13 set makname = "Makefile" 14 unset targetdir 5 15 6 16 if ( $#argv < 1) then … … 8 18 exit -1 9 19 endif 10 11 # Option controlant la generation des smakefile OU Makefile12 # smakefile utilise pour le developpement - contient une reference13 # a $(SOPHYABASE)/include/sophyamake.inc14 # les Makefile reference ../BuildMgr/sophyamake.inc15 16 set makname = "Makefile"17 unset targetdir18 20 19 21 while ( $#argv > 0 ) … … 44 46 cd ../$targetdir 45 47 48 #--- fichier des fichiers a exclure 46 49 if ( ! -f exclude ) touch exclude 47 if ( ! -f flags_compil ) touch flags_compil 48 if ( ! -f extlib_list ) touch extlib_list 49 if ( ! -f extslb_list ) touch extslb_list 50 51 if ( ! $?TMPDIR ) set TMPDIR = /tmp 52 if (-f exclude_dpc ) then 53 # CHECK !!! qque chose a faire ... 54 # On utilise alors le fichier exclude_dpc 55 echo ' DBG - utilisation du fichier exclude_dpc pour ' $targetdir 56 sort exclude_dpc >! $TMPDIR/exclude.sort 57 set exclfile = 'exclude_dpc' 58 else 59 sort exclude >! $TMPDIR/exclude.sort 60 set exclfile = 'exclude' 61 endif 50 sort exclude >! $TMPDIR/exclude.sort 51 set exclfile = 'exclude' 62 52 63 53 echo "mkmflib: Creating $targetdir/objlist.list , $targetdir/$makname" 64 54 65 ############################################## 66 ########### fichier de la liste des .o ####### 67 ############################################## 68 55 #--- fichier de la liste des .o 69 56 set liblist = objlist.list 70 57 rm -f $liblist … … 73 60 unset liblist 74 61 75 ############################################## 76 ########### Creation de smakefile ########## 77 ############################################## 78 62 #--- Creation de smakefile 79 63 set libf='$(SOPHYALIBP)lib'$targetdir'.a' 80 81 82 rm -f $makname 83 touch $makname 64 rm -f $makname; touch $makname 84 65 85 66 if ($makname == "smakefile") then … … 89 70 endif 90 71 91 echo " ">> $makname72 echo ' ' >> $makname 92 73 echo 'all:' $libf >> $makname 93 74 echo ' ' >> $makname … … 95 76 echo 'clean:' >> $makname 96 77 set toto='rm -f' 97 foreach f ( *.cc *.c)78 foreach f ( *.cc *.c ) 98 79 set toto= ( $toto '$(SOPHYAOBJP)'$f:r.o ) 99 80 end 100 echo ' ' $toto >> $makname81 echo ' ' $toto >> $makname 101 82 echo ' rm -f '$libf >> $makname 102 83 echo ' ' >> $makname … … 109 90 echo " " >> $makname 110 91 111 set inc = `echo $SOPHYABASE/include | sed "s?//?/?g"` 92 93 #--- Creation des dependances 94 set inc = `echo $SOPHYABASE/include | sed "s?//?/?g" | sed 's?/$??'` 112 95 set nomsys = `uname` 113 96 … … 130 113 end 131 114 115 foreach f ( *.f ) 116 grep -q '^'$f'$' $exclfile && continue 117 echo '$(SOPHYAOBJP)'$f:r'.o: '$f >> $makname 118 echo ' $(FCOMPILE) -o $@ $<' >> $makname 119 echo ' ' >> $makname 120 end 121 132 122 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.