forked from sailing-pmls/bosen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rtags.mk
42 lines (31 loc) · 918 Bytes
/
rtags.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
33
34
35
36
37
38
39
40
41
42
# Assuming this Makefile lives in project root directory
PROJECT := $(shell readlink $(dir $(lastword $(MAKEFILE_LIST))) -f)
PETUUM_ROOT = $(PROJECT)
include $(PROJECT)/defns.mk
# defined in defns.mk
SRC = $(PETUUM_SRC)
LIB = $(PETUUM_LIB)
THIRD_PARTY = $(PETUUM_THIRD_PARTY)
THIRD_PARTY_SRC = $(PETUUM_THIRD_PARTY_SRC)
THIRD_PARTY_LIB = $(PETUUM_THIRD_PARTY_LIB)
THIRD_PARTY_INCLUDE = $(PETUUM_THIRD_PARTY_INCLUDE)
BIN = $(PROJECT)/bin
NEED_MKDIR = $(BIN) \
$(LIB) \
$(TESTS_BIN) \
$(THIRD_PARTY_SRC) \
$(THIRD_PARTY_LIB) \
$(THIRD_PARTY_INCLUDE)
CXX = rc --compile
CXXFLAGS = $(PETUUM_CXXFLAGS)
CXXFLAGS += -DPETUUM_MAX_NUM_CLIENTS=8
INCFLAGS = $(PETUUM_INCFLAGS)
LDFLAGS = $(PETUUM_LDFLAGS)
all: path \
ps_lib \
ps_sn_lib
path: $(NEED_MKDIR)
$(NEED_MKDIR):
mkdir -p $@
.PHONY: all path clean distclean
include $(SRC)/petuum.mk