-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
68 lines (50 loc) · 1.3 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
# Makefile to build all subdirs and make disk image
all: bootloader kernel32 kernel64 Disk.img application
bootloader:
@echo
@echo ==================== Build Boot Loader ====================
@echo
make -C BootLoader
@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: BootLoader/BootLoader.bin Kernel32/Kernel32.bin Kernel64/Kernel64.bin
@echo
@echo ==================== Disk Image Build Start ====================
@echo
make -C Utility
./Utility/ImageMaker.out $^
@echo
@echo ==================== All Build Complete ====================
@echo
application:
@echo
@echo ==================== Build Application ====================
@echo
make -C Application
@echo
@echo ==================== Build Complete ====================
@echo
clean:
make -C BootLoader clean
make -C Kernel32 clean
make -C Kernel64 clean
make -C Application clean
make -C Utility clean
rm -f Disk.img