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

23 lines
435 B
Makefile
Raw Normal View History

2020-11-25 04:15:55 -05:00
GRUBCFG = rootfs/boot/grub/grub.cfg
KERNEL = rootfs/boot/kernelmq.multiboot2
2017-11-09 10:54:13 -05:00
IMAGE = image.iso
2017-11-09 04:58:39 -05:00
2020-12-05 19:36:55 -05:00
.PHONY: kernelmq/kernelmq.multiboot2
2020-11-25 05:52:13 -05:00
2017-11-09 11:05:09 -05:00
run: $(IMAGE)
2017-11-09 11:33:01 -05:00
qemu-system-i386 -cdrom $< -display none -serial stdio
2017-11-01 01:03:52 -04:00
2017-11-09 10:52:58 -05:00
clean:
2020-12-05 19:36:55 -05:00
rm -f $(KERNEL)
make -C kernelmq clean
2017-11-08 04:38:55 -05:00
2020-12-05 19:36:55 -05:00
$(IMAGE): $(GRUBCFG) $(KERNEL)
2017-11-09 11:05:09 -05:00
grub-mkrescue rootfs -o $@
$(KERNEL): kernelmq/kernelmq.multiboot2
2020-11-25 04:32:16 -05:00
cp $< $@
kernelmq/kernelmq.multiboot2:
make -C kernelmq kernelmq.multiboot2