Changeset 2424 in Sophya for trunk/SophyaLib/Mgr


Ignore:
Timestamp:
Aug 28, 2003, 4:26:09 PM (22 years ago)
Author:
cmv
Message:

... Mise en conformite de GNUmakefile (creation auto) et de MAkefile (manuel reza).

  • Je vire SysSpec de Mgr/libdirs (vielle bibli pour mac OS9 ppc
  • je vire lapack dxml for de LinAlg extlib_list et extslb_list:

tant que les systeme auto ne gere pas la possibilite d'avoir
des lib differentes selon les machines, il faut
traiter A LA MAIN --> les fichiers LinAlg/extlib_list et LinAlg/extslb_list
DOIVENT DONC ETRE VIDES!

  • ajout de rffwt dans IFFTW/extslb_list
  • ajout de libPIGcont dans PIPSLB liste des *.a dont dependent les *.so

-> un diff de GNUmakefile et Makefile donne l'identite aux fichiers de gestion des *.o pres!

Dans un acces de rage unificatrice... cmv 28/08/2003

Location:
trunk/SophyaLib/Mgr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Mgr/libdirs

    r1783 r2424  
    88Samba
    99SkyT
    10 SysSpec
  • trunk/SophyaLib/Mgr/mkmf

    r1834 r2424  
    11#!/bin/csh
    2 # $Id: mkmf,v 1.17 2001-12-19 18:34:11 ansari Exp $
     2# $Id: mkmf,v 1.18 2003-08-28 14:26:09 cmv Exp $
    33
    44#  Pour debugger
     
    9191
    9292echo 'cxxlibs: ' $modules_pres >>    GNUmakefile
    93 echo ' ' >> GNUmakefile
     93echo '' >> GNUmakefile
    9494echo 'cxxextlibs: ' $extmodules_pres >> GNUmakefile
    9595
     96# pour creer les repertoires et les liens
     97
     98echo '#--- Create directory and copy includes for install' >> GNUmakefile
     99echo 'depend:' >> GNUmakefile
     100echo 'ifdef DPCDEVREP' >> GNUmakefile
     101echo 'ifdef EROSCXX' >> GNUmakefile
     102echo '  @echo "Sophya will be installed under:"' >> GNUmakefile
     103echo '  @echo "  $(DPCDEVREP)/Include" ' >> GNUmakefile
     104echo '  @echo "  $(DPCDEVREP)/`uname`-$(EROSCXX)" ' >> GNUmakefile
     105echo '  if [ -d Mgr ] ; then cd Mgr; \' >> GNUmakefile
     106echo '  ./crerep_sophya $(DPCDEVREP) `uname`-$(EROSCXX); \' >> GNUmakefile
     107echo '  ./makefileuser.csh; \' >> GNUmakefile
     108echo '  ./mkmflien -copy ; \' >> GNUmakefile
     109echo '  fi' >> GNUmakefile
     110echo 'else' >> GNUmakefile
     111echo '  @echo "Variable EROSCXX must be define with setenv"' >> GNUmakefile
     112echo 'endif' >> GNUmakefile
     113echo 'else' >> GNUmakefile
     114echo '  @echo "Variable DPCDEVREP must be define with setenv"' >> GNUmakefile
     115echo 'endif' >> GNUmakefile
     116echo '#--------------------------------------------------------------------' >> GNUmakefile
     117echo '' >> GNUmakefile
    96118
    97119#  Attention, ne pas changer l'ordre de libnames dependances cxx  ?????
     
    111133  echo $f':' >> GNUmakefile
    112134  echo '        if [ -d '$f' ] ; then cd ' $f '; $(MAKE) ; fi' >> GNUmakefile
    113   echo ' ' >> GNUmakefile
     135  echo '' >> GNUmakefile
    114136  @ i++
    115137end
     
    149171
    150172echo '#  Shared library creation part of the Makefile'       >> GNUmakefile
    151 echo ' '                                 >> GNUmakefile
     173echo ''                                 >> GNUmakefile
    152174echo '#  List of libraries (.a)'         >> GNUmakefile
    153175echo 'PSLB = ' $module_libnames          >> GNUmakefile
    154176echo 'EXTPSLB = ' $extmodule_libnames    >> GNUmakefile
    155 echo 'PIPSLB =  $(LIB)libPI.a $(LIB)libPIext.a'   >> GNUmakefile
     177echo 'PIPSLB =  $(LIB)libPI.a $(LIB)libPIGcont.a $(LIB)libPIext.a'   >> GNUmakefile
    156178echo '#  List of external library references'       >> GNUmakefile
    157 echo 'EXTLIB  = -L$(EXTLIBPATH)' $extlib_list       >> GNUmakefile
    158 echo 'EXTSLB  = -L$(EXTSLBPATH)' $extslb_list       >> GNUmakefile
     179echo 'EXTLIBL  = -L$(EXTLIBPATH)' $extlib_list       >> GNUmakefile
     180echo 'EXTSLBL  = -L$(EXTSLBPATH)' $extslb_list       >> GNUmakefile
     181echo ''                                   >> GNUmakefile
     182echo '# defining the other external libraries needed on different systems'   >> GNUmakefile
     183echo ''                                   >> GNUmakefile
     184echo '# On Linux   lapack and blas and f2c/g2c ere needed'   >> GNUmakefile
     185echo 'ifeq ($(MACHEROS),Linux)'   >> GNUmakefile
     186echo '#EXTLIB = $(EXTLIBL) -llapack -lblas -lf2c'   >> GNUmakefile
     187echo '#EXTSLB = $(EXTSLBL) -llapack -lblas -lf2c'   >> GNUmakefile
     188echo 'EXTLIB = $(EXTLIBL) -llapack -lblas -lg2c'   >> GNUmakefile
     189echo 'EXTSLB = $(EXTSLBL) -llapack -lblas -lg2c'   >> GNUmakefile
     190echo 'endif'   >> GNUmakefile
     191echo '# On OSF1 libdxml contains Lapack, but the fortran support library is needed'   >> GNUmakefile
     192echo 'ifeq ($(MACHEROS),OSF1)'   >> GNUmakefile
     193echo 'EXTLIB = $(EXTLIBL) -ldxml -lfor'   >> GNUmakefile
     194echo 'EXTSLB = $(EXTSLBL) -ldxml -lfor'   >> GNUmakefile
     195echo 'endif'   >> GNUmakefile
     196echo ''                                   >> GNUmakefile
     197echo '# On IRIX , complib.sgimath contains Lapack'   >> GNUmakefile
     198echo 'ifeq ($(MACHEROS),IRIX64)'   >> GNUmakefile
     199echo 'EXTLIB = $(EXTLIBL) -lcomplib.sgimath '   >> GNUmakefile
     200echo 'EXTSLB = $(EXTSLBL) -lcomplib.sgimath '   >> GNUmakefile
     201echo 'endif'   >> GNUmakefile
     202echo ''                                   >> GNUmakefile
    159203echo 'XPILIBS = $(LIBXPIPATH) $(LIBXPILIST)'        >> GNUmakefile
    160204echo ''                                   >> GNUmakefile
     
    164208echo 'slbext : $(SLB)libextsophya.'$sosfx >> GNUmakefile
    165209echo 'slbpi : $(SLB)libPI.'$sosfx         >> GNUmakefile
    166 echo ' '                                  >> GNUmakefile
     210echo ''                                  >> GNUmakefile
    167211
    168212echo '# List of .o files for each module'  >> GNUmakefile
     
    173217end
    174218echo 'ALLOBJS =' $objalls                >> GNUmakefile
    175 echo ' '                                 >> GNUmakefile
     219echo ''                                 >> GNUmakefile
    176220
    177221echo '# List of .o files modules with reference to external libraries'  >> GNUmakefile
     
    182226end
    183227echo 'ALLEXTOBJS =' $objalls             >> GNUmakefile
    184 echo ' '                                 >> GNUmakefile
     228echo ''                                 >> GNUmakefile
    185229
    186230echo '# List of .o files for PI modules '  >> GNUmakefile
     
    191235end
    192236echo 'ALLPIOBJS =' $objalls              >> GNUmakefile
    193 echo ' '                                 >> GNUmakefile
     237echo ''                                 >> GNUmakefile
    194238
    195239echo '# Building Sophya shared library'  >> GNUmakefile
     
    200244echo '  $(FGSHLACXX) $(ALLOBJS)  $(FGSHLNCXX)\'                 >> GNUmakefile
    201245echo '  -L$(SLB) $(LIBLSHL)'                                    >> GNUmakefile
    202 echo ' '                                                        >> GNUmakefile
     246echo ''                                                        >> GNUmakefile
    203247
    204248echo '# Building ExtSophya shared library'  >> GNUmakefile
     
    209253echo '  $(FGSHLACXX) $(ALLEXTOBJS)  $(FGSHLNCXX)\'              >> GNUmakefile
    210254echo '  -L$(SLB) -lsophya $(EXTLIB) $(LIBLSHL)'                 >> GNUmakefile
    211 echo ' '                                                        >> GNUmakefile
     255echo ''                                                        >> GNUmakefile
    212256
    213257echo '# Building PI shared library'  >> GNUmakefile
     
    218262echo '  $(FGSHLACXX) $(ALLPIOBJS) $(FGSHLNCXX) \'               >> GNUmakefile
    219263echo '  -L$(SLB) -lsophya -lextsophya $(EXTLIB) $(XPILIBS) $(LIBLSHL)'      >> GNUmakefile
    220 echo ' '                                                        >> GNUmakefile
     264echo ''                                                        >> GNUmakefile
    221265
    222266
Note: See TracChangeset for help on using the changeset viewer.