mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Fix OSX build (with Makefile)
This commit is contained in:
parent
57fd192cda
commit
0d81fd6080
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -273,7 +273,7 @@ SDLLDFLAGS := -lSDL
|
|||
endif # SDL2
|
||||
else ifeq ($(OSTYPE), Darwin)
|
||||
ifeq ($(WITH_SDL2),yes)
|
||||
SDLLDFLAGS := -lSDL2 -framework OpenGL -framework Cocoa
|
||||
SDLLDFLAGS := -lSDL2
|
||||
else # not SDL2
|
||||
SDLLDFLAGS := -lSDL -framework OpenGL -framework Cocoa
|
||||
endif # SDL2
|
||||
|
@ -556,7 +556,7 @@ ifeq ($(WITH_SDL2),yes)
|
|||
release/ref_gl.dylib : CFLAGS += -DSDL2
|
||||
endif
|
||||
|
||||
release/ref_gl.dylib : LDFLAGS += -shared
|
||||
release/ref_gl.dylib : LDFLAGS += -shared -framework OpenGL
|
||||
|
||||
else # not Windows or Darwin
|
||||
|
||||
|
@ -607,6 +607,8 @@ ifeq ($(WITH_SDL2),yes)
|
|||
release/ref_gl3.dylib : CFLAGS += -DSDL2
|
||||
endif
|
||||
|
||||
release/ref_gl3.dylib : LDFLAGS += -shared
|
||||
|
||||
else # not Windows or Darwin
|
||||
|
||||
ref_gl3:
|
||||
|
|
Loading…
Reference in a new issue