old-MTGos-old/kernel.settings
2016-06-18 13:16:15 +02:00

22 lines
356 B
Text

arch = x86_64
#MODE = debug
MODE = release # enables optimization
export PATH := $(HOME)/opt/bin:$(PATH)
ARCHFLAGS =
ifeq ($(arch),x86)
PREFIX = i686-elf-
else
ifeq ($(arch),x86_64)
PREFIX = x86_64-elf-
ARCHFLAGS =
endif
endif
ifeq ($(MODE),debug)
CFLAGS += -g3 -DDEBUG
CPPFLAGS += -g3 -DDEBUG
else
CFLAGS += -O2
CPPFLAGS += -O2
endif