Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius authored Feb 1, 2024
1 parent fc5d0f4 commit 2d0dd49
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions platforms/macos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ LDFLAGS += -framework AppKit -framework UniformTypeIdentifiers

include ../desktop-shared/Makefile.common

if [[ $(uname -m) == 'arm64' ]]; then
DYLIB_PATH=/opt/homebrew/lib
# Brew use a different path on Apple Silicon as on Intel
UNAME_P := $(shell uname -m)
ifneq ($(filter arm64%,$(UNAME_P)),)
DYLIB_PATH=/opt/homebrew/lib/
else
DYLIB_PATH=/usr/local/opt/sdl2/lib
fi
DYLIB_PATH=/usr/local/opt/sdl2/lib
endif

SDL_DYLIB=libSDL2-2.0.0.dylib
APP_NAME=Gearcoleco
Expand Down

0 comments on commit 2d0dd49

Please sign in to comment.