summaryrefslogtreecommitdiffhomepage
path: root/examples/Makefile.Web
diff options
context:
space:
mode:
authorMichaelFiber <[email protected]>2023-09-07 11:42:28 -0400
committerGitHub <[email protected]>2023-09-07 17:42:28 +0200
commit18e9784c6d2f05ea82d5be0b86913b870e4fcf88 (patch)
tree6b15d827857472a4fbc9bf2c00be8bebbf25dba5 /examples/Makefile.Web
parent8cf76ec113a049d60aa5d221543d35b8ddf25dcc (diff)
downloadraylib-18e9784c6d2f05ea82d5be0b86913b870e4fcf88.tar.gz
raylib-18e9784c6d2f05ea82d5be0b86913b870e4fcf88.zip
Remove PLATFORM_RPI (#3232)
* Remove PLATFORM_RPI * remove build artifacts --------- Co-authored-by: MichaelFiber <[email protected]> Co-authored-by: Ray <[email protected]>
Diffstat (limited to 'examples/Makefile.Web')
-rw-r--r--examples/Makefile.Web50
1 files changed, 1 insertions, 49 deletions
diff --git a/examples/Makefile.Web b/examples/Makefile.Web
index ccb4550f..518fab91 100644
--- a/examples/Makefile.Web
+++ b/examples/Makefile.Web
@@ -25,7 +25,7 @@
# Define required environment variables
#------------------------------------------------------------------------------------------------
-# Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
+# Define target platform: PLATFORM_DESKTOP, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
PLATFORM ?= PLATFORM_WEB
# Define required raylib variables
@@ -51,15 +51,6 @@ USE_EXTERNAL_GLFW ?= FALSE
# NOTE: This variable is only used for PLATFORM_OS: LINUX
USE_WAYLAND_DISPLAY ?= FALSE
-# Use cross-compiler for PLATFORM_RPI
-ifeq ($(PLATFORM),PLATFORM_RPI)
- USE_RPI_CROSS_COMPILER ?= FALSE
- ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
- RPI_TOOLCHAIN ?= C:/SysGCC/Raspberry
- RPI_TOOLCHAIN_SYSROOT ?= $(RPI_TOOLCHAIN)/arm-linux-gnueabihf/sysroot
- endif
-endif
-
# Determine PLATFORM_OS in case PLATFORM_DESKTOP or PLATFORM_WEB selected
ifeq ($(PLATFORM),$(filter $(PLATFORM),PLATFORM_DESKTOP PLATFORM_WEB))
# No uname.exe on MinGW!, but OS=Windows_NT on Windows!
@@ -88,12 +79,6 @@ ifeq ($(PLATFORM),$(filter $(PLATFORM),PLATFORM_DESKTOP PLATFORM_WEB))
endif
endif
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- UNAMEOS = $(shell uname)
- ifeq ($(UNAMEOS),Linux)
- PLATFORM_OS = LINUX
- endif
-endif
ifeq ($(PLATFORM),PLATFORM_DRM)
UNAMEOS = $(shell uname)
ifeq ($(UNAMEOS),Linux)
@@ -111,9 +96,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
endif
# Default path for raylib on Raspberry Pi
-ifeq ($(PLATFORM),PLATFORM_RPI)
- RAYLIB_PATH ?= /home/pi/raylib
-endif
ifeq ($(PLATFORM),PLATFORM_DRM)
RAYLIB_PATH ?= /home/pi/raylib
endif
@@ -147,13 +129,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
CC = clang
endif
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
- # Define RPI cross-compiler
- #CC = armv6j-hardfloat-linux-gnueabi-gcc
- CC = $(RPI_TOOLCHAIN)/bin/arm-linux-gnueabihf-gcc
- endif
-endif
ifeq ($(PLATFORM),PLATFORM_WEB)
# HTML5 emscripten compiler
# WARNING: To compile to HTML5, code must be redesigned
@@ -224,9 +199,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
endif
endif
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- CFLAGS += -std=gnu99
-endif
ifeq ($(PLATFORM),PLATFORM_DRM)
CFLAGS += -std=gnu99 -DEGL_NO_X11
endif
@@ -245,11 +217,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
INCLUDE_PATHS += -I$(RAYLIB_INCLUDE_PATH)
endif
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include
- INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include/interface/vmcs_host/linux
- INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include/interface/vcos/pthreads
-endif
ifeq ($(PLATFORM),PLATFORM_DRM)
INCLUDE_PATHS += -I/usr/include/libdrm
endif
@@ -304,9 +271,6 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
LDFLAGS += --shell-file $(RAYLIB_PATH)/src/shell.html
EXT = .html
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- LDFLAGS += -L$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/lib
-endif
# Define libraries required on linking: LDLIBS
# NOTE: To link libraries (lib<name>.so or lib<name>.a), use -l<name>
@@ -357,14 +321,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
LDLIBS += -lglfw
endif
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- # Libraries for Raspberry Pi compiling
- # NOTE: Required packages: libasound2-dev (ALSA)
- LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl -latomic
- ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
- LDLIBS += -lvchiq_arm -lvcos
- endif
-endif
ifeq ($(PLATFORM),PLATFORM_DRM)
# Libraries for DRM compiling
# NOTE: Required packages: libasound2-dev (ALSA)
@@ -1067,10 +1023,6 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
rm -f *.o
endif
endif
-ifeq ($(PLATFORM),PLATFORM_RPI)
- find . -type f -executable -delete
- rm -fv *.o
-endif
ifeq ($(PLATFORM),PLATFORM_DRM)
find . -type f -executable -delete
rm -fv *.o