diff --git a/BUILDING.md b/BUILDING.md new file mode 100644 index 000000000..1661823fe --- /dev/null +++ b/BUILDING.md @@ -0,0 +1,14 @@ +## macOS + +Compilation has been tested on macOS Monterey 12.3.1. + +You'll need the XCode command-line tools and three packages installable with +[Homebrew](https://brew.sh/): + +``` +brew install pkg-config sdl2 sdl2_net +``` + +It's best to set up `Z` and `X` for firing the left and right sidekicks, as the +default binding of `Ctrl` for the left sidekick interacts with the arrow keys +to switch desktops while playing in full screen mode. diff --git a/Makefile b/Makefile index ff85aa100..0c8c2da50 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ # BUILD SETTINGS ############################################################### + +ifeq (Darwin, $(shell uname)) + PLATFORM := UNIX + TYRIAN_DIR = $(gamesdir)/opentyrian2000 +else ifneq ($(filter Msys Cygwin, $(shell uname -o)), ) PLATFORM := WIN32 TYRIAN_DIR = C:\\TYRIAN @@ -7,6 +12,7 @@ else PLATFORM := UNIX TYRIAN_DIR = $(gamesdir)/opentyrian2000 endif +endif WITH_NETWORK := true