Changeset 294 for modipsl/trunk


Ignore:
Timestamp:
03/31/08 11:59:44 (16 years ago)
Author:
bellier
Message:

JB:

  • updated ins_make to avoid conflicts with target names
  • enhanced the help of ins_make
  • updated AA_make.gdef
Location:
modipsl/trunk/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/AA_make.gdef

    r256 r294  
    22#- $Id$ 
    33#- 
    4 #-Q- Darwin   #- Global definitions for Mac OSX, g95 
     4#-Q- Darwin   #- Global definitions for Mac OSX, gfortran 
    55#-Q- Darwin   M_K = make 
    66#-Q- Darwin   P_C = cpp 
    77#-Q- Darwin   P_O = -fpreprocessed -P -C -traditional $(P_P) 
    8 #-Q- Darwin   F_C = g95 -c 
    9 #-Q- Darwin   #-D- MD    F_D = -g -Wall -fbounds-check 
     8#-Q- Darwin   F_C = gfortran -c 
     9#-Q- Darwin   #-D- MD    F_D = -g -Wall -fbounds-check -pedantic -finit-real=nan 
    1010#-Q- Darwin   #-D- MN    F_D = 
    11 #-Q- Darwin   #-P- I4R4  F_P = -i4 
    12 #-Q- Darwin   #-P- I4R8  F_P = -i4 -r8 
    13 #-Q- Darwin   #-P- I8R8  F_P = -i8 -r8 
     11#-Q- Darwin   #-P- I4R4  F_P = 
     12#-Q- Darwin   #-P- I4R8  F_P = -fdefault-real-8 
     13#-Q- Darwin   #-P- I8R8  F_P = -fdefault-integer-8 -fdefault-real-8 
    1414#-Q- Darwin   w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR) 
    15 #-Q- Darwin   F_O = $(w_w) -fmod=$(MODDIR) 
    16 #-Q- Darwin   F_L = g95 
     15#-Q- Darwin   F_O = $(w_w) -J$(MODDIR) 
     16#-Q- Darwin   F_L = gfortran 
    1717#-Q- Darwin   M_M = 0 
    1818#-Q- Darwin   L_X = 0 
     
    2727#-Q- Darwin   NCDF_LIB = -L/usr/install/lib -lnetcdf 
    2828#-Q- Darwin   #- 
     29#-Q- Darwin_g95  #- Global definitions for Mac OSX, g95 
     30#-Q- Darwin_g95  M_K = make 
     31#-Q- Darwin_g95  P_C = cpp 
     32#-Q- Darwin_g95  P_O = -fpreprocessed -P -C -traditional $(P_P) 
     33#-Q- Darwin_g95  F_C = g95 -c 
     34#-Q- Darwin_g95  #-D- MD    F_D = -g -Wall -fbounds-check 
     35#-Q- Darwin_g95  #-D- MN    F_D = 
     36#-Q- Darwin_g95  #-P- I4R4  F_P = -i4 
     37#-Q- Darwin_g95  #-P- I4R8  F_P = -i4 -r8 
     38#-Q- Darwin_g95  #-P- I8R8  F_P = -i8 -r8 
     39#-Q- Darwin_g95  w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR) 
     40#-Q- Darwin_g95  F_O = $(w_w) -fmod=$(MODDIR) 
     41#-Q- Darwin_g95  F_L = g95 
     42#-Q- Darwin_g95  M_M = 0 
     43#-Q- Darwin_g95  L_X = 0 
     44#-Q- Darwin_g95  L_O = 
     45#-Q- Darwin_g95  A_C = ar -rs 
     46#-Q- Darwin_g95  A_G = ar -x 
     47#-Q- Darwin_g95  C_C = cc -c 
     48#-Q- Darwin_g95  C_O = 
     49#-Q- Darwin_g95  C_L = cc 
     50#-Q- Darwin_g95  #- 
     51#-Q- Darwin_g95  NCDF_INC = /usr/install/include 
     52#-Q- Darwin_g95  NCDF_LIB = -L/usr/install/lib -lnetcdf 
     53#-Q- Darwin_g95  #- 
    2954#-Q- aix      #- Global definitions for IBM AIX (MPP) 
    3055#-Q- aix      M_K = gmake 
     
    77102#-Q- ax_mono  NCDF_LIB = -L/usr/local/pub/lib -lnetcdf 
    78103#-Q- ax_mono  #- 
    79 #-Q- cray     #- Global definitions for CRAY 
     104#-Q- cray     #- Obsolete definitions for CRAY 
    80105#-Q- cray     M_K = make 
    81106#-Q- cray     P_C = cpp 
     
    101126#-Q- cray     NCDF_LIB = -L/usr/local/pub/lib -lnetcdf 
    102127#-Q- cray     #- 
    103 #-Q- eshpux   #- Global definitions for eshpux used as Earth Simulator front-end(moon) 
     128#-Q- eshpux   #- Global definitions for hpux used as Earth Simulator front-end (moon) 
    104129#-Q- eshpux   LIB_MPI = MPI1 
    105130#-Q- eshpux   LIB_MPI_BIS = MPI1 
     
    137162#-Q- eshpux   NCDF_LIB = -L/S/home010/c0010/ES/lib -lnetcdf 
    138163#-Q- eshpux   #- 
    139 #-Q- fjvpp    #- Global definitions for FUJITSU VPP 
     164#-Q- fjvpp    #- Obsolete definitions for FUJITSU VPP 
    140165#-Q- fjvpp    M_K = gmake 
    141166#-Q- fjvpp    P_C = cpp 
     
    187212#-Q- g95      NCDF_LIB = -L/usr/local/lib -lnetcdf 
    188213#-Q- g95      #- 
    189 #-Q- idris_tx7 #- Global definitions for Brodie/tx7 Compiler gfortran 
     214#-Q- idris_tx7 #- Global definitions for NEC TX7 front-end (Brodie) at Idris, gfortran 
    190215#-Q- idris_tx7 M_K = gmake 
    191216#-Q- idris_tx7 P_C = cpp 
     
    211236#-Q- idris_tx7 NCDF_LIB = -L/TXlocal/pub/netcdf/netcdf-3.6.2/lib -lnetcdf 
    212237#-Q- idris_tx7 #- 
    213 #-Q- linux    #- Global definitions for LINUX 
     238#-Q- linux    #- Global definitions for Linux, pgf90 
    214239#-Q- linux    M_K = make 
    215240#-Q- linux    P_C = /lib/cpp 
     
    235260#-Q- linux    NCDF_LIB = -L/distrib/local/netcdf/pgf/lib/ -lnetcdf 
    236261#-Q- linux    #- 
    237 #-Q- lxiv7    #- Global definitions for Linux Compiler Intel V7 
     262#-Q- lxiv7    #- Global definitions for Linux, ifc 
    238263#-Q- lxiv7    M_K = gmake 
    239264#-Q- lxiv7    P_C = cpp 
     
    259284#-Q- lxiv7    NCDF_LIB = -L/usr/local/lib -lnetcdf 
    260285#-Q- lxiv7    #- 
    261 #-Q- lxiv8    #- Global definitions for Linux Compiler Intel v8 
     286#-Q- lxiv8    #- Global definitions for Intel compiler (ifort) at LSCE 
    262287#-Q- lxiv8    M_K = gmake 
    263288#-Q- lxiv8    P_C = cpp 
     
    283308#-Q- lxiv8    NCDF_LIB = -L/usr/local/lib -lnetcdf 
    284309#-Q- lxiv8    #- 
    285 #-Q- osf1     #- Global definitions for DEC OSF1 
     310#-Q- osf1     #- Obsolete definitions for DEC OSF1 
    286311#-Q- osf1     M_K = gmake 
    287312#-Q- osf1     P_C = cpp 
     
    332357#-Q- osxxlf   NCDF_LIB = -L/usr/local/install/netcdf-3.6.0-p1/lib -lnetcdf 
    333358#-Q- osxxlf   #- 
    334 #-Q- platine   #- Global definitions for Linux Compiler Intel v9.1 
    335 #-Q- platine   LIB_MPI = MPI1 
    336 #-Q- platine   LIB_MPI_BIS = MPI1 
    337 #-Q- platine   PRISM_ARCH = IA64 
    338 #-Q- platine   PRISM_NAME = platine 
    339 #-Q- platine   FCM_ARCH = IA64_PLATINE 
    340 #-Q- platine   M_K = gmake 
    341 #-Q- platine   P_C = cpp 
    342 #-Q- platine   P_O = -P -C $(P_P) 
    343 #-Q- platine   F_C = mpif90 -c -cpp 
    344 #-Q- platine   #-D- MD    F_D = -g 
    345 #-Q- platine   #-D- MN    F_D = 
    346 #-Q- platine   #-P- I4R4  F_P = -i4 
    347 #-Q- platine   #-P- I4R8  F_P = -i4 -r8 
    348 #-Q- platine   #-P- I8R8  F_P = -i8 -r8 
    349 #-Q- platine   F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
    350 #-Q- platine   F_L = mpif90 
    351 #-Q- platine   M_M = 0 
    352 #-Q- platine   L_X = 0 
    353 #-Q- platine   L_O = 
    354 #-Q- platine   A_C = ar -r 
    355 #-Q- platine   A_G = ar -x 
    356 #-Q- platine   C_C = cc -c 
    357 #-Q- platine   C_O = 
    358 #-Q- platine   C_L = cc 
    359 #-Q- platine   #- 
    360 #-Q- platine   NCDF_INC = /usr/include 
    361 #-Q- platine   NCDF_LIB = -L/usr/lib -lnetcdff -lnetcdf 
    362 #-Q- platine   #- 
     359#-Q- platine  #- Global definitions for Bull (opteron) at CCRT 
     360#-Q- platine  LIB_MPI = MPI1 
     361#-Q- platine  LIB_MPI_BIS = MPI1 
     362#-Q- platine  PRISM_ARCH = IA64 
     363#-Q- platine  PRISM_NAME = platine 
     364#-Q- platine  FCM_ARCH = IA64_PLATINE 
     365#-Q- platine  M_K = gmake 
     366#-Q- platine  P_C = cpp 
     367#-Q- platine  P_O = -P -C $(P_P) 
     368#-Q- platine  F_C = mpif90 -c -cpp 
     369#-Q- platine  #-D- MD    F_D = -g 
     370#-Q- platine  #-D- MN    F_D = 
     371#-Q- platine  #-P- I4R4  F_P = -i4 
     372#-Q- platine  #-P- I4R8  F_P = -i4 -r8 
     373#-Q- platine  #-P- I8R8  F_P = -i8 -r8 
     374#-Q- platine  F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
     375#-Q- platine  F_L = mpif90 
     376#-Q- platine  M_M = 0 
     377#-Q- platine  L_X = 0 
     378#-Q- platine  L_O = 
     379#-Q- platine  A_C = ar -r 
     380#-Q- platine  A_G = ar -x 
     381#-Q- platine  C_C = cc -c 
     382#-Q- platine  C_O = 
     383#-Q- platine  C_L = cc 
     384#-Q- platine  #- 
     385#-Q- platine  NCDF_INC = /usr/include 
     386#-Q- platine  NCDF_LIB = -L/usr/lib -lnetcdff -lnetcdf 
     387#-Q- platine  #- 
    363388#-Q- sgi6     #- Global definitions for IRIX64 (sgi6) 
    364389#-Q- sgi6     M_K = gmake 
     
    409434#-Q- solaris  NCDF_LIB = -L/distrib/local/lib -lnetcdf 
    410435#-Q- solaris  #- 
    411 #-Q- sx6nec   #- Global definitions for sx6nec (sx8mercure) 
    412 #-Q- sx6nec   #- compilation on mercure for NEC SX-8 
     436#-Q- sx6nec   #- Global definitions for NEC SX8 at CCRT (alias) 
    413437#-Q- sx6nec   LIB_MPI = MPI1 
    414438#-Q- sx6nec   LIB_MPI_BIS = MPI1 
     
    443467#-Q- sx6nec   NCDF_LIB = -L/usr/local/SX8/soft/netcdf/lib -lnetcdf 
    444468#-Q- sx6nec   #- 
    445 #-Q- sx8brodie   #- Global definitions for sx8brodie 
    446 #-Q- sx8brodie   #- compilation on brodie for NEC SX-8 
     469#-Q- sx8brodie   #- Global definitions for NEC SX8 at Idris 
    447470#-Q- sx8brodie   LIB_MPI = MPI1 
    448471#-Q- sx8brodie   LIB_MPI_BIS = MPI1 
     
    477500#-Q- sx8brodie   NCDF_LIB = -L/SXlocal/pub/netCDF/netCDF-3.6.1/lib -lnetcdf 
    478501#-Q- sx8brodie   #- 
    479 #-Q- sx8mercure   #- Global definitions for sx8mercure 
    480 #-Q- sx8mercure   #- compilation on mercure for NEC SX-8 
     502#-Q- sx8mercure   #- Global definitions for NEC SX8 at CCRT 
    481503#-Q- sx8mercure   LIB_MPI = MPI1 
    482504#-Q- sx8mercure   LIB_MPI_BIS = MPI1 
     
    511533#-Q- sx8mercure   NCDF_LIB = -L/usr/local/SX8/soft/netcdf/lib -lnetcdf 
    512534#-Q- sx8mercure   #- 
    513 #-Q- sxdkrz   #- Global definitions for sxdkrz 
    514 #-Q- sxdkrz   #- compilation on DKRZ for NEC SX-6 
     535#-Q- sxdkrz   #- Global definitions for NEC SX8 at DKRZ 
    515536#-Q- sxdkrz   LIB_MPI = MPI1 
    516537#-Q- sxdkrz   LIB_MPI_BIS = MPI1 
     
    544565#-Q- sxdkrz   NCDF_LIB = -L/pool/SX-6/netcdf/netcdf-3.5.0/lib -lnetcdf_A_idbl4 
    545566#-Q- sxdkrz   #- 
    546 #-Q- t3e      #- Global definitions for T3E 
     567#-Q- t3e      #- Obsolete definitions for T3E 
    547568#-Q- t3e      M_K = gmake 
    548569#-Q- t3e      P_C = cpp 
     
    569590#-Q- t3e      NCDF_LIB = -L/usr/local/pub/lib -lnetcdf 
    570591#-Q- t3e      #- 
    571 #-Q- tx7      #- Global definitions for Linux Compiler Intel efc 
    572 #-Q- tx7      M_K = gmake 
    573 #-Q- tx7      P_C = cpp 
    574 #-Q- tx7      P_O = -P -C $(P_P) 
    575 #-Q- tx7      F_C = efc -c 
    576 #-Q- tx7      #-D- MD    F_D = -g 
    577 #-Q- tx7      #-D- MN    F_D = 
    578 #-Q- tx7      #-P- I4R4  F_P = -i4 
    579 #-Q- tx7      #-P- I4R8  F_P = -i4 -r8 
    580 #-Q- tx7      #-P- I8R8  F_P = -i8 -r8 
    581 #-Q- tx7      F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
    582 #-Q- tx7      F_L = efc 
    583 #-Q- tx7      M_M = 0 
    584 #-Q- tx7      L_X = 0 
    585 #-Q- tx7      L_O = -Vaxlib 
    586 #-Q- tx7      A_C = ar -r 
    587 #-Q- tx7      A_G = ar -x 
    588 #-Q- tx7      C_C = cc -c 
    589 #-Q- tx7      C_O = 
    590 #-Q- tx7      C_L = cc 
    591 #-Q- tx7      #- 
    592 #-Q- tx7      NCDF_INC = /usr/local/include 
    593 #-Q- tx7      NCDF_LIB = -L/usr/local/lib -lnetcdf 
    594 #-Q- tx7      #- 
    595 #-Q- unix     #- Global definitions for UNIX 
    596 #-Q- unix     M_K = make 
    597 #-Q- unix     P_C = cpp 
    598 #-Q- unix     P_O = -P -C $(P_P) 
    599 #-Q- unix     F_C = f90 -c 
    600 #-Q- unix     #-D- MD    F_D = 
    601 #-Q- unix     #-D- MN    F_D = 
    602 #-Q- unix     #-P- I4R4  F_P = 
    603 #-Q- unix     #-P- I4R8  F_P = 
    604 #-Q- unix     #-P- I8R8  F_P = 
    605 #-Q- unix     F_O = $(F_D) $(F_P) -M$(MODDIR) -fast 
    606 #-Q- unix     F_L = f90 
    607 #-Q- unix     M_M = 0 
    608 #-Q- unix     L_X = 0 
    609 #-Q- unix     L_O = 
    610 #-Q- unix     A_C = ar -r 
    611 #-Q- unix     A_G = ar -x 
    612 #-Q- unix     C_C = cc -c 
    613 #-Q- unix     C_O = 
    614 #-Q- unix     C_L = cc 
    615 #-Q- unix     #- 
    616 #-Q- unix     NCDF_INC = /distrib/local/include 
    617 #-Q- unix     NCDF_LIB = -L/distrib/local/lib -lnetcdf 
    618 #-Q- unix     #- 
     592#-Q- tx7  #- Global definitions for NEC TX7 front-end (Mercure) at CCRT, efc 
     593#-Q- tx7  M_K = gmake 
     594#-Q- tx7  P_C = cpp 
     595#-Q- tx7  P_O = -P -C $(P_P) 
     596#-Q- tx7  F_C = efc -c 
     597#-Q- tx7  #-D- MD    F_D = -g 
     598#-Q- tx7  #-D- MN    F_D = 
     599#-Q- tx7  #-P- I4R4  F_P = -i4 
     600#-Q- tx7  #-P- I4R8  F_P = -i4 -r8 
     601#-Q- tx7  #-P- I8R8  F_P = -i8 -r8 
     602#-Q- tx7  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) 
     603#-Q- tx7  F_L = efc 
     604#-Q- tx7  M_M = 0 
     605#-Q- tx7  L_X = 0 
     606#-Q- tx7  L_O = -Vaxlib 
     607#-Q- tx7  A_C = ar -r 
     608#-Q- tx7  A_G = ar -x 
     609#-Q- tx7  C_C = cc -c 
     610#-Q- tx7  C_O = 
     611#-Q- tx7  C_L = cc 
     612#-Q- tx7  #- 
     613#-Q- tx7  NCDF_INC = /usr/local/include 
     614#-Q- tx7  NCDF_LIB = -L/usr/local/lib -lnetcdf 
     615#-Q- tx7  #- 
     616#-Q- unix   #- Skeleton definitions for UNIX 
     617#-Q- unix   M_K = make 
     618#-Q- unix   P_C = cpp 
     619#-Q- unix   P_O = -P -C $(P_P) 
     620#-Q- unix   F_C = f90 -c 
     621#-Q- unix   #-D- MD    F_D = 
     622#-Q- unix   #-D- MN    F_D = 
     623#-Q- unix   #-P- I4R4  F_P = 
     624#-Q- unix   #-P- I4R8  F_P = 
     625#-Q- unix   #-P- I8R8  F_P = 
     626#-Q- unix   F_O = $(F_D) $(F_P) -M$(MODDIR) 
     627#-Q- unix   F_L = f90 
     628#-Q- unix   M_M = 0 
     629#-Q- unix   L_X = 0 
     630#-Q- unix   L_O = 
     631#-Q- unix   A_C = ar -r 
     632#-Q- unix   A_G = ar -x 
     633#-Q- unix   C_C = cc -c 
     634#-Q- unix   C_O = 
     635#-Q- unix   C_L = cc 
     636#-Q- unix   #- 
     637#-Q- unix   NCDF_INC = /distrib/local/include 
     638#-Q- unix   NCDF_LIB = -L/distrib/local/lib -lnetcdf 
     639#-Q- unix   #- 
    619640RM      = rm -f 
    620641STRIP   = strip 
  • modipsl/trunk/util/ins_make

    r293 r294  
    66function ins_make_Usage 
    77{ 
    8 echo " 
     8typeset -L13 h_n; typeset v0 v1 v2 v3 v4 v5 v6 v7; 
     9print - " 
    910ins_make install the Makefile in the directories 
    1011 
     
    2627  ins_make -t sx8brodie 
    2728" 
     29print - "Supported targets :\n" 
     30[[ ! -f "${MKTG}" ]] && { print - "? (${MKTG} unreachable)\n"; exit 3; } 
     31while read v1 v2 v3 v4 v5 v6 v7 
     32  do 
     33    [[ -n "${v1}" && "${v1}${v3}" = '#-Q-#-'                       && \ 
     34       -n "${v4}" && "${v4}${v5}${v6}" = 'Globaldefinitionsfor' ]] && \ 
     35     { h_n=${v2}; print - "${h_n} : ${v7}"; } 
     36  done <${MKTG} 
     37print - " 
     38Fot other targets, look in ${MKTG}. 
     39" 
    2840} 
    2941#-    dirname     and      basename 
    3042d_n=$(dirname ${0}); b_n=$(basename ${0}); 
     43#- File containing global definitions 
     44MKTG=${d_n}'/AA_make.gdef' 
    3145#- Retrieving and validation of the options 
    3246x_v='silencious'; x_d='normal'; x_p="??"; x_t="??"; x_m='??'; 
     
    7084      { echo "Local_Host not supported" 1>&2; exit 1; }; } 
    7185#- 
    72 MKTG=${d_n}'/AA_make.gdef' 
    7386[[ ! -f "${MKTG}" ]] && { echo "${MKTG} unreachable ..."; exit 3; } 
    7487#- 
    75 W_XX=$(sed -n -e "s/^#-Q-  *\(${x_t}\) .*$/\1/p" ${MKTG} | sort -u); 
     88W_XX=$(sed -n -e "s/^#-Q-  *\(${x_t}\)[\t ].*$/\1/p" ${MKTG} | sort -u); 
    7689[[ '\?'"${W_XX}" != '\?'"${x_t}" ]] && \ 
    7790  { echo "Target_Host  "${x_t}"  not supported" 1>&2; exit 1; } 
     
    101114  MKTR="${j}"'/AA_make'; 
    102115  cat ${MKTL} ${MKTG} ${MKTR} > mk1.$$; 
    103   W_PR='#-Q- '; W_XX=${W_PR}${x_t}; 
    104   sed -e "/^${W_XX} */ s///" -e "/^${W_PR}/d" mk1.$$ > mk2.$$; 
     116  W_PR='#-Q-  *'; W_XX=${W_PR}${x_t}; 
     117  sed -e "/^${W_XX}[\t ]/ s/^${W_XX} *//" -e "/^${W_PR}/d" mk1.$$ > mk2.$$; 
    105118#- 
    106119# Default INTEGER and REAL precision 
Note: See TracChangeset for help on using the changeset viewer.