From 237c967a98ce664705df9d1ff9c77a409f71d60f Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Tue, 10 May 2016 21:39:46 -0700 Subject: use devkitARM cpp --- INSTALL.md | 6 ++---- 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. diff --git a/Makefile b/Makefile index a2c1ca752..7b16e1688 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3