-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 860 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 860 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
# Copyright (c) 2018 M D
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
PLATFORMS= `ls kernel/arch/ | sort`
help:
@echo
@echo "Makefile for Building VOS Operating System"
@echo "Please see LICENSE for licensing information"
@echo "Currently supported platforms:"
@echo $(PLATFORMS)
@echo "Usage: make [ vos | clean | help ] "
@echo " vos command will compile files and make an output file (like iso, bin, ...)"
@echo " clean command will delete all generated files during compile"
@echo "You can change target architecture by changing the ARCH value in kernel/Makfile, default is x86 platform"
@echo
vos:
$(MAKE) -C ./kernel
iso
iso:
@cp ./kernel/vos.bin ./isodir/boot/vos.bin
@grub-mkrescue -o vos.iso isodir
clean:
$(MAKE) -C ./kernel clean
rm -rf isodir/boot/vos.bin
rm -rf isodir/vos.iso