old-MTGos-old/kernel.settings

28 lines
474 B
Text
Raw Normal View History

2016-06-28 09:32:24 +00:00
arch = 3ds
MODE = debug
#MODE = release # enables optimization
export PATH := $(HOME)/opt/bin:$(PATH)
2016-06-16 18:50:03 +00:00
ifeq ($(arch),x86)
PREFIX = i686-elf-
2016-06-28 09:32:24 +00:00
libpath = i686-elf
2016-06-16 18:50:03 +00:00
else
ifeq ($(arch),x86_64)
PREFIX = x86_64-elf-
2016-06-28 09:32:24 +00:00
libpath = x86_64-elf
else
ifeq ($(arch),3ds)
PREFIX = arm-none-eabi-
libpath = arm-none-eabi
endif
2016-06-16 18:50:03 +00:00
endif
endif
ifeq ($(MODE),debug)
CFLAGS := -g3 -DDEBUG
CPPFLAGS := -g3 -DDEBUG
else
CFLAGS := -O2
CPPFLAGS := -O2
endif