diff --git a/README.md b/README.md index 9087f4abc72fe0c3b550f6d9d05b5a29690d4c5f..13bd379aeea903e24059235cf1f7d6f2e070b491 100644 --- a/README.md +++ b/README.md @@ -127,18 +127,41 @@ To run an example or the assigment, simply run the command, e.g. **./shapes.exe* in the same directory. (Note: it is important that you run the executables in the **window_build** directory.) -## OS X +## OS X + +> Note: ARM based Macs (M1 or M2) +> +> You will need to install a small amount of software. First install ```brew`` from: +> +> - [https://brew.sh/](https://brew.sh/) +> +> The you can use ```brew``` to install the missing packages: +> +> ```bash +> brew install sdl2 +> brew install sdl2_image +> brew install sdl2_ttf +> brew install freetype +> ``` To make it slightly easier to build both the examples and the assigment itself a Makefile is provided: - **Makefile** +> For ARM macs it will be Makefile_brew + To build and examples and assignment simple type ```bash make ``` +> For ARM macs it is: +> +> ```bash +> make -f Makefile_brew +> ``` + in the root directory. This will build the resulting executables in the directory **build**. **build** will contain the example executables: