# macOS Intel: ## Setup the environment Follow the Homebrew installation instructions [here](https://brew.sh/), pasting the given line in Terminal. ## Download the source code You can either download the source code for this project as a ZIP, or obtain it using `git clone`: ```sh git clone https://github.com/coop-deluxe/sm64coopdx.git cd sm64coopdx ``` ## Install dependencies After installing homebrew, enter this command in the Rosetta terminal to install packages necessary to build sm64coopdx: ```sh brew install make mingw-w64 gcc gcc@9 sdl2 pkg-config glew glfw3 libusb audiofile coreutils ``` ## Assembling libjuice (optional for 10.15 and above) Run the following script to compile the libjuice library: ```sh sh tools/mac-intel-essential.sh ``` ## Compilation Finally, it's time to compile. in the terminal, navigate to the folder in which you cloned or downloaded sm64coopdx if you haven't already. Once you're there, run the following command: ```sh gmake OSX_BUILD=1 ``` OSX_BUILD must be specified as 1. You can append [build flags](https://github.com/coop-deluxe/sm64coopdx/wiki/Build-Flags) to your make invocation for any needed changes.