... | ... |
@@ -4,13 +4,14 @@ An assembler and emulator for the [Uxn stack-machine](https://wiki.xxiivv.com/si |
4 | 4 |
|
5 | 5 |
## Build |
6 | 6 |
|
7 |
-### Linux |
|
7 |
+### Linux/OS X |
|
8 | 8 |
|
9 | 9 |
To build the Uxn emulator, you must install [SDL2](https://wiki.libsdl.org/) for your distro. If you are using a package manager: |
10 | 10 |
|
11 | 11 |
```sh |
12 | 12 |
sudo pacman -Sy sdl2 # Arch |
13 | 13 |
sudo apt install libsdl2-dev # Ubuntu |
14 |
+sudo brew sdl2 # OS X |
|
14 | 15 |
``` |
15 | 16 |
|
16 | 17 |
Build the assembler and emulator by running the `build.sh` script. The assembler(`uxnasm`) and emulator(`uxnemu`) are created in the `/bin` folder. |
... | ... |
@@ -18,6 +19,7 @@ Build the assembler and emulator by running the `build.sh` script. The assembler |
18 | 19 |
```sh |
19 | 20 |
./build.sh |
20 | 21 |
--debug # Add debug flags to compiler |
22 |
+ --format # Format source code |
|
21 | 23 |
``` |
22 | 24 |
|
23 | 25 |
If you wish to build the emulator without graphics mode: |