-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
73 lines (58 loc) · 1.99 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
MAKEFLAGS += --no-print-directory
# Whether to use a system-wide SystemC library instead of the vendored one.
USE_SYSTEM_SYSTEMC ?= OFF
# Release build on by default
RELEASE_BUILD ?= ON
ifeq ($(RELEASE_BUILD),ON)
CMAKE_BUILD_TYPE = Release
else
CMAKE_BUILD_TYPE = Debug
endif
vps: vp/src/core/common/gdb-mc/libgdb/mpc/mpc.c vp/build/Makefile
$(MAKE) install -C vp/build
vp/src/core/common/gdb-mc/libgdb/mpc/mpc.c:
git submodule update --init vp/src/core/common/gdb-mc/libgdb/mpc
all: vps vp-display gd32-breadboard
vp/build/Makefile:
mkdir -p vp/build
cd vp/build && cmake -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) -DUSE_SYSTEM_SYSTEMC=$(USE_SYSTEM_SYSTEMC) ..
vp-eclipse:
mkdir -p vp-eclipse
cd vp-eclipse && cmake -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) ../vp/ -G "Eclipse CDT4 - Unix Makefiles"
env/basic/vp-display/build/Makefile:
mkdir -p env/basic/vp-display/build
cd env/basic/vp-display/build && cmake -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) ..
vp-display: env/basic/vp-display/build/Makefile
$(MAKE) -C env/basic/vp-display/build
env/gd32/vp-breadboard/build/Makefile:
mkdir -p env/gd32/vp-breadboard/build
cd env/gd32/vp-breadboard/build && cmake ..
gd32-breadboard: env/gd32/vp-breadboard/build/Makefile
$(MAKE) -C env/gd32/vp-breadboard/build
vp-clean:
rm -rf vp/build
qt-clean:
rm -rf env/basic/vp-display/build
rm -rf env/gd32/vp-breadboard/build
clean-all: vp-clean qt-clean
clean: vp-clean
codestyle:
find \
\( \
-name "*.h" -or \
-name "*.hpp" -or \
-name "*.c" -or \
-name "*.cpp" \
\) -and \
-not \( \
-path "./.git/*" -or \
-path "./env/gd32/vp-breadboard/LuaBridge3/*" -or \
-path "./vp/src/core/common/gdb-mc/libgdb/mpc/*" -or \
-path "./vp/src/platform/hifive/vbb-protocol/*" -or \
-path "./vp/src/platform/hwitl/virtual-bus/*" -or \
-path "./vp/src/vendor/*" -or \
-path "./vp/tests/*" -or \
-path "./*/build/*" \
\) \
-print \
| xargs clang-format -i -style=file