1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-07-31 22:00:58 -04:00

Improve Makefile

This commit is contained in:
Braiden Vasco 2017-11-09 16:05:09 +00:00
parent 67247168f6
commit 893e37ce6c

View file

@ -47,9 +47,8 @@ OBJS += exception.c.o
OBJS += hwint.c.o
OBJS += syscall.c.o
run: $(KERNEL)
grub-mkrescue rootfs -o $(IMAGE)
qemu-system-i386 -cdrom $(IMAGE)
run: $(IMAGE)
qemu-system-i386 -cdrom $<
all: $(KERNEL)
@ -58,6 +57,9 @@ clean:
rm -f $(IMAGE)
rm -f $(KERNEL)
$(IMAGE): $(KERNEL)
grub-mkrescue rootfs -o $@
$(KERNEL): $(OBJS)
$(CC) -T linker.ld -o $@ -ffreestanding -nostdlib -lgcc $^
grub-file --is-x86-multiboot2 $@