-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 677 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 677 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
MM=FREE_LIST_MM
all: bootloader kernel userland image
bootloader:
cd Bootloader; make all
kernel:
cd Kernel; make all MM=-D$(MM)
userland:
cd Userland; make all
image: kernel bootloader userland
cd Image; make all
clean:
cd Bootloader; make clean
cd Image; make clean
cd Kernel; make clean
cd Userland; make clean
SOURCES_CPP=$(shell find . -type f -name '*.c')
OUT_CPP=$(SOURCES_CPP:.c=.cpp)
test: cpp pvs
cpp: $(OUT_CPP)
pvs: clean
./pvs.sh
%.cpp: %.c
cppcheck --quiet --enable=all --force --inconclusive $< 2>> output.cppOut
cleanTest:
rm output.cppOut report.tasks
.PHONY: bootloader image collections kernel userland all clean cleanTest cpp test