aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRDR8 <rdr8@protonmail.com>2017-03-29 12:59:46 -0500
committerRDR8 <rdr8@protonmail.com>2017-03-29 12:59:46 -0500
commit4889f240fe1a237f549a3efb82c989e97842e1df (patch)
treedae097ac437b69b7f4ed4346af984e13f3387160
parent080a79f0b03bd40a4ac6dfb8c6f90a3a7379d7ad (diff)
downloadraylib-4889f240fe1a237f549a3efb82c989e97842e1df.tar.gz
raylib-4889f240fe1a237f549a3efb82c989e97842e1df.zip
Restore inadvertant changes to Makefiles
-rw-r--r--examples/Makefile11
-rw-r--r--src/Makefile7
2 files changed, 13 insertions, 5 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 22438f2f..70e56371 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -87,7 +87,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
endif
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
- CFLAGS = -O1 -Wall -std=c99 -s USE_GLFW=3 -s ASSERTIONS=1 --preload-file resources
+ CFLAGS = -O2 -Wall -std=c99 -s USE_GLFW=3 -s ASSERTIONS=1 --preload-file resources --profiling
#-s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing
#-s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB)
endif
@@ -122,7 +122,6 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES += -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
endif
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
- # add standard directories for GNU/Linux
ifeq ($(PLATFORM_OS),WINDOWS)
# external libraries headers
# GLFW3
@@ -130,6 +129,14 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# OpenAL Soft
INCLUDES += -I../src/external/openal_soft/include
endif
+ ifeq ($(PLATFORM_OS),LINUX)
+ # you may optionally create this directory and install raylib
+ # and related headers there. Edit ../src/Makefile appropriately.
+ INCLUDES += -I/usr/local/include/raylib
+ endif
+ ifeq ($(PLATFORM_OS),OSX)
+ # additional directories for MacOS
+ endif
endif
# define library paths containing required libs
diff --git a/src/Makefile b/src/Makefile
index 598a9be4..0931ef3c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -172,9 +172,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
endif
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
- CFLAGS = -O1 -Wall -std=c99 -s USE_GLFW=3 -s ASSERTIONS=1 --preload-file resources
- #-s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing
- #-s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB)
+ CFLAGS = -O2 -Wall -std=c99 -s USE_GLFW=3 -s ASSERTIONS=1 --profiling --preload-file resources
+ # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing
+ # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB)
+ # -s USE_PTHREADS=1 # multithreading support
endif
ifeq ($(PLATFORM),PLATFORM_RPI)
CFLAGS = -O1 -Wall -std=gnu99 -fgnu89-inline -Wno-missing-braces