summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatoMew <SatoMew@users.noreply.github.com>2018-09-20 22:10:01 +0100
committerGitHub <noreply@github.com>2018-09-20 22:10:01 +0100
commitd9d1f9140e098714b4caae67734ff0656dd3a73b (patch)
tree5ee1c295f1e75f6705d682806b6bcc1e074990dc
parent232e64a597ed72467eb27eb4d7eb1840f6781f6e (diff)
Create INSTALL.md
-rw-r--r--INSTALL.md52
1 files changed, 52 insertions, 0 deletions
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.