config.mk 1.19 KB
Newer Older
1
CXX = g++
Philipp  Trunschke's avatar
Philipp Trunschke committed
2
3
4
5

PYTHON2_CONFIG = `python-config --cflags --ldflags`
PYTHON3_CONFIG = `python3-config --cflags --ldflags`

6
7
8
9
10
11
12
13
14
15
16
COMPATIBILITY = -std=c++17
COMPILE_THREADS = 8                       # Number of threads to use during link time optimization.
HIGH_OPTIMIZATION = TRUE                  # Activates -O3 -march=native and some others
OTHER += -fopenmp

LOGGING += -D XERUS_LOG_INFO              # Information that is not linked to any unexpected behaviour but might nevertheless be of interest.
LOGGING += -D XERUS_LOGFILE               # Use 'error.log' file instead of cerr
LOGGING += -D XERUS_LOG_ABSOLUTE_TIME     # Print absolute times instead of relative to program time

INSTALL_LIB_PATH = /usr/local/lib         # Path where to install the libxerus.so shared library.
INSTALL_HEADER_PATH = /usr/local/include  # Path where to install the xerus header files.
17
INSTALL_PYTHON2_PATH = /usr/local/lib/python2.7/site-packages
18
INSTALL_PYTHON3_PATH = /usr/local/lib/python3.6/site-packages
19
20
21
22
23

BLAS_LIBRARIES = -lopenblas -lgfortran    # Openblas, serial
LAPACK_LIBRARIES = -llapacke -llapack     # Standard Lapack + Lapacke libraries
SUITESPARSE = -L/usr/local/lib/suitesparse -lcholmod -lspqr
BOOST_LIBS = -lboost_filesystem