1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00
kernel/Makefile
2021-12-15 20:30:02 +05:00

28 lines
519 B
Makefile

IMAGE = image.iso
ROOTFS = rootfs
GRUBCFG = $(ROOTFS)/boot/grub/grub.cfg
KERNEL = $(ROOTFS)/boot/tailix.multiboot2
.PHONY: kernel/tailix.multiboot2
all: run0
run0: $(IMAGE)
qemu-system-i386 -cdrom $< -serial stdio -display none
run1: $(IMAGE)
qemu-system-i386 -cdrom $< -serial stdio
clean:
rm -f $(IMAGE) $(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