finix/Makefile
Tyler Murphy 8ad6ef551e time
2023-07-16 19:56:56 -04:00

29 lines
430 B
Makefile

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