summaryrefslogtreecommitdiffhomepage
path: root/examples/Makefile
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
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')
-rw-r--r--examples/Makefile50
1 files changed, 1 insertions, 49 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 4ba4f172..338fe168 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -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_DESKTOP
# Define required raylib variables
@@ -58,15 +58,6 @@ BUILD_WEB_HEAP_SIZE ?= 134217728
BUILD_WEB_RESOURCES ?= TRUE
BUILD_WEB_RESOURCES_PATH ?= $(dir $<)resources@resources
-# 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!
@@ -95,12 +86,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)
@@ -118,9 +103,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
@@ -154,13 +136,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
@@ -231,9 +206,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
@@ -252,11 +224,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
@@ -328,9 +295,6 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
# logic to a self contained function: UpdateDrawFrame(), check core_basic_window_web.c for reference.
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>
@@ -381,14 +345,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)
@@ -593,10 +549,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