-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (24 loc) · 750 Bytes
/
makefile
File metadata and controls
32 lines (24 loc) · 750 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
## Main makefile for the kernel project, used to controll various tasks
kernel:
@echo "[---------COMPILING KERNEL---------]"
@make -C src/
@echo "-------->> DONE"
kernelimage: kernel
sudo make -C vm/ image
b-run:
@make -C vm/ bochs
.PHONY: clean
clean:
@echo "[---------CLEANING build DIR---------]"
@echo -n "[clean] Removing object files and the compiled kernel..."
@rm -rf `find build/ -name "*.o" -printf "%p "`
@rm -rf `find build/ -name "*.bin" -printf "%p "`
@echo " [OK]"
@echo "-------->> DONE"
.PHONY: clean-all
clean-all: clean
@echo "[---------CLEANING vm DIR---------]"
@echo -n "[clean-all] Removing logs and boot images..."
@rm -rf `find vm/ -name "*.log" -printf "%p "`
@echo " [OK]"
@echo "-------->> DONE"