mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-09 23:02:02 +00:00
Update Makefile to build on Apple Silicon
This commit is contained in:
parent
41e9b46358
commit
473b2ca078
2 changed files with 11 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -299,6 +299,8 @@ else ifeq ($(YQ2_OSTYPE),OpenBSD)
|
|||
INCLUDE ?= -I/usr/local/include
|
||||
else ifeq ($(YQ2_OSTYPE),Windows)
|
||||
INCLUDE ?= -I/usr/include
|
||||
else ifeq ($(YQ2_OSTYPE),Darwin)
|
||||
INCLUDE ?= -I/usr/local/include -I/opt/homebrew/include
|
||||
endif
|
||||
|
||||
# ----------
|
||||
|
@ -314,6 +316,8 @@ else ifeq ($(YQ2_OSTYPE),OpenBSD)
|
|||
LDFLAGS ?= -L/usr/local/lib
|
||||
else ifeq ($(YQ2_OSTYPE),Windows)
|
||||
LDFLAGS ?= -L/usr/lib
|
||||
else ifeq ($(YQ2_OSTYPE),Darwin)
|
||||
LDFLAGS ?= -L/usr/local/lib -L/opt/homebrew/lib
|
||||
endif
|
||||
|
||||
# Link address sanitizer if requested.
|
||||
|
@ -492,8 +496,9 @@ ifeq ($(WITH_OPENAL),yes)
|
|||
ifeq ($(YQ2_OSTYPE), OpenBSD)
|
||||
release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so"'
|
||||
else ifeq ($(YQ2_OSTYPE), Darwin)
|
||||
release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.dylib"' -I/usr/local/opt/openal-soft/include
|
||||
release/quake2 : LDFLAGS += -L/usr/local/opt/openal-soft/lib -rpath /usr/local/opt/openal-soft/lib
|
||||
OPENAL_PATH ?= $(shell brew --prefix openal-soft)
|
||||
release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.dylib"' -I$(OPENAL_PATH)/include
|
||||
release/quake2 : LDFLAGS += -L$(OPENAL_PATH)/lib -rpath $(OPENAL_PATH)/lib
|
||||
else
|
||||
release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1"'
|
||||
endif
|
||||
|
|
|
@ -73,6 +73,7 @@ SET(SDL2_SEARCH_PATHS
|
|||
/usr/local
|
||||
/usr
|
||||
/sw # Fink
|
||||
/opt/homebrew # Homebrew
|
||||
/opt/local # DarwinPorts
|
||||
/opt/csw # Blastwave
|
||||
/opt
|
||||
|
|
Loading…
Reference in a new issue