Review CFLAGS for multiple platforms
This commit is contained in:
parent
34db515acb
commit
c5377f4e05
14
src/makefile
14
src/makefile
@ -47,7 +47,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
|
|||||||
# define raylib graphics api to use (on RPI, OpenGL ES 2.0 must be used)
|
# define raylib graphics api to use (on RPI, OpenGL ES 2.0 must be used)
|
||||||
GRAPHICS = GRAPHICS_API_OPENGL_ES2
|
GRAPHICS = GRAPHICS_API_OPENGL_ES2
|
||||||
else
|
else
|
||||||
# define raylib graphics api to use (on Windows desktop, OpenGL 1.1 by default)
|
# define raylib graphics api to use (OpenGL 1.1 by default)
|
||||||
GRAPHICS ?= GRAPHICS_API_OPENGL_11
|
GRAPHICS ?= GRAPHICS_API_OPENGL_11
|
||||||
#GRAPHICS = GRAPHICS_API_OPENGL_33 # Uncomment to use OpenGL 3.3
|
#GRAPHICS = GRAPHICS_API_OPENGL_33 # Uncomment to use OpenGL 3.3
|
||||||
endif
|
endif
|
||||||
@ -67,14 +67,12 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# define compiler flags:
|
# define compiler flags:
|
||||||
# -O2 defines optimization level
|
# -O1 defines optimization level
|
||||||
# -Wall turns on most, but not all, compiler warnings
|
# -Wall turns on most, but not all, compiler warnings
|
||||||
# -std=c99 use standard C from 1999 revision
|
# -std=c99 defines C language mode (standard C from 1999 revision)
|
||||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
# -std=gnu99 defines C language mode (GNU C from 1999 revision)
|
||||||
CFLAGS = -O1 -Wall -std=gnu99 -fgnu89-inline
|
# -fgnu89-inline declaring inline functions support (GCC optimized, faster)
|
||||||
else
|
CFLAGS = -O1 -Wall -std=gnu99 -fgnu89-inline
|
||||||
CFLAGS = -O1 -Wall -std=c99
|
|
||||||
endif
|
|
||||||
|
|
||||||
#CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes
|
#CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user