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

Improve Makefile

This commit is contained in:
Braiden Vasco 2017-11-09 16:03:02 +00:00
parent 2adfc1feba
commit 67247168f6

View file

@ -59,8 +59,8 @@ clean:
rm -f $(KERNEL)
$(KERNEL): $(OBJS)
$(CC) -T linker.ld -o $(KERNEL) -ffreestanding -nostdlib -lgcc $(OBJS)
grub-file --is-x86-multiboot2 $(KERNEL)
$(CC) -T linker.ld -o $@ -ffreestanding -nostdlib -lgcc $^
grub-file --is-x86-multiboot2 $@
%.c.o: %.c
$(CC) -c $< -o $@ $(CFLAGS)