-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 772 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (34 loc) · 772 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
32
33
34
35
36
37
38
39
40
41
42
43
export CC := clang
export CXX := clang++
run: debug
./build/editor
debug:
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=install \
-DTEXT_LINE_IMPLEMENTATION=ON \
-B build && cmake --build build
release:
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=install \
-B build && cmake --build build
install: clean debug
cmake --install build --prefix install
package: clean release
cmake --install build --prefix install
tar -czvf roots.tar.gz -C install .
perf: debug
perf record \
--debuginfod \
--call-graph dwarf,2048 \
./build/editor
@[ -f `which hotspot` ] && hotspot
clean:
rm -rf build
rm -rf install
rm -rf perf*
rm -rf roots.tar.gz
rm -rf tags
update:
git submodule update --remote --merge