mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
22 lines
415 B
Makefile
22 lines
415 B
Makefile
GRUBCFG = rootfs/boot/grub/grub.cfg
|
|
KERNEL = rootfs/boot/tailix.multiboot2
|
|
|
|
IMAGE = image.iso
|
|
|
|
.PHONY: kernel/tailix.multiboot2
|
|
|
|
run: $(IMAGE)
|
|
qemu-system-i386 -cdrom $< -display none -serial stdio
|
|
|
|
clean:
|
|
rm -f $(KERNEL)
|
|
make -C kernel clean
|
|
|
|
$(IMAGE): $(GRUBCFG) $(KERNEL)
|
|
grub-mkrescue rootfs -o $@
|
|
|
|
$(KERNEL): kernel/tailix.multiboot2
|
|
cp $< $@
|
|
|
|
kernel/tailix.multiboot2:
|
|
make -C kernel tailix.multiboot2
|