29 lines
405 B
Makefile
29 lines
405 B
Makefile
include .env
|
|
|
|
.PHONY: all libk kernel
|
|
|
|
all: os.iso
|
|
|
|
libk:
|
|
make --directory=libk
|
|
|
|
kernel:
|
|
make --directory=kernel
|
|
|
|
os.iso: libk kernel
|
|
rm -fr os.iso
|
|
mkdir -p boot/grub
|
|
cp grub.cfg boot/grub
|
|
cp kernel/bin/kernel.bin boot
|
|
grub-mkrescue -o os.iso .
|
|
|
|
clean:
|
|
make --directory=libk clean
|
|
make --directory=kernel clean
|
|
rm -fr boot
|
|
rm -fr os.iso
|
|
|
|
run:
|
|
$(QEMU) -cdrom os.iso \
|
|
-boot order=d \
|
|
-m 4g
|