-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
51 lines (35 loc) · 1.44 KB
/
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
43
44
45
46
47
48
49
50
51
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
vps: vp/src/core/common/gdb-mc/libgdb/mpc/mpc.c vp/src/symex/clover/README.md vp/build/Makefile
make -C vp/build -j$(NPROCS)
vp/src/core/common/gdb-mc/libgdb/mpc/mpc.c:
git submodule update --init vp/src/core/common/gdb-mc/libgdb/mpc
vp/src/symex/bencode/README.md:
git submodule update --init vp/src/symex/bencode
vp/src/symex/clover/README.md:
git submodule update --init vp/src/symex/clover
all: vps vp-display vp-breadboard
vp/build/Makefile:
mkdir vp/build || true
cd vp/build && cmake -DCMAKE_BUILD_TYPE=Release ..
vp-eclipse:
mkdir vp-eclipse || true
cd vp-eclipse && cmake ../vp/ -G "Eclipse CDT4 - Unix Makefiles"
env/basic/vp-display/build/Makefile:
mkdir env/basic/vp-display/build || true
cd env/basic/vp-display/build && cmake ..
vp-display: env/basic/vp-display/build/Makefile
make -C env/basic/vp-display/build -j$(NPROCS)
env/hifive/vp-breadboard/build/Makefile:
mkdir env/hifive/vp-breadboard/build || true
cd env/hifive/vp-breadboard/build && cmake ..
vp-breadboard: env/hifive/vp-breadboard/build/Makefile
make -C env/hifive/vp-breadboard/build -j$(NPROCS)
vp-clean:
rm -rf vp/build
qt-clean:
rm -rf env/basic/vp-display/build
rm -rf env/hifive/vp-breadboard/build
clean-all: vp-clean qt-clean
clean: vp-clean
codestyle:
find . -type d \( -name .git -o -name dependencies \) -prune -o -name '*.h' -o -name '*.hpp' -o -name '*.cpp' -print | xargs clang-format -i -style=file