From d9d1f9140e098714b4caae67734ff0656dd3a73b Mon Sep 17 00:00:00 2001 From: SatoMew Date: Thu, 20 Sep 2018 22:10:01 +0100 Subject: Create INSTALL.md --- INSTALL.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 INSTALL.md diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 000000000..db4f80aba --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,52 @@ +Install [devkitARM](https://devkitpro.org/wiki/Getting_Started) (if you are on **Windows 10**, [do this instead](#windows-10)). + +Run the following commands (first, see [this](#macos) if you are on **macOS** or [this](#old-windows) if you are on **old Windows**): + + export DEVKITPRO=/opt/devkitpro + echo "export DEVKITPRO=$DEVKITPRO" >> ~/.bashrc + export DEVKITARM=$DEVKITPRO/devkitARM + echo "export DEVKITARM=$DEVKITARM" >> ~/.bashrc + + git clone https://github.com/pret/pokefirered + git clone https://github.com/pret/agbcc + + cd agbcc + ./build.sh + ./install.sh ../pokefirered + + cd ../pokefirered + +To build **pokefirered.gba**: + + make -j$(nproc) + +If you have only changed `.c` or `.s` files, you can turn off the dependency scanning temporarily. Changes to any other files will be ignored, and the build will either fail or not reflect those changes. + + make -j$(nproc) NODEP=1 + + +## macOS + +Run `xcode-select --install` in Terminal, then proceed by executing the commands. + + +## Old Windows + +*For Windows 8.1 and earlier* + +Download and run the [Cygwin](https://www.cygwin.com/install.html) setup, leaving the default settings intact. At "Select Packages", set the view to "Full" and choose to install the following: + +- `make` +- `git` +- `gcc-core` +- `gcc-g++` +- `libpng-devel` + +In the Cygwin command prompt, enter the commands. + +If the command for building pokefirered.gba does not work, run `nproc` and use that value instead of `$(nproc)` for `make`. + + +## Windows 10 + +Install the [Windows Subsystem for Linux](https://docs.microsoft.com/windows/wsl/install-win10), then install [devkitARM](https://devkitpro.org/wiki/Getting_Started) inside the subsystem, and run the commands. -- cgit v1.2.3 From daf81819ed051221ffaf107b94d5459086a583ae Mon Sep 17 00:00:00 2001 From: SatoMew Date: Thu, 20 Sep 2018 22:11:02 +0100 Subject: Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index de845b5cc..cfbe96541 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Pokémon Fire Red +# Pokémon FireRed and LeafGreen -This is a disassembly of Pokémon Fire Red. +This is a disassembly of Pokémon FireRed and LeafGreen. It builds the following rom: @@ -11,13 +11,13 @@ To set up the repository, see [**INSTALL.md**](INSTALL.md). ## See also -* Disassembly of [**Pokémon Red/Blue**][pokered] +* Disassembly of [**Pokémon Red and Blue**][pokered] * Disassembly of [**Pokémon Yellow**][pokeyellow] -* Disassembly of [**Pokémon Gold**][pokegold] +* Disassembly of [**Pokémon Gold and Silver**][pokegold] * Disassembly of [**Pokémon Crystal**][pokecrystal] * Disassembly of [**Pokémon Pinball**][pokepinball] * Disassembly of [**Pokémon TCG**][poketcg] -* Disassembly of [**Pokémon Ruby**][pokeruby] +* Disassembly of [**Pokémon Ruby and Sapphire**][pokeruby] * Disassembly of [**Pokémon Emerald**][pokeemerald] * Discord: [**pret**][Discord] * irc: **irc.freenode.net** [**#pret**][irc] -- cgit v1.2.3 From 024f79c9dd8c4a005f13e25da661d02ed07bf2e1 Mon Sep 17 00:00:00 2001 From: SatoMew Date: Thu, 20 Sep 2018 23:51:56 +0100 Subject: =?UTF-8?q?rom=20=E2=86=92=20ROM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfbe96541..12f698150 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is a disassembly of Pokémon FireRed and LeafGreen. -It builds the following rom: +It builds the following ROM: * pokefirered.gba `sha1: 41cb23d8dccc8ebd7c649cd8fbb58eeace6e2fdc` -- cgit v1.2.3 From 1133410b3f42da8c8c229fe35155367fd4c46bd1 Mon Sep 17 00:00:00 2001 From: SatoMew Date: Fri, 21 Sep 2018 01:56:26 +0100 Subject: Create build_tools.sh --- build_tools.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 build_tools.sh diff --git a/build_tools.sh b/build_tools.sh new file mode 100644 index 000000000..f384c2d99 --- /dev/null +++ b/build_tools.sh @@ -0,0 +1,9 @@ +#!/bin/sh +make -C tools/aif2pcm CXX=${1:-g++} +make -C tools/bin2c CXX=${1:-g++} +make -C tools/gbafix CXX=${1:-g++} +make -C tools/gbagfx CXX=${1:-g++} +make -C tools/preproc CXX=${1:-g++} +make -C tools/ramscrgen CXX=${1:-g++} +make -C tools/rsfont CXX=${1:-g++} +make -C tools/scaninc CXX=${1:-g++} -- cgit v1.2.3