forked from LSSTDESC/Angpow4CCL
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Darwin_g++_omp_make.inc
42 lines (34 loc) · 1.19 KB
/
Darwin_g++_omp_make.inc
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
# Flag preprocesseur
CPPFLAGS = -DDarwin
# Def compilateur C et flags
CC = gcc
# Replace [CNFPHFLF] by specific compilation flags below (done by configure)
CFLAGS = -fno-common -O -fPIC
# With optimization flags
# CFLAGS = -fno-common -g -fastf -mtune=G5 -fPIC
# Def compilateur C++ et flags
CXX = g++
#JEC add -fopenmp -O3 -Wa,-q
CXXFLAGS = -fno-common -O3 -fPIC -fopenmp -Wa,-q -Wall -Wpedantic -std=c++11 -march=native -ffast-math -m64
#CXXFLAGS = -fno-common -g -O3 -fPIC -Wa,-q -Wall -std=c++11
# flags specifiques pour templates repository...
CXXTEMPFLG =
# Compilo fortran
FC = gfortran
FFLAGS =
# Pour fabriquer les lib .a
AR = libtool
ARFLAGS = -static -o
# Ordres de compilation
CCOMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -c
CXXCOMPILE = $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c
FCCOMPILE = $(FC) $(FFLAGS) -c
# Extension de nom pour les librairies partagees
SLEXT = dylib
# Fabrication de librairies partagees
CMDSHLCXX = $(CXX) $(CXXFLAGS) $(CXXTEMPFLG) -dynamiclib
LIBFORT =
# Commande de link pour creation d'executables
CXXLINK = $(CXX) $(CXXFLAGS) -bind_at_load
# Commande de link pour creation de module pouvant etre charge dynamiquement
CXXDLL = $(CXX) $(CXXFLAGS) -bundle