mirror of
https://github.com/tailix/kernel.git
synced 2025-07-31 22:00:58 -04:00
Improve Makefile
This commit is contained in:
parent
67247168f6
commit
893e37ce6c
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -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 $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue