Skip to content
Snippets Groups Projects
Commit a85e8e9e authored by Benedict Gaster's avatar Benedict Gaster
Browse files

updated readme for brew use

parent 5d2fdc14
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment