amlucas.panda 719 Bytes
Newer Older
1
2
3
4
5
LINK = g++
NVCC_DIR = /usr/local/cuda-8.0
NVCC     = ${NVCC_DIR}/bin/nvcc

MPI_CXXFLAGS = -I/usr/include/mpich-x86_64
Sergey Litvinov's avatar
Sergey Litvinov committed
6
MPI_LIBS  = -L/usr/lib64/mpich/lib -Wl,-rpath,/usr/lib64/mpich/lib -lmpichcxx -lmpich
7
8

HDF5_LIBS     = -lhdf5
Sergey Litvinov's avatar
Sergey Litvinov committed
9
NVCC_LIBS = -L${NVCC_DIR}/lib64 -Wl,-rpath,${NVCC_DIR}/lib64
10
11
12
13
14
15

libconfigL  = `pkg-config --libs-only-l libconfig`
libconfigID = `pkg-config --variable=includedir libconfig`
libconfigLD = `pkg-config --variable=libdir libconfig`

LIBCONFIG_CXXFLAGS = -I${libconfigID}
Sergey Litvinov's avatar
Sergey Litvinov committed
16
LIBCONFIG_LIBS     = -L${libconfigLD} -Wl,-rpath,${libconfigLD} ${libconfigL}
17
18
19
20
21

BOP_CXXFLAGS = `bop-config --cflags`
BOP_LIBS     = `bop-config --libs-mpi`

CXXFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-unused-function