Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile under macOS #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# 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
else
PLATFORM := UNIX
TYRIAN_DIR = $(gamesdir)/opentyrian2000
endif
endif

WITH_NETWORK := true

Expand Down