forked from sailing-pmls/bosen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefns.mk
More file actions
31 lines (29 loc) · 991 Bytes
/
defns.mk
File metadata and controls
31 lines (29 loc) · 991 Bytes
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
# Requires PETUUM_ROOT to be defined
PETUUM_SRC = $(PETUUM_ROOT)/src
PETUUM_LIB = $(PETUUM_ROOT)/lib
PETUUM_THIRD_PARTY = $(PETUUM_ROOT)/third_party
PETUUM_THIRD_PARTY_SRC = $(PETUUM_THIRD_PARTY)/src
PETUUM_THIRD_PARTY_INCLUDE = $(PETUUM_THIRD_PARTY)/include
PETUUM_THIRD_PARTY_LIB = $(PETUUM_THIRD_PARTY)/lib
PETUUM_CXX = g++
PETUUM_CXXFLAGS = -g -O3 \
-std=c++0x \
-Wall \
-Wno-sign-compare \
-fno-builtin-malloc \
-fno-builtin-calloc \
-fno-builtin-realloc \
-fno-builtin-free \
-fno-omit-frame-pointer
PETUUM_INCFLAGS = -I$(PETUUM_SRC) -I$(PETUUM_THIRD_PARTY_INCLUDE)
PETUUM_LDFLAGS = -Wl,-rpath,$(PETUUM_THIRD_PARTY_LIB) \
-L$(PETUUM_THIRD_PARTY_LIB) \
-pthread -lrt -lnsl -luuid \
-lzmq \
-lboost_thread \
-lboost_system \
-lglog \
-lgflags \
-ltcmalloc \
-lconfig++
PETUUM_PS_LIB = $(PETUUM_LIB)/libpetuum-ps.a