mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-19 15:40:53 +00:00
Fix OSX build
This commit is contained in:
parent
2a3368481d
commit
cf7004ffb2
4 changed files with 8 additions and 7 deletions
7
Makefile
7
Makefile
|
@ -414,14 +414,15 @@ ifeq ($(PLATFORM),darwin)
|
||||||
RENDERER_LIBS=
|
RENDERER_LIBS=
|
||||||
OPTIMIZEVM=
|
OPTIMIZEVM=
|
||||||
|
|
||||||
BASE_CFLAGS = -Wall -Wimplicit -Wstrict-prototypes
|
BASE_CFLAGS = -Wall -Wimplicit -Wstrict-prototypes -mmacosx-version-min=10.5 \
|
||||||
|
-DMAC_OS_X_VERSION_MIN_REQUIRED=1050
|
||||||
|
|
||||||
ifeq ($(ARCH),ppc)
|
ifeq ($(ARCH),ppc)
|
||||||
BASE_CFLAGS += -arch ppc -faltivec -mmacosx-version-min=10.2
|
BASE_CFLAGS += -arch ppc -faltivec
|
||||||
OPTIMIZEVM += -O3
|
OPTIMIZEVM += -O3
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),ppc64)
|
ifeq ($(ARCH),ppc64)
|
||||||
BASE_CFLAGS += -arch ppc64 -faltivec -mmacosx-version-min=10.2
|
BASE_CFLAGS += -arch ppc64 -faltivec
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),x86)
|
ifeq ($(ARCH),x86)
|
||||||
OPTIMIZEVM += -march=prescott -mfpmath=sse
|
OPTIMIZEVM += -march=prescott -mfpmath=sse
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
# error "OPUS_BUILD _MUST_ be defined to build Opus. This probably means you need other defines as well, as in a config.h. See the included build files for details."
|
# error "OPUS_BUILD _MUST_ be defined to build Opus. This probably means you need other defines as well, as in a config.h. See the included build files for details."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__OPTIMIZE__)
|
#if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__OPTIMIZE__) && !defined(__APPLE__)
|
||||||
# pragma message "You appear to be compiling without optimization, if so opus will be very slow."
|
# pragma message "You appear to be compiling without optimization, if so opus will be very slow."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -381,8 +381,8 @@ extern void (APIENTRYP qglUnlockArraysEXT) (void);
|
||||||
extern void (APIENTRY * qglDrawRangeElementsEXT) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
|
extern void (APIENTRY * qglDrawRangeElementsEXT) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
|
||||||
|
|
||||||
// GL_EXT_multi_draw_arrays
|
// GL_EXT_multi_draw_arrays
|
||||||
void (APIENTRY * qglMultiDrawArraysEXT) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
|
extern void (APIENTRY * qglMultiDrawArraysEXT) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
|
||||||
extern void (APIENTRY * qglMultiDrawElementsEXT) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
|
extern void (APIENTRY * qglMultiDrawElementsEXT) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
|
||||||
|
|
||||||
// GL_ARB_shading_language_100
|
// GL_ARB_shading_language_100
|
||||||
#ifndef GL_ARB_shading_language_100
|
#ifndef GL_ARB_shading_language_100
|
||||||
|
|
|
@ -34,7 +34,7 @@ void (APIENTRY * qglDrawRangeElementsEXT) (GLenum mode, GLuint start,
|
||||||
|
|
||||||
// GL_EXT_multi_draw_arrays
|
// GL_EXT_multi_draw_arrays
|
||||||
void (APIENTRY * qglMultiDrawArraysEXT) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
|
void (APIENTRY * qglMultiDrawArraysEXT) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
|
||||||
void (APIENTRY * qglMultiDrawElementsEXT) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
|
void (APIENTRY * qglMultiDrawElementsEXT) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
|
||||||
|
|
||||||
// GL_ARB_vertex_shader
|
// GL_ARB_vertex_shader
|
||||||
void (APIENTRY * qglBindAttribLocationARB) (GLhandleARB programObj, GLuint index, const GLcharARB * name);
|
void (APIENTRY * qglBindAttribLocationARB) (GLhandleARB programObj, GLuint index, const GLcharARB * name);
|
||||||
|
|
Loading…
Reference in a new issue