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