-
Notifications
You must be signed in to change notification settings - Fork 63
/
Makefile
57 lines (39 loc) · 1.58 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
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
vps: vp/src/core/common/gdb-mc/libgdb/mpc/mpc.c vp/dependencies/systemc-dist vp/dependencies/softfloat-dist vp/build/Makefile
make install -C vp/build -j$(NPROCS)
vp/dependencies/systemc-dist:
cd vp/dependencies/ && ./build_systemc_233.sh
vp/dependencies/softfloat-dist:
cd vp/dependencies/ && ./build_softfloat.sh
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 vp-breadboard
vp/build/Makefile:
mkdir vp/build || true
cd vp/build && cmake ..
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
sysc-clean:
rm -rf vp/dependencies/systemc*
softfloat-clean:
rm -rf vp/dependencies/softfloat-dist
clean-all: vp-clean qt-clean sysc-clean softfloat-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