-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
79 lines (58 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
all: Utility BootLoader Kernel32 Kernel64 Disk.img HDD.img
BootLoader:
@echo
@echo ============== Build Boot Loader ===============
@echo
make -C 00.BootLoader
@echo
@echo =============== Build Complete ===============
@echo
Kernel32:
@echo
@echo ============== Build 32bit Kernel ===============
@echo
make -C 01.Kernel32
@echo
@echo =============== Build Complete ===============
@echo
Kernel64:
@echo
@echo ============== Build 64bit Kernel ===============
@echo
make -C 02.Kernel64
@echo
@echo =============== Build Complete ===============
@echo
Disk.img: 00.BootLoader/BootLoader1.bin 00.BootLoader/BootLoader2.bin 01.Kernel32/Kernel32.bin 02.Kernel64/Kernel64.bin
@echo
@echo =========== Disk Image Build Start ===========
@echo
./ImageMaker $^
@echo
@echo ============= All Build Complete =============
@echo
Utility:
@echo
@echo =========== Utility Build Start ===========
@echo
make -C 04.Utility
@echo
@echo =========== Utility Build Complete ===========
@echo
HDD.img:
@echo
@echo =========== Disk Image Build Start ===========
@echo
qemu-img create HDD.img 64M
@echo
@echo ============= All Build Complete =============
@echo
run:
qemu-system-x86_64 -monitor tcp:127.0.0.1:55555,server,nowait -L . -m 64 -fda Disk.img -hda HDD.img -localtime -M pc -rtc base=localtime -cpu qemu64 -s
clean:
make -C 00.BootLoader clean
make -C 01.Kernel32 clean
make -C 02.Kernel64 clean
make -C 04.Utility clean
rm -f Disk.img
rm -f ImageMaker.exe