old-MTGos-old/kernel.settings

23 lines
356 B
Text
Raw Normal View History

2016-06-18 11:16:15 +00:00
arch = x86_64
#MODE = debug
MODE = release # enables optimization
export PATH := $(HOME)/opt/bin:$(PATH)
2016-06-17 19:39:43 +00:00
ARCHFLAGS =
2016-06-16 18:50:03 +00:00
ifeq ($(arch),x86)
PREFIX = i686-elf-
else
ifeq ($(arch),x86_64)
PREFIX = x86_64-elf-
2016-06-17 19:39:43 +00:00
ARCHFLAGS =
2016-06-16 18:50:03 +00:00
endif
endif
ifeq ($(MODE),debug)
2016-06-17 19:39:43 +00:00
CFLAGS += -g3 -DDEBUG
CPPFLAGS += -g3 -DDEBUG
else
CFLAGS += -O2
CPPFLAGS += -O2
endif