Update
This commit is contained in:
parent
12233c32fc
commit
d14822ed42
|
@ -15,8 +15,8 @@ define DEFAULT_VAR =
|
|||
endif
|
||||
endef
|
||||
|
||||
# It is highly recommended to use a custom built cross toolchain to build a kernel.
|
||||
# We are only using "cc" as a placeholder here. It may work by using
|
||||
# It is suggested to use a custom built cross toolchain to build a kernel.
|
||||
# We are using the standard "cc" here, it may work by using
|
||||
# the host system's toolchain, but this is not guaranteed.
|
||||
override DEFAULT_CC := cc
|
||||
$(eval $(call DEFAULT_VAR,CC,$(DEFAULT_CC)))
|
||||
|
@ -98,18 +98,18 @@ limine.h:
|
|||
curl -Lo $@ https://github.com/limine-bootloader/limine/raw/trunk/limine.h
|
||||
|
||||
# Link rules for the final kernel executable.
|
||||
$(KERNEL): $(OBJ) GNUmakefile linker.ld
|
||||
$(KERNEL): GNUmakefile linker.ld $(OBJ)
|
||||
$(LD) $(OBJ) $(LDFLAGS) -o $@
|
||||
|
||||
# Include header dependencies.
|
||||
-include $(HEADER_DEPS)
|
||||
|
||||
# Compilation rules for *.c files.
|
||||
%.c.o: %.c limine.h GNUmakefile
|
||||
%.c.o: %.c GNUmakefile limine.h
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
# Compilation rules for *.S files.
|
||||
%.S.o: %.S limine.h GNUmakefile
|
||||
%.S.o: %.S GNUmakefile limine.h
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
# Compilation rules for *.asm (nasm) files.
|
||||
|
|
Loading…
Reference in a new issue