-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.inc.ucl
56 lines (42 loc) · 1.35 KB
/
make.inc.ucl
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
# Common settings for all Makefiles
# Compiler
# GCC
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -Wextra -march=opteron -O2 -pipe -fopenmp -pthread
# BLAS/CBLAS/LAPACK
# Reference
LAPACK_CPPFLAGS = -I$(HOME)/include
LAPACK_LDFLAGS = -L$(HOME)/lib64
LAPACK_LDLIBS = -llapacke -llapack -lcblas -lblas -lm
# ATLAS
# LAPACK_CPPFLAGS = -I/usr/include/atlas
# LAPACK_LDFLAGS =
# LAPACK_LDLIBS = -lptlapack -lptf77blas -lptcblas
# MPI
# OpenMPI
MPI_CPPFLAGS = -I/share/apps/openmpi-1.6.5/include
MPI_LDFLAGS = -L/share/apps/openmpi-1.6.5/lib
MPI_LDLIBS = -lmpi
# OPENMP
# GNU
OMP_CPPFLAGS =
OMP_LDFLAGS =
OMP_LDLIBS = -lgomp
# SUNDIALS
SUNDIALS_CPPFLAGS = -I$(HOME)/include
SUNDIALS_LDFLAGS = -L$(HOME)/lib64
SUNDIALS_LDLIBS = -lsundials_cvodes -lsundials_nvecserial
# MATLAB
MATLAB_ROOT = /share/apps/matlabR2013a
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_ROOT = /share/apps/hdf5
HDF5_CPPFLAGS = -I$(HDF5_ROOT)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_BSD_SOURCE
HDF5_LDFLAGS = -L$(HDF5_ROOT)/lib
HDF5_LDLIBS = -lhdf5_hl -lhdf5 -lz -lrt -lm -Wl,-rpath -Wl,$(HDF5_ROOT)/lib
# CUNIT
CUNIT_CPPFLAGS = -I$(HOME)/include
CUNIT_LDFLAGS = -L$(HOME)/lib64
CUNIT_LDLIBS = -lcunit