2020-11-25 04:15:55 -05:00
|
|
|
GRUBCFG = rootfs/boot/grub/grub.cfg
|
|
|
|
KERNEL = rootfs/boot/kernelmq.multiboot2
|
|
|
|
PROCMAN = rootfs/boot/procman
|
2017-11-08 06:34:14 -05:00
|
|
|
|
2017-11-09 10:54:13 -05:00
|
|
|
IMAGE = image.iso
|
2017-11-09 04:58:39 -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-11-25 04:32:16 -05:00
|
|
|
rm -f $(KERNEL) $(PROCMAN)
|
2020-11-25 04:33:00 -05:00
|
|
|
make -C kernel clean
|
2020-11-25 04:15:55 -05:00
|
|
|
make -C procman clean
|
2017-11-08 04:38:55 -05:00
|
|
|
|
2020-11-25 04:15:55 -05:00
|
|
|
$(IMAGE): $(GRUBCFG) $(KERNEL) $(PROCMAN)
|
2017-11-09 11:05:09 -05:00
|
|
|
grub-mkrescue rootfs -o $@
|
|
|
|
|
2017-11-09 10:52:58 -05:00
|
|
|
$(KERNEL): $(OBJS)
|
2017-11-09 11:03:02 -05:00
|
|
|
$(CC) -T linker.ld -o $@ -ffreestanding -nostdlib -lgcc $^
|
|
|
|
grub-file --is-x86-multiboot2 $@
|
2017-11-09 10:52:58 -05:00
|
|
|
|
2020-11-25 04:33:00 -05:00
|
|
|
$(KERNEL): kernel/kernelmq.multiboot2
|
2020-11-25 04:32:16 -05:00
|
|
|
cp $< $@
|
|
|
|
|
2020-11-25 04:15:55 -05:00
|
|
|
$(PROCMAN): procman/procman
|
2020-11-25 04:32:16 -05:00
|
|
|
cp $< $@
|
|
|
|
|
2020-11-25 04:33:00 -05:00
|
|
|
kernel/kernelmq.multiboot2:
|
|
|
|
make -C kernel kernelmq.multiboot2
|
2020-11-25 04:15:55 -05:00
|
|
|
|
|
|
|
procman/procman:
|
|
|
|
make -C procman procman
|