old-MTGos-old/kernel.settings
Morten Delenk ceb7d0d743
Changed crosscompiler-buildscript
Did some groundwork on FAT
2016-07-26 20:13:20 +02:00

27 lines
478 B
Text

arch = x86
MODE = debug
#MODE = release # enables optimization
export PATH := $(HOME)/opt/bin:$(PATH)
ifeq ($(arch),x86)
PREFIX = i686-mtgos-
libpath = i686-mtgos
else
ifeq ($(arch),x86_64)
PREFIX = x86_64-elf-
libpath = x86_64-elf
else
ifeq ($(arch),3ds)
PREFIX = arm-none-eabi-
libpath = arm-none-eabi
endif
endif
endif
ifeq ($(MODE),debug)
CFLAGS := -g3 -DDEBUG
CPPFLAGS := -g3 -DDEBUG
else
CFLAGS := -O2
CPPFLAGS := -O2
endif