forked from fastalgorithms/fmm3dbie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.inc.macos_arm64.gnu
44 lines (34 loc) · 941 Bytes
/
make.inc.macos_arm64.gnu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# makefile overrides
# OS: macOS
# Compiler: gfortran, clang
# OpenMP: enabled
# BLAS: framework acceralate
#
# NOTE for user:
# Check gfortran version number
#
CC=gcc
CXX=g++
FC=gfortran
FFLAGS= -fPIC -O3 -arch arm64 -std=legacy -w -mno-outline-atomics
CFLAGS= -fPIC -O3 -arch arm64 -std=c99
CXXFLAGS= -std=c++11 -DSCTL_PROFILE=-1 -fPIC -O3 -arch arm64
ifeq ($(PREFIX),)
FMMBIE_INSTALL_DIR=/usr/local/lib
endif
ifeq ($(PREFIX_FMM),)
FMM_INSTALL_DIR=/usr/local/lib
endif
# OpenMP with gcc on OSX needs the following
OMPFLAGS = -fopenmp
OMPLIBS = -lgomp
LBLAS=-framework accelerate
# Wl flags for loading objects from static library into dynamic library
WLDL = -Wl,-force_load
WLDLEND =
#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
#MWRAP location
MWRAP=~/git/mwrap/mwrap