1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00
kernel/Makefile
2020-12-06 05:36:55 +05:00

22 lines
435 B
Makefile

GRUBCFG = rootfs/boot/grub/grub.cfg
KERNEL = rootfs/boot/kernelmq.multiboot2
IMAGE = image.iso
.PHONY: kernelmq/kernelmq.multiboot2
run: $(IMAGE)
qemu-system-i386 -cdrom $< -display none -serial stdio
clean:
rm -f $(KERNEL)
make -C kernelmq clean
$(IMAGE): $(GRUBCFG) $(KERNEL)
grub-mkrescue rootfs -o $@
$(KERNEL): kernelmq/kernelmq.multiboot2
cp $< $@
kernelmq/kernelmq.multiboot2:
make -C kernelmq kernelmq.multiboot2