1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/Makefile

22 lines
425 B
Makefile

GRUBCFG = rootfs/boot/grub/grub.cfg
KERNEL = rootfs/boot/tailix.multiboot2
IMAGE = image.iso
.PHONY: kernelmq/tailix.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/tailix.multiboot2
cp $< $@
kernelmq/tailix.multiboot2:
make -C kernelmq tailix.multiboot2