-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
65 lines (48 loc) · 1.15 KB
/
Copy pathmakefile
File metadata and controls
65 lines (48 loc) · 1.15 KB
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
.PHONY: boot-loader kernel32 kernel64 disk.img # utility
all: boot-loader kernel32 kernel64 disk.img # utility
boot-loader:
@echo
@echo ============== Build Boot Loader ==============
@echo
make -C boot-loader
@echo
@echo ============== Build Complete ==============
@echo
kernel32:
@echo
@echo ============== Build 32bit Kernel ==============
@echo
make -C kernel32
@echo
@echo ============== Build Complete ==============
@echo
kernel64:
@echo
@echo ============== Build 64bit Kernel ==============
@echo
make -C kernel64
@echo
@echo ============== Build Complete ==============
@echo
disk.img: boot-loader/boot-loader.bin kernel32/kernel32.bin kernel64/kernel64.bin
@echo
@echo ============== Disk Image Build Start ==============
@echo
./image-maker $^
@echo
@echo ============== All Build Complete ==============
@echo
# utility:
# @echo
# @echo ============== Utility Build Start ==============
# @echo
# make -C utility
# @echo
# @echo ============== Utility Build Complete ==============
# @echo
clean:
make -C boot-loader clean
make -C kernel32 clean
make -C kernel64 clean
# make -C utility clean
rm -f disk.img