-
Notifications
You must be signed in to change notification settings - Fork 1
/
include.mk
32 lines (23 loc) · 944 Bytes
/
include.mk
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
BINDIR=${rootPath}bin/
LIBDIR=${rootPath}lib/
#Modify this variable to set the location of sonLib
sonLibRootDir=${rootPath}/../sonLib
sonLibDir=${sonLibRootDir}/lib
cactusRootPath=${rootPath}/../../
halRootPath=${rootPath}/../hal
halPath=${halRootPath}/lib
include ${halRootPath}/include.mk
ifeq (${CXX_ABI_DEF},)
CXX_ABI_DEF = -D_GLIBCXX_USE_CXX11_ABI=1
endif
incls = -I ${sonLibDir} -I ${cactusRootPath}/api/inc -I ${halPath} ${tokyoCabinetIncl} ${kyotoTycoonIncl}
CFLAGS += ${incls}
CXXFLAGS += ${incls} -D__STDC_LIMIT_MACROS -Wno-deprecated -std=c++11 -Wno-sign-compare
LIBDEPENDS = ${halPath}/halLib.a ${sonLibDir}/sonLib.a ${sonLibDir}/cuTest.a
LDLIBS_HAL = ${LIBDEPENDS} ${LDLIBS}
LDLIBS := ${LDLIBS_HAL}
# hdf5 compilation is done through its wrappers.
# we can speficy our own (sonlib) compilers with these variables:
CXX = h5c++ ${h5prefix}
CC = h5cc ${h5prefix}
CXXFLAGS += -I ../hal/api/inc ${CXX_ABI_DEF} -std=c++11