-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.inc.example
71 lines (54 loc) · 1.74 KB
/
make.inc.example
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Common settings for all Makefiles
# Compiler
# GCC
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wconversion -Wcast-qual -O0 -ggdb -pipe
# CFLAGS = -std=c99 -pedantic -Wall -Wextra -march=native -O2 -pipe
# ICC
# CC = icc
# CFLAGS = -std=c99 -Wall -Wextra -xHost -O2 -openmp -pthread
# BLAS/CBLAS/LAPACK
# Reference
LAPACK_CPPFLAGS = -I/usr/include/cblas
LAPACK_LDFLAGS =
LAPACK_LDLIBS = -lreflapacke -lreflapack -lrefblas -lrefcblas
# MKL
# MKLROOT = /opt/intel/composerxe-2013.0.080/mkl
# LAPACK_CPPFLAGS = -DMKL -DMKL_LP64 -I$(MKLROOT)/include
# LAPACK_LDFLAGS = -L$(MKLROOT)/lib/intel64
# LAPACK_LDLIBS = -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core
# ATLAS
# LAPACK_CPPFLAGS = -I/usr/include/atlas
# LAPACK_LDFLAGS =
# LAPACK_LDLIBS = -lptlapack -lptf77blas -lptcblas
# MPI
# OpenMPI
MPI_CPPFLAGS =
MPI_LDFLAGS =
MPI_LDLIBS = -lmpi -ldl -lhwloc -Wl,--export-dynamic -lrt -lnsl -lutil -lm -lhwloc -ldl
# OPENMP
# GNU
OMP_CPPFLAGS =
OMP_LDFLAGS =
OMP_LDLIBS = -lgomp
# Intel
# OMP_CPPFLAGS =
# OMP_LDFLAGS =
# OMP_LDLIBS = -liomp5
# SUNDIALS
SUNDIALS_CPPFLAGS = -I$(HOME)/sundials-2.5.0/include
SUNDIALS_LDFLAGS = -L$(HOME)/sundials-2.5.0/lib
SUNDIALS_LDLIBS = -Wl,-rpath=$(HOME)/sundials-2.5.0/lib -lsundials_cvodes -lsundials_nvecserial
# MATLAB
MATLAB_ROOT = /opt/MATLAB/R2013a
MATLAB_CPPFLAGS = -I$(MATLAB_ROOT)/extern/include
MATLAB_LDFLAGS = -L$(MATLAB_ROOT)/bin/glnxa64 -Wl,-rpath-link,$(MATLAB_ROOT)/bin/glnxa64 -Wl,-rpath,$(MATLAB_ROOT)/sys/os/glnxa64
MATLAB_LDLIBS = -lmx -lmex -lmat -lm -lstdc++
# HDF5
HDF5_CPPFLAGS = -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE
HDF5_LDFLAGS =
HDF5_LDLIBS = -lhdf5_hl -lhdf5 -Wl,-O1 -Wl,--as-needed -lpthread -lz -lm
# CUNIT
CUNIT_CPPFLAGS =
CUNIT_LDFLAGS =
CUNIT_LDLIBS = -lcunit