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

45 lines
845 B
Makefile
Raw Normal View History

2021-12-15 10:30:02 -05:00
IMAGE = image.iso
2021-12-15 10:28:11 -05:00
ROOTFS = rootfs
GRUBCFG = $(ROOTFS)/boot/grub/grub.cfg
KERNEL = $(ROOTFS)/boot/tailix.multiboot2
PROCMAN = $(ROOTFS)/boot/procman
MEMGR = $(ROOTFS)/boot/memgr
.PHONY: kernel/tailix.multiboot2 procman/procman memgr/memgr
2020-11-25 05:52:13 -05:00
2021-12-15 10:30:02 -05:00
all: run0
2021-12-15 10:26:25 -05:00
run0: $(IMAGE)
qemu-system-i386 -cdrom $< -serial stdio -display none
run1: $(IMAGE)
qemu-system-i386 -cdrom $< -serial stdio
2017-11-01 01:03:52 -04:00
2017-11-09 10:52:58 -05:00
clean:
rm -f $(IMAGE) $(KERNEL) $(PROCMAN) $(MEMGR)
2021-12-12 09:00:17 -05:00
make -C kernel clean
make -C procman clean
make -C memgr clean
2017-11-08 04:38:55 -05:00
$(IMAGE): $(GRUBCFG) $(KERNEL) $(PROCMAN) $(MEMGR)
2021-12-15 10:28:11 -05:00
grub-mkrescue $(ROOTFS) -o $@
2017-11-09 11:05:09 -05:00
2021-12-12 09:00:17 -05:00
$(KERNEL): kernel/tailix.multiboot2
2020-11-25 04:32:16 -05:00
cp $< $@
$(PROCMAN): procman/procman
cp $< $@
$(MEMGR): memgr/memgr
cp $< $@
2021-12-12 09:00:17 -05:00
kernel/tailix.multiboot2:
make -C kernel tailix.multiboot2
procman/procman:
make -C procman procman
memgr/memgr:
make -C memgr memgr