Changeset 294
- Timestamp:
- 03/31/08 11:59:44 (17 years ago)
- Location:
- modipsl/trunk/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modipsl/trunk/util/AA_make.gdef
r256 r294 2 2 #- $Id$ 3 3 #- 4 #-Q- Darwin #- Global definitions for Mac OSX, g 954 #-Q- Darwin #- Global definitions for Mac OSX, gfortran 5 5 #-Q- Darwin M_K = make 6 6 #-Q- Darwin P_C = cpp 7 7 #-Q- Darwin P_O = -fpreprocessed -P -C -traditional $(P_P) 8 #-Q- Darwin F_C = g 95-c9 #-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 10 10 #-Q- Darwin #-D- MN F_D = 11 #-Q- Darwin #-P- I4R4 F_P = -i412 #-Q- Darwin #-P- I4R8 F_P = - i4 -r813 #-Q- Darwin #-P- I8R8 F_P = - i8 -r811 #-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 14 14 #-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 = g 9515 #-Q- Darwin F_O = $(w_w) -J$(MODDIR) 16 #-Q- Darwin F_L = gfortran 17 17 #-Q- Darwin M_M = 0 18 18 #-Q- Darwin L_X = 0 … … 27 27 #-Q- Darwin NCDF_LIB = -L/usr/install/lib -lnetcdf 28 28 #-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 #- 29 54 #-Q- aix #- Global definitions for IBM AIX (MPP) 30 55 #-Q- aix M_K = gmake … … 77 102 #-Q- ax_mono NCDF_LIB = -L/usr/local/pub/lib -lnetcdf 78 103 #-Q- ax_mono #- 79 #-Q- cray #- Globaldefinitions for CRAY104 #-Q- cray #- Obsolete definitions for CRAY 80 105 #-Q- cray M_K = make 81 106 #-Q- cray P_C = cpp … … 101 126 #-Q- cray NCDF_LIB = -L/usr/local/pub/lib -lnetcdf 102 127 #-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) 104 129 #-Q- eshpux LIB_MPI = MPI1 105 130 #-Q- eshpux LIB_MPI_BIS = MPI1 … … 137 162 #-Q- eshpux NCDF_LIB = -L/S/home010/c0010/ES/lib -lnetcdf 138 163 #-Q- eshpux #- 139 #-Q- fjvpp #- Globaldefinitions for FUJITSU VPP164 #-Q- fjvpp #- Obsolete definitions for FUJITSU VPP 140 165 #-Q- fjvpp M_K = gmake 141 166 #-Q- fjvpp P_C = cpp … … 187 212 #-Q- g95 NCDF_LIB = -L/usr/local/lib -lnetcdf 188 213 #-Q- g95 #- 189 #-Q- idris_tx7 #- Global definitions for Brodie/tx7 Compilergfortran214 #-Q- idris_tx7 #- Global definitions for NEC TX7 front-end (Brodie) at Idris, gfortran 190 215 #-Q- idris_tx7 M_K = gmake 191 216 #-Q- idris_tx7 P_C = cpp … … 211 236 #-Q- idris_tx7 NCDF_LIB = -L/TXlocal/pub/netcdf/netcdf-3.6.2/lib -lnetcdf 212 237 #-Q- idris_tx7 #- 213 #-Q- linux #- Global definitions for L INUX238 #-Q- linux #- Global definitions for Linux, pgf90 214 239 #-Q- linux M_K = make 215 240 #-Q- linux P_C = /lib/cpp … … 235 260 #-Q- linux NCDF_LIB = -L/distrib/local/netcdf/pgf/lib/ -lnetcdf 236 261 #-Q- linux #- 237 #-Q- lxiv7 #- Global definitions for Linux Compiler Intel V7262 #-Q- lxiv7 #- Global definitions for Linux, ifc 238 263 #-Q- lxiv7 M_K = gmake 239 264 #-Q- lxiv7 P_C = cpp … … 259 284 #-Q- lxiv7 NCDF_LIB = -L/usr/local/lib -lnetcdf 260 285 #-Q- lxiv7 #- 261 #-Q- lxiv8 #- Global definitions for Linux Compiler Intel v8286 #-Q- lxiv8 #- Global definitions for Intel compiler (ifort) at LSCE 262 287 #-Q- lxiv8 M_K = gmake 263 288 #-Q- lxiv8 P_C = cpp … … 283 308 #-Q- lxiv8 NCDF_LIB = -L/usr/local/lib -lnetcdf 284 309 #-Q- lxiv8 #- 285 #-Q- osf1 #- Globaldefinitions for DEC OSF1310 #-Q- osf1 #- Obsolete definitions for DEC OSF1 286 311 #-Q- osf1 M_K = gmake 287 312 #-Q- osf1 P_C = cpp … … 332 357 #-Q- osxxlf NCDF_LIB = -L/usr/local/install/netcdf-3.6.0-p1/lib -lnetcdf 333 358 #-Q- osxxlf #- 334 #-Q- platine #- Global definitions for Linux Compiler Intel v9.1335 #-Q- platine 336 #-Q- platine 337 #-Q- platine 338 #-Q- platine 339 #-Q- platine 340 #-Q- platine 341 #-Q- platine 342 #-Q- platine 343 #-Q- platine 344 #-Q- platine 345 #-Q- platine 346 #-Q- platine 347 #-Q- platine 348 #-Q- platine 349 #-Q- platine 350 #-Q- platine 351 #-Q- platine 352 #-Q- platine 353 #-Q- platine 354 #-Q- platine 355 #-Q- platine 356 #-Q- platine 357 #-Q- platine 358 #-Q- platine 359 #-Q- platine 360 #-Q- platine 361 #-Q- platine 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 #- 363 388 #-Q- sgi6 #- Global definitions for IRIX64 (sgi6) 364 389 #-Q- sgi6 M_K = gmake … … 409 434 #-Q- solaris NCDF_LIB = -L/distrib/local/lib -lnetcdf 410 435 #-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) 413 437 #-Q- sx6nec LIB_MPI = MPI1 414 438 #-Q- sx6nec LIB_MPI_BIS = MPI1 … … 443 467 #-Q- sx6nec NCDF_LIB = -L/usr/local/SX8/soft/netcdf/lib -lnetcdf 444 468 #-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 447 470 #-Q- sx8brodie LIB_MPI = MPI1 448 471 #-Q- sx8brodie LIB_MPI_BIS = MPI1 … … 477 500 #-Q- sx8brodie NCDF_LIB = -L/SXlocal/pub/netCDF/netCDF-3.6.1/lib -lnetcdf 478 501 #-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 481 503 #-Q- sx8mercure LIB_MPI = MPI1 482 504 #-Q- sx8mercure LIB_MPI_BIS = MPI1 … … 511 533 #-Q- sx8mercure NCDF_LIB = -L/usr/local/SX8/soft/netcdf/lib -lnetcdf 512 534 #-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 515 536 #-Q- sxdkrz LIB_MPI = MPI1 516 537 #-Q- sxdkrz LIB_MPI_BIS = MPI1 … … 544 565 #-Q- sxdkrz NCDF_LIB = -L/pool/SX-6/netcdf/netcdf-3.5.0/lib -lnetcdf_A_idbl4 545 566 #-Q- sxdkrz #- 546 #-Q- t3e #- Globaldefinitions for T3E567 #-Q- t3e #- Obsolete definitions for T3E 547 568 #-Q- t3e M_K = gmake 548 569 #-Q- t3e P_C = cpp … … 569 590 #-Q- t3e NCDF_LIB = -L/usr/local/pub/lib -lnetcdf 570 591 #-Q- t3e #- 571 #-Q- tx7 #- Global definitions for Linux Compiler Intelefc572 #-Q- tx7 573 #-Q- tx7 574 #-Q- tx7 575 #-Q- tx7 576 #-Q- tx7 577 #-Q- tx7 578 #-Q- tx7 579 #-Q- tx7 580 #-Q- tx7 581 #-Q- tx7 582 #-Q- tx7 583 #-Q- tx7 584 #-Q- tx7 585 #-Q- tx7 586 #-Q- tx7 587 #-Q- tx7 588 #-Q- tx7 589 #-Q- tx7 590 #-Q- tx7 591 #-Q- tx7 592 #-Q- tx7 593 #-Q- tx7 594 #-Q- tx7 595 #-Q- unix #- Globaldefinitions for UNIX596 #-Q- unix 597 #-Q- unix 598 #-Q- unix 599 #-Q- unix 600 #-Q- unix 601 #-Q- unix 602 #-Q- unix 603 #-Q- unix 604 #-Q- unix 605 #-Q- unix F_O = $(F_D) $(F_P) -M$(MODDIR) -fast606 #-Q- unix 607 #-Q- unix 608 #-Q- unix 609 #-Q- unix 610 #-Q- unix 611 #-Q- unix 612 #-Q- unix 613 #-Q- unix 614 #-Q- unix 615 #-Q- unix 616 #-Q- unix 617 #-Q- unix 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 #- 619 640 RM = rm -f 620 641 STRIP = strip -
modipsl/trunk/util/ins_make
r293 r294 6 6 function ins_make_Usage 7 7 { 8 echo " 8 typeset -L13 h_n; typeset v0 v1 v2 v3 v4 v5 v6 v7; 9 print - " 9 10 ins_make install the Makefile in the directories 10 11 … … 26 27 ins_make -t sx8brodie 27 28 " 29 print - "Supported targets :\n" 30 [[ ! -f "${MKTG}" ]] && { print - "? (${MKTG} unreachable)\n"; exit 3; } 31 while 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} 37 print - " 38 Fot other targets, look in ${MKTG}. 39 " 28 40 } 29 41 #- dirname and basename 30 42 d_n=$(dirname ${0}); b_n=$(basename ${0}); 43 #- File containing global definitions 44 MKTG=${d_n}'/AA_make.gdef' 31 45 #- Retrieving and validation of the options 32 46 x_v='silencious'; x_d='normal'; x_p="??"; x_t="??"; x_m='??'; … … 70 84 { echo "Local_Host not supported" 1>&2; exit 1; }; } 71 85 #- 72 MKTG=${d_n}'/AA_make.gdef'73 86 [[ ! -f "${MKTG}" ]] && { echo "${MKTG} unreachable ..."; exit 3; } 74 87 #- 75 W_XX=$(sed -n -e "s/^#-Q- *\(${x_t}\) 88 W_XX=$(sed -n -e "s/^#-Q- *\(${x_t}\)[\t ].*$/\1/p" ${MKTG} | sort -u); 76 89 [[ '\?'"${W_XX}" != '\?'"${x_t}" ]] && \ 77 90 { echo "Target_Host "${x_t}" not supported" 1>&2; exit 1; } … … 101 114 MKTR="${j}"'/AA_make'; 102 115 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.$$; 105 118 #- 106 119 # Default INTEGER and REAL precision
Note: See TracChangeset
for help on using the changeset viewer.