-
Notifications
You must be signed in to change notification settings - Fork 82
/
Makefile
42 lines (32 loc) · 957 Bytes
/
Makefile
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
ifeq ($(STATIC_LINK), 1)
SLINK=-static-libstdc++
else
SLINK=
endif
WORKDIR=.
OBJDIR=./build
include misc/mf-template.mk
all:main_exec
@echo "Done"
main_exec:core_objs utilities libs_3rdparty main.d
$(LINK) utils/*.o $(OBJDIR)/*.o $(WORK_LIBS) $(SLINK) -o cerberus
runtest:main_exec utilities libs_3rdparty
@make -f test/Makefile MODE=$(MODE) COMPILER=$(COMPILER) \
CHECK_MEM=$(CHECK_MEM)
utilities:
@make -f utils/Makefile MODE=$(MODE) COMPILER=$(COMPILER)
kill-test-server:
@python test/cluster_launcher.py kill
core_objs:
@mkdir -p $(OBJDIR)
@make -f core/Makefile OBJDIR=$(OBJDIR) MODE=$(MODE) COMPILER=$(COMPILER)
libs_3rdparty:
@mkdir -p $(LIBS_DIR)
@make -f backtracpp/Makefile LIB_DIR=$(LIBS_DIR) REL_PATH=backtracpp
@cd cppformat && cmake . && make cppformat
@cp cppformat/libcppformat.a $(LIBS_DIR)
clean:
find -type f -name "*.o" -exec rm {} \;
rm -f cerberus
rm -f test/*.out
rm -rf $(LIBS_DIR)