Skip to content

Commit

Permalink
beta test for macos_arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mrachh committed Mar 8, 2024
1 parent 702c99c commit 140bf3b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions make.inc.macos_arm64.gnu
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# makefile overrides
# OS: macOS
# Compiler: gfortran X.X/Clang
# OpenMP: enabled
#

CC=gcc
CXX=g++
FC=gfortran

FFLAGS= -fPIC -O3 -arch arm64 -std=legacy -w -mno-outline-atomics
FFLAGS_DYN= -shared -fPIC
CFLAGS= -fPIC -O3 -arch arm64 -std=c99
CXXFLAGS= -std=c++11 -DSCTL_PROFILE=-1 -fPIC -O3 -arch arm64


ifeq ($(PREFIX),)
FMM_INSTALL_DIR=/usr/local/lib
endif


CFLAGS += -I src

# OpenMP with gcc on OSX needs the following
OMPFLAGS = -fopenmp
OMPLIBS = -lgomp

# MATLAB interface:
FDIR=$$(dirname `gfortran --print-file-name libgfortran.dylib`)
MFLAGS +=-L${FDIR}
MEX = $(shell ls -d /Applications/MATLAB_R* | sort | tail -1)/bin/mex


0 comments on commit 140bf3b

Please sign in to comment.