summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay San <[email protected]>2017-12-20 13:07:26 +0100
committerRay San <[email protected]>2017-12-20 13:07:26 +0100
commite672c0f925994ecdca3c1d6fe95b062f4c101558 (patch)
tree5492c8ca3f5cf8d27c0032e97de3fb183ad601f9 /examples
parentdd54fad1c86964f443082b757e5c14f0e307af18 (diff)
downloadraylib.com-e672c0f925994ecdca3c1d6fe95b062f4c101558.tar.gz
raylib.com-e672c0f925994ecdca3c1d6fe95b062f4c101558.zip
Reviewed to remove OpenAL Soft
Diffstat (limited to 'examples')
-rw-r--r--examples/web/Makefile30
1 files changed, 9 insertions, 21 deletions
diff --git a/examples/web/Makefile b/examples/web/Makefile
index 4f09a16..8a73423 100644
--- a/examples/web/Makefile
+++ b/examples/web/Makefile
@@ -26,17 +26,16 @@
# Define required raylib variables
# WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop()
PLATFORM ?= PLATFORM_DESKTOP
-RAYLIB_PATH ?= C:/GitHub/raylib
+RAYLIB_PATH = C:/GitHub/raylib
PROJECT_NAME ?= raylib_example
ifeq ($(PLATFORM),PLATFORM_RPI)
RAYLIB_PATH ?= /home/pi/raylib
endif
-# Library type used for raylib and OpenAL Soft: STATIC (.a) or SHARED (.so/.dll)
+# Library type used for raylib: STATIC (.a) or SHARED (.so/.dll)
# NOTE: Libraries should be provided in the selected form
RAYLIB_LIBTYPE ?= STATIC
-OPENAL_LIBTYPE ?= STATIC
# On PLATFORM_WEB force OpenAL Soft shared library
ifeq ($(PLATFORM),PLATFORM_WEB)
@@ -137,7 +136,7 @@ endif
# -fgnu89-inline declaring inline functions support (GCC optimized)
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
-CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces
+CFLAGS += -O2 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces
# Additional flags for compiler (if desired)
#CFLAGS += -Wextra -Wmissing-prototypes -Wstrict-prototypes
@@ -187,37 +186,26 @@ endif
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),WINDOWS)
# Libraries for Windows desktop compiling
- # NOTE: GLFW3 and OpenAL Soft libraries should be installed
- LDLIBS = -lraylib -lglfw3 -lopengl32 -lgdi32
-
- # Define required flags and libs for OpenAL Soft STATIC/SHARED usage
- # NOTE: Flag only required for raylib Win32 SHARED library building
- ifeq ($(OPENAL_LIBTYPE),STATIC)
- LDLIBS += -lopenal32 -lwinmm
- CFLAGS += -DAL_LIBTYPE_STATIC -Wl,-allow-multiple-definition
- else
- LDLIBS += -lopenal32dll
- endif
+ LDLIBS = -lraylib -lopengl32 -lgdi32
PHYSAC_LIBS = -static -lpthread
endif
ifeq ($(PLATFORM_OS),LINUX)
# Libraries for Debian GNU/Linux desktop compiling
- # NOTE: Required packages: libglfw3-dev libopenal-dev libegl1-mesa-dev
- LDLIBS = -lraylib -lglfw3 -lGL -lopenal -lm -lpthread -ldl
+ # NOTE: Required packages: libegl1-mesa-dev
+ LDLIBS = -lraylib -lGL -lm -lpthread -ldl
# On XWindow requires also below libraries
LDLIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
endif
ifeq ($(PLATFORM_OS),OSX)
# Libraries for OSX 10.9 desktop compiling
- # NOTE: Required packages: libglfw3-dev libopenal-dev libegl1-mesa-dev
- LDLIBS = -lraylib -lglfw -framework OpenGL -framework OpenAL -framework Cocoa
+ # NOTE: Required packages: libopenal-dev libegl1-mesa-dev
+ LDLIBS = -lraylib -framework OpenGL -framework OpenAL -framework Cocoa
endif
endif
ifeq ($(PLATFORM),PLATFORM_RPI)
# Libraries for Raspberry Pi compiling
- # NOTE: Required packages: libopenal1
- LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lbcm_host -lopenal
+ LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
# Libraries for web (HTML5) compiling