finix/Makefile

30 lines
405 B
Makefile
Raw Normal View History

2023-07-16 06:54:32 +00:00
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