forked from mjlaine/mcmcf90
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaci.mk
39 lines (37 loc) · 806 Bytes
/
maci.mk
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
# $Id: maci.mk,v 1.7 2009/09/21 12:59:29 mjlaine Exp $
#
# defines for Intel Mac
#
CC=gcc
F90=gfortran
F77=gfortran
AR=ar
RANLIB=ranlib
RM=rm -f
MV=mv -f
ZIP=zip
MEXEND=mexmac
MEX=mex
ARFLAGS=
O=o
ifeq ($(debug),yes)
CCFLAGS=-g
else
CCFLAGS=-O2
endif
ifeq ($(matlab_mat),yes)
CCFLAGS += -I/Applications/MATLAB73/extern/include
endif
ifeq ($(f90compiler),gfortran)
F90=gfortran
F77=gfortran
F90FLAGS=-DGFORTRAN -frecord-marker=4 -fconvert=little-endian -fpic
F77FLAGS=-DGFORTRAN -frecord-marker=4 -fconvert=little-endian -fpic
ifeq ($(debug),yes)
F90FLAGS += -g -Wall -Wconversion -fbounds-check -Wno-unused-parameter
F77FLAGS += -g -Wall -Wconversion -fbounds-check -Wno-unused-parameter
else
F90FLAGS += -O3 -ftree-vectorize -mtune=native
F77FLAGS += -O3 -ftree-vectorize -mtune=native
endif
endif