ref: 055f32333fe720302175f0eafc6f111f27923de3
parent: 6dc3c0d1085b6a58417dd2f663ad46c9bc3a8c0d
author: UltraHDR <108294295+UltraHDR@users.noreply.github.com>
date: Wed Aug 31 02:16:51 EDT 2022
Add macOS build instructions (#15) * Add macOS build instructions * Merge Linux & macOS
--- a/README.md
+++ b/README.md
@@ -28,13 +28,18 @@
### Windows
Build the .sln file with Visual Studio
-### Linux
-`apt install libsdl2-dev`
+### Linux/macOS
+#### Dependencies
+Linux: `apt install libsdl2-dev`
+macOS: `brew install sdl2`
+
+#### Building
Make sure you are in the root directory.
-`clang++ -I/usr/include/SDL2 -lSDL2 -O2 -ozelda3 *.cpp snes/*.cpp`
-
+```
+clang++ `sdl2-config --cflags` -O2 -ozelda3 *.cpp snes/*.cpp `sdl2-config --libs`
+```
## Usage and controls