diff --git a/GNUmakefile b/GNUmakefile index c4d2bb7..ff5c767 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,6 @@ +# Nuke built-in rules and variables. +override MAKEFLAGS += -rR + .PHONY: all all: barebones.iso diff --git a/kernel/GNUmakefile b/kernel/GNUmakefile index cdd4273..e6014a6 100644 --- a/kernel/GNUmakefile +++ b/kernel/GNUmakefile @@ -1,3 +1,6 @@ +# Nuke built-in rules and variables. +override MAKEFLAGS += -rR + # This is the name that our final kernel executable will have. # Change as needed. override KERNEL := kernel.elf @@ -64,7 +67,7 @@ override LDFLAGS += \ -z max-page-size=0x1000 \ -T linker.ld -# Check if the linker supports -no-pie and enable it if it does +# Check if the linker supports -no-pie and enable it if it does. ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0) override LDFLAGS += -no-pie endif