Update
This commit is contained in:
parent
a97b7b1466
commit
6682ab1f29
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ override MAKEFLAGS += -rR
|
||||||
# Change as needed.
|
# Change as needed.
|
||||||
override KERNEL := kernel.elf
|
override KERNEL := kernel.elf
|
||||||
|
|
||||||
# Convenience macro to reliably declare overridable command variables.
|
# Convenience macro to reliably declare user overridable variables.
|
||||||
define DEFAULT_VAR =
|
define DEFAULT_VAR =
|
||||||
ifeq ($(origin $1),default)
|
ifeq ($(origin $1),default)
|
||||||
override $(1) := $(2)
|
override $(1) := $(2)
|
||||||
|
@ -24,16 +24,16 @@ $(eval $(call DEFAULT_VAR,CC,cc))
|
||||||
$(eval $(call DEFAULT_VAR,LD,ld))
|
$(eval $(call DEFAULT_VAR,LD,ld))
|
||||||
|
|
||||||
# User controllable CFLAGS.
|
# User controllable CFLAGS.
|
||||||
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
|
$(eval $(call DEFAULT_VAR,CFLAGS,-g -O2 -pipe -Wall -Wextra))
|
||||||
|
|
||||||
# User controllable preprocessor flags. We set none by default.
|
# User controllable preprocessor flags. We set none by default.
|
||||||
CPPFLAGS ?=
|
$(eval $(call DEFAULT_VAR,CPPFLAGS,))
|
||||||
|
|
||||||
# User controllable nasm flags.
|
# User controllable nasm flags.
|
||||||
NASMFLAGS ?= -F dwarf -g
|
$(eval $(call DEFAULT_VAR,NASMFLAGS,-F dwarf -g))
|
||||||
|
|
||||||
# User controllable linker flags. We set none by default.
|
# User controllable linker flags. We set none by default.
|
||||||
LDFLAGS ?=
|
$(eval $(call DEFAULT_VAR,LDFLAGS,))
|
||||||
|
|
||||||
# Internal C flags that should not be changed by the user.
|
# Internal C flags that should not be changed by the user.
|
||||||
override CFLAGS += \
|
override CFLAGS += \
|
||||||
|
|
Loading…
Add table
Reference in a new issue