forked from nihilus/snowman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 792 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
SRC_DIR = $(CURDIR)/src
BUILD_DIR = $(CURDIR)/build
DECOMPILER = $(BUILD_DIR)/nocode/nocode
.PHONY: all
all: tags build
.PHONY: build
build: $(BUILD_DIR)/build.ninja
cmake --build $(BUILD_DIR)
$(BUILD_DIR)/build.ninja:
mkdir -p $(BUILD_DIR) && cd $(BUILD_DIR) && cmake -G Ninja $(SRC_DIR)
.PHONY: test
test: build
tests/configure.py --decompiler $(DECOMPILER) $(BUILD_DIR)/tests
ninja -C $(BUILD_DIR)/tests -k 100
.PHONY: tags
tags:
-ctags --c++-kinds=+p --fields=+iaS --extra=+q -R $(SRC_DIR)
.PHONY: doxydoc
doxydoc:
doxygen
gitstats: .git
gitstats . gitstats
.PHONY: clean
clean:
rm -f tags gmon.out core core.* vgcore.* .ycm_extra_conf.pyc
-cmake --build $(BUILD_DIR) --target clean
-$(MAKE) -C doc clean
.PHONY:
distclean: clean
rm -rf $(BUILD_DIR) doxydoc gitstats