From 3f031e7ffb41b49af9069d64ca2b142c815f40d2 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Thu, 31 Aug 2023 23:38:59 -0500 Subject: [PATCH] Have kernel makefile targets depend on GNUmakefile and linker.ld appropriately. Closes #9 --- kernel/GNUmakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/GNUmakefile b/kernel/GNUmakefile index b1cde5e..2e6367c 100644 --- a/kernel/GNUmakefile +++ b/kernel/GNUmakefile @@ -98,22 +98,22 @@ limine.h: curl -Lo $@ https://github.com/limine-bootloader/limine/raw/trunk/limine.h # Link rules for the final kernel executable. -$(KERNEL): $(OBJ) +$(KERNEL): $(OBJ) GNUmakefile linker.ld $(LD) $(OBJ) $(LDFLAGS) -o $@ # Include header dependencies. -include $(HEADER_DEPS) # Compilation rules for *.c files. -%.c.o: %.c limine.h +%.c.o: %.c limine.h GNUmakefile $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ # Compilation rules for *.S files. -%.S.o: %.S limine.h +%.S.o: %.S limine.h GNUmakefile $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ # Compilation rules for *.asm (nasm) files. -%.asm.o: %.asm +%.asm.o: %.asm GNUmakefile nasm $(NASMFLAGS) $< -o $@ # Remove object files and the final executable.