finix/Makefile
Tyler Murphy fbf131b5c0 initial
2023-07-16 02:54:32 -04:00

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