mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-11-16 07:47:57 +01:00
Fix issue with Makefile on MacOS where uname -o is called causing make to error out
This commit is contained in:
parent
a9d2548236
commit
c509bdf7dc
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -1,7 +1,6 @@
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
EMCC ?= emcc
|
EMCC ?= emcc
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
UNAME_O := $(shell uname -o)
|
|
||||||
RENDERER ?= GL
|
RENDERER ?= GL
|
||||||
USE_GLX ?= false
|
USE_GLX ?= false
|
||||||
DEBUG ?= false
|
DEBUG ?= false
|
||||||
|
@ -38,8 +37,9 @@ endif
|
||||||
# macOS ------------------------------------------------------------------------
|
# macOS ------------------------------------------------------------------------
|
||||||
|
|
||||||
ifeq ($(UNAME_S), Darwin)
|
ifeq ($(UNAME_S), Darwin)
|
||||||
|
BREW_HOME := $(shell brew --prefix)
|
||||||
C_FLAGS := $(C_FLAGS) -x objective-c -I/opt/homebrew/include -D_THREAD_SAFE -w
|
C_FLAGS := $(C_FLAGS) -x objective-c -I/opt/homebrew/include -D_THREAD_SAFE -w
|
||||||
L_FLAGS := $(L_FLAGS) -L/opt/homebrew/lib -framework Foundation
|
L_FLAGS := $(L_FLAGS) -L$(BREW_HOME)/lib -framework Foundation
|
||||||
|
|
||||||
ifeq ($(RENDERER), GL)
|
ifeq ($(RENDERER), GL)
|
||||||
L_FLAGS := $(L_FLAGS) -lGLEW -GLU -framework OpenGL
|
L_FLAGS := $(L_FLAGS) -lGLEW -GLU -framework OpenGL
|
||||||
|
@ -68,7 +68,7 @@ else ifeq ($(UNAME_S), Linux)
|
||||||
|
|
||||||
|
|
||||||
# Windows MSYS ------------------------------------------------------------------
|
# Windows MSYS ------------------------------------------------------------------
|
||||||
else ifeq ($(UNAME_O), Msys)
|
else ifeq ($(shell uname -o), Msys)
|
||||||
ifeq ($(RENDERER), GL)
|
ifeq ($(RENDERER), GL)
|
||||||
L_FLAGS := $(L_FLAGS) -lglew32 -lopengl32
|
L_FLAGS := $(L_FLAGS) -lglew32 -lopengl32
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue