source:
utils/build/arch/arch-osx_gfortran.fcm
@
13881
Last change on this file since 13881 was 13117, checked in by smasson, 4 years ago | |
---|---|
|
|
File size: 1.9 KB |
Rev | Line | |
---|---|---|
[3922] | 1 | # generic gfortran compiler options for OSX installed with macport, http://www.macports.org/ |
[3303] | 2 | # |
[12652] | 3 | # Prerequisite softwares installed with MacPorts : |
[13117] | 4 | # sudo port install gcc9 |
5 | # sudo port install gcc_select | |
6 | # sudo port select --set gcc mp-gcc9 | |
7 | # sudo port install mpich-gcc9 | |
8 | # sudo port install mpi_select | |
9 | # sudo port select --set mpi mpich-gcc9-fortran | |
10 | # sudo port install hdf5 +gcc9 +mpich +szip | |
11 | # sudo port install netcdf +gcc9 +mpich | |
12 | # sudo port install netcdf-fortran +gcc9 +mpich | |
13 | # sudo port install p5.30-uri | |
[3303] | 14 | # |
[12652] | 15 | # $ port select --show mpi |
[13117] | 16 | # The currently selected version for 'mpi' is 'mpich-gcc9-fortran'. |
17 | # $ port select --show gcc | |
18 | # The currently selected version for 'gcc' is 'mp-gcc9'. | |
[3922] | 19 | # |
20 | # Note that: | |
21 | # - unix variables "$..." are accpeted and will be evaluated before calling fcm. | |
22 | # - fcm variables are starting with a % (and not a $) | |
23 | # | |
24 | %NCDF_HOME /opt/local | |
25 | %HDF5_HOME /opt/local | |
[9852] | 26 | %XIOS_HOME /Users/$( whoami )/xios-2.5 |
[3922] | 27 | %OASIS_HOME /not/defined |
[3303] | 28 | |
[3922] | 29 | %NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include |
30 | %NCDF_LIB -L%NCDF_HOME/lib -lnetcdff -lnetcdf | |
31 | %XIOS_INC -I%XIOS_HOME/inc | |
[9852] | 32 | %XIOS_LIB -L%XIOS_HOME/lib -lxios -lstdc++ |
[3922] | 33 | %OASIS_INC -I%OASIS_HOME/build/lib/mct -I%OASIS_HOME/build/lib/psmile.MPI1 |
34 | %OASIS_LIB -L%OASIS_HOME/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip | |
[3303] | 35 | |
[12652] | 36 | %CPP cpp -Dkey_nosignedzero |
[3303] | 37 | %FC mpif90 |
[6387] | 38 | %FCFLAGS -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer -ffree-line-length-none |
[3303] | 39 | %FFLAGS %FCFLAGS |
40 | %LD %FC | |
[9852] | 41 | %LDFLAGS |
[3303] | 42 | %FPPFLAGS -P -C -traditional |
[3904] | 43 | %AR ar |
44 | %ARFLAGS rs | |
[3303] | 45 | %MK make |
[3922] | 46 | %USER_INC %XIOS_INC %OASIS_INC %NCDF_INC |
47 | %USER_LIB %XIOS_LIB %OASIS_LIB %NCDF_LIB | |
[5656] | 48 | |
49 | %CC cc | |
50 | %CFLAGS -O0 |
Note: See TracBrowser
for help on using the repository browser.