diff options
author | YamaArashi <shadow962@live.com> | 2016-05-10 21:39:46 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-05-10 21:39:46 -0700 |
commit | 237c967a98ce664705df9d1ff9c77a409f71d60f (patch) | |
tree | ffd62f1530fdbbc4a782230c0b9b741c44f5583d | |
parent | b1e5ea38770eca59fbb50c81dbce15fddd5eb5e9 (diff) |
use devkitARM cpp
-rw-r--r-- | INSTALL.md | 6 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/INSTALL.md b/INSTALL.md index 7f69a8948..5882a6e45 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,10 +1,8 @@ # Linux -Install [**devkitARM**](http://devkitpro.org/wiki/Getting_Started/devkitARM) or compile [**GNU Binutils**](https://www.gnu.org/software/binutils/) with target "arm-none-eabi". - -Either way, make sure that there is an environment variable called DEVKITARM with the path of the directory before the "bin" directory containing "arm-none-eabi-as", "arm-none-eabi-ld" and "arm-none-eabi-objcopy". +Install [**devkitARM**](http://devkitpro.org/wiki/Getting_Started/devkitARM). -For example, if you install binutils at "/usr/local", make DEVKITARM equal "/usr/local". +Make sure that there is an environment variable called DEVKITARM with the path of the directory before the "bin" directory containing "arm-none-eabi-as", "arm-none-eabi-cpp", "arm-none-eabi-ld" and "arm-none-eabi-objcopy". Then get the compiler from https://github.com/YamaArashi/agbcc and run the following commands. @@ -4,7 +4,7 @@ ASFLAGS := -mcpu=arm7tdmi CC1 := tools/agbcc/bin/agbcc CFLAGS := -mthumb-interwork -O2 -CPP := cpp +CPP := $(DEVKITARM)/bin/arm-none-eabi-cpp CPPFLAGS := -I tools/agbcc/include -iquote include -nostdinc -undef LD := $(DEVKITARM)/bin/arm-none-eabi-ld |