Skip to content

Commit b6a978c

Browse files
committed
added compile support for ifx
1 parent aea147e commit b6a978c

File tree

2 files changed

+19
-30
lines changed

2 files changed

+19
-30
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,21 @@ ifeq ($(F90),ifort)
218218
FLIBS+=-limf -lintlc -liomp5 -lifport
219219
OMPFLAG=-qopenmp
220220
#EXTFFLAGS=-warn-no-unused-dummy-argument
221+
else ifeq ($(F90),ifx)
222+
LINK=$(CC)
223+
# FINCLUDES+=-I/opt/intel/include
224+
DEBUG_FFLAGS=-g -traceback -DDEBUG=1
225+
OPT_FFLAGS=-O3
226+
FFLAGS=-warn all -module ${moddir} -static-intel -mp1 -stand f08 -warn nounused $(DEFINES) $(FINCLUDES)
227+
ifeq ($(WITH_CHECKS),true)
228+
FFLAGS+=-check bounds -check noarg_temp_created
229+
endif
230+
FFLAGS+=-real-size 64
231+
FLIBS+=-L/opt/intel/lib
232+
FLIBS+=-lifcore -lsvml -lifport
233+
FLIBS+=-limf -lintlc -liomp5 -lifport
234+
OMPFLAG=-qopenmp
235+
#EXTFFLAGS=-warn-no-unused-dummy-argument
221236
else ifeq ($(F90),flang)
222237
# LINK=$(FC) -fno-fortran-main
223238
LINK=$(CC)

README.Macintosh

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,23 @@ Building n on macOS-X requires :
1010
MacPorts and Homebrew which seem to be amongst the most popular. If you don't
1111
already have a collection, look at :
1212

13-
MacPorts : https://www.macports.org
14-
or
1513
Homebrew : http://brew.sh/
1614

17-
Although I like MacPorts and it is the default we use, it does have some annoying problems.
18-
One that has caught me again is when XCode is upgraded to a new major release it breaks
19-
builds :
20-
ld: framework not found Cocoa
21-
Whatever Homebrew do seems to avoid this problem ....
22-
23-
3) If you want to use gfortran, make sure you have at least version 8.2. For MacPorts use :
24-
25-
sudo port install gcc9 +gfortran
26-
sudo port select gcc mp-gcc9
27-
28-
For homebrew
15+
3) If you want to use gfortran, make sure you have at least version 8.2.
2916

3017
brew install gcc
3118

32-
4) You will need netcdf - this is available from MacPorts :
33-
34-
sudo port install netcdf
35-
36-
Or you can use Homebrew :
19+
4) You will need netcdf - this is available from Homebrew :
3720

3821
brew install netcdf
3922

40-
5) To build the GUI you will need libgd - this is available through MacPorts
41-
42-
sudo port install gd2
43-
44-
or through Homebrew
23+
5) To build the GUI you will need libgd - this is available through Homebrew
4524

4625
brew install gd
4726

4827
6) To build a version including FABM you will need cmake, both brew and port seem to include it
4928
in their compiler bundles, but in case they don't :
5029

51-
sudo port install cmake
52-
53-
or
54-
5530
brew install cmake
5631

5732
Note:
@@ -65,8 +40,7 @@ Note:
6540

6641
Note:
6742
GLM source includes a script - "macpkg.sh" to include non-standard libraries
68-
into the glm.app binary. This script defaults to use for MacPorts at the moment. To change
69-
to homebrew edit the GLM_CONFIG file
43+
into the glm.app binary.
7044

7145
Note:
7246
GLM requires gfortran v8 or later in order to build correctly - previous versions of gfortran

0 commit comments

Comments
 (0)