2016-07-23 16:13:26 +00:00
|
|
|
arch = x86
|
2016-06-21 13:13:41 +00:00
|
|
|
MODE = debug
|
|
|
|
#MODE = release # enables optimization
|
2015-10-11 10:38:56 +00:00
|
|
|
|
2016-01-28 18:51:40 +00:00
|
|
|
export PATH := $(HOME)/opt/bin:$(PATH)
|
2016-06-16 18:50:03 +00:00
|
|
|
ifeq ($(arch),x86)
|
2016-07-26 18:13:20 +00:00
|
|
|
PREFIX = i686-mtgos-
|
|
|
|
libpath = i686-mtgos
|
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
|
2015-10-14 18:02:41 +00:00
|
|
|
|
2015-10-11 10:38:56 +00:00
|
|
|
ifeq ($(MODE),debug)
|
2016-06-21 13:13:41 +00:00
|
|
|
CFLAGS := -g3 -DDEBUG
|
|
|
|
CPPFLAGS := -g3 -DDEBUG
|
2015-10-11 10:38:56 +00:00
|
|
|
else
|
2016-06-21 13:13:41 +00:00
|
|
|
CFLAGS := -O2
|
|
|
|
CPPFLAGS := -O2
|
2015-10-11 10:38:56 +00:00
|
|
|
endif
|