Makefile.Web 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  1. #**************************************************************************************************
  2. #
  3. # raylib makefile for Desktop platforms, Raspberry Pi, Android and HTML5
  4. #
  5. # Copyright (c) 2013-2023 Ramon Santamaria (@raysan5)
  6. #
  7. # This software is provided "as-is", without any express or implied warranty. In no event
  8. # will the authors be held liable for any damages arising from the use of this software.
  9. #
  10. # Permission is granted to anyone to use this software for any purpose, including commercial
  11. # applications, and to alter it and redistribute it freely, subject to the following restrictions:
  12. #
  13. # 1. The origin of this software must not be misrepresented; you must not claim that you
  14. # wrote the original software. If you use this software in a product, an acknowledgment
  15. # in the product documentation would be appreciated but is not required.
  16. #
  17. # 2. Altered source versions must be plainly marked as such, and must not be misrepresented
  18. # as being the original software.
  19. #
  20. # 3. This notice may not be removed or altered from any source distribution.
  21. #
  22. #**************************************************************************************************
  23. .PHONY: all clean
  24. # Define required environment variables
  25. #------------------------------------------------------------------------------------------------
  26. # Define target platform: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_DRM, PLATFORM_ANDROID, PLATFORM_WEB
  27. PLATFORM ?= PLATFORM_WEB
  28. # Define required raylib variables
  29. PROJECT_NAME ?= raylib_examples
  30. RAYLIB_VERSION ?= 4.5.0
  31. RAYLIB_PATH ?= ..
  32. # Locations of raylib.h and libraylib.a/libraylib.so
  33. # NOTE: Those variables are only used for PLATFORM_OS: LINUX, BSD
  34. RAYLIB_INCLUDE_PATH ?= /usr/local/include
  35. RAYLIB_LIB_PATH ?= /usr/local/lib
  36. # Library type compilation: STATIC (.a) or SHARED (.so/.dll)
  37. RAYLIB_LIBTYPE ?= STATIC
  38. # Build mode for project: DEBUG or RELEASE
  39. BUILD_MODE ?= RELEASE
  40. # Use external GLFW library instead of rglfw module
  41. USE_EXTERNAL_GLFW ?= FALSE
  42. # Use Wayland display server protocol on Linux desktop (by default it uses X11 windowing system)
  43. # NOTE: This variable is only used for PLATFORM_OS: LINUX
  44. USE_WAYLAND_DISPLAY ?= FALSE
  45. # Use cross-compiler for PLATFORM_RPI
  46. ifeq ($(PLATFORM),PLATFORM_RPI)
  47. USE_RPI_CROSS_COMPILER ?= FALSE
  48. ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
  49. RPI_TOOLCHAIN ?= C:/SysGCC/Raspberry
  50. RPI_TOOLCHAIN_SYSROOT ?= $(RPI_TOOLCHAIN)/arm-linux-gnueabihf/sysroot
  51. endif
  52. endif
  53. # Determine PLATFORM_OS in case PLATFORM_DESKTOP or PLATFORM_WEB selected
  54. ifeq ($(PLATFORM),$(filter $(PLATFORM),PLATFORM_DESKTOP PLATFORM_WEB))
  55. # No uname.exe on MinGW!, but OS=Windows_NT on Windows!
  56. # ifeq ($(UNAME),Msys) -> Windows
  57. ifeq ($(OS),Windows_NT)
  58. PLATFORM_OS = WINDOWS
  59. else
  60. UNAMEOS = $(shell uname)
  61. ifeq ($(UNAMEOS),Linux)
  62. PLATFORM_OS = LINUX
  63. endif
  64. ifeq ($(UNAMEOS),FreeBSD)
  65. PLATFORM_OS = BSD
  66. endif
  67. ifeq ($(UNAMEOS),OpenBSD)
  68. PLATFORM_OS = BSD
  69. endif
  70. ifeq ($(UNAMEOS),NetBSD)
  71. PLATFORM_OS = BSD
  72. endif
  73. ifeq ($(UNAMEOS),DragonFly)
  74. PLATFORM_OS = BSD
  75. endif
  76. ifeq ($(UNAMEOS),Darwin)
  77. PLATFORM_OS = OSX
  78. endif
  79. endif
  80. endif
  81. ifeq ($(PLATFORM),PLATFORM_RPI)
  82. UNAMEOS = $(shell uname)
  83. ifeq ($(UNAMEOS),Linux)
  84. PLATFORM_OS = LINUX
  85. endif
  86. endif
  87. ifeq ($(PLATFORM),PLATFORM_DRM)
  88. UNAMEOS = $(shell uname)
  89. ifeq ($(UNAMEOS),Linux)
  90. PLATFORM_OS = LINUX
  91. endif
  92. endif
  93. # RAYLIB_PATH adjustment for LINUX platform
  94. # TODO: Do we really need this?
  95. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  96. ifeq ($(PLATFORM_OS),LINUX)
  97. RAYLIB_PREFIX ?= ..
  98. RAYLIB_PATH = $(realpath $(RAYLIB_PREFIX))
  99. endif
  100. endif
  101. # Default path for raylib on Raspberry Pi
  102. ifeq ($(PLATFORM),PLATFORM_RPI)
  103. RAYLIB_PATH ?= /home/pi/raylib
  104. endif
  105. ifeq ($(PLATFORM),PLATFORM_DRM)
  106. RAYLIB_PATH ?= /home/pi/raylib
  107. endif
  108. # Define raylib release directory for compiled library
  109. RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
  110. ifeq ($(PLATFORM),PLATFORM_WEB)
  111. ifeq ($(PLATFORM_OS),WINDOWS)
  112. # Emscripten required variables
  113. EMSDK_PATH ?= C:/emsdk
  114. EMSCRIPTEN_PATH ?= $(EMSDK_PATH)/upstream/emscripten
  115. CLANG_PATH = $(EMSDK_PATH)/upstream/bin
  116. PYTHON_PATH = $(EMSDK_PATH)/python/3.9.2-1_64bit
  117. NODE_PATH = $(EMSDK_PATH)/node/14.15.5_64bit/bin
  118. export PATH = $(EMSDK_PATH);$(EMSCRIPTEN_PATH);$(CLANG_PATH);$(NODE_PATH);$(PYTHON_PATH):$$(PATH)
  119. endif
  120. endif
  121. # Define default C compiler: CC
  122. #------------------------------------------------------------------------------------------------
  123. CC = gcc
  124. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  125. ifeq ($(PLATFORM_OS),OSX)
  126. # OSX default compiler
  127. CC = clang
  128. endif
  129. ifeq ($(PLATFORM_OS),BSD)
  130. # FreeBSD, OpenBSD, NetBSD, DragonFly default compiler
  131. CC = clang
  132. endif
  133. endif
  134. ifeq ($(PLATFORM),PLATFORM_RPI)
  135. ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
  136. # Define RPI cross-compiler
  137. #CC = armv6j-hardfloat-linux-gnueabi-gcc
  138. CC = $(RPI_TOOLCHAIN)/bin/arm-linux-gnueabihf-gcc
  139. endif
  140. endif
  141. ifeq ($(PLATFORM),PLATFORM_WEB)
  142. # HTML5 emscripten compiler
  143. # WARNING: To compile to HTML5, code must be redesigned
  144. # to use emscripten.h and emscripten_set_main_loop()
  145. CC = emcc
  146. endif
  147. # Define default make program: MAKE
  148. #------------------------------------------------------------------------------------------------
  149. MAKE ?= make
  150. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  151. ifeq ($(PLATFORM_OS),WINDOWS)
  152. MAKE = mingw32-make
  153. endif
  154. endif
  155. ifeq ($(PLATFORM),PLATFORM_ANDROID)
  156. MAKE = mingw32-make
  157. endif
  158. ifeq ($(PLATFORM),PLATFORM_WEB)
  159. MAKE = mingw32-make
  160. endif
  161. # Define compiler flags: CFLAGS
  162. #------------------------------------------------------------------------------------------------
  163. # -O1 defines optimization level
  164. # -g include debug information on compilation
  165. # -s strip unnecessary data from build
  166. # -Wall turns on most, but not all, compiler warnings
  167. # -std=c99 defines C language mode (standard C from 1999 revision)
  168. # -std=gnu99 defines C language mode (GNU C from 1999 revision)
  169. # -Wno-missing-braces ignore invalid warning (GCC bug 53119)
  170. # -Wno-unused-value ignore unused return values of some functions (i.e. fread())
  171. # -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
  172. CFLAGS = -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces -Wunused-result
  173. ifeq ($(BUILD_MODE),DEBUG)
  174. CFLAGS += -g -D_DEBUG
  175. ifeq ($(PLATFORM),PLATFORM_WEB)
  176. CFLAGS += -s ASSERTIONS=1 --profiling
  177. endif
  178. else
  179. ifeq ($(PLATFORM),PLATFORM_WEB)
  180. ifeq ($(BUILD_WEB_ASYNCIFY),TRUE)
  181. CFLAGS += -O3
  182. else
  183. CFLAGS += -Os
  184. endif
  185. else
  186. CFLAGS += -s -O2
  187. endif
  188. endif
  189. # Additional flags for compiler (if desired)
  190. # -Wextra enables some extra warning flags that are not enabled by -Wall
  191. # -Wmissing-prototypes warn if a global function is defined without a previous prototype declaration
  192. # -Wstrict-prototypes warn if a function is declared or defined without specifying the argument types
  193. # -Werror=implicit-function-declaration catch function calls without prior declaration
  194. #CFLAGS += -Wextra -Wmissing-prototypes -Wstrict-prototypes
  195. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  196. ifeq ($(PLATFORM_OS),LINUX)
  197. ifeq ($(RAYLIB_LIBTYPE),STATIC)
  198. CFLAGS += -D_DEFAULT_SOURCE
  199. endif
  200. ifeq ($(RAYLIB_LIBTYPE),SHARED)
  201. # Explicitly enable runtime link to libraylib.so
  202. CFLAGS += -Wl,-rpath,$(RAYLIB_RELEASE_PATH)
  203. endif
  204. endif
  205. endif
  206. ifeq ($(PLATFORM),PLATFORM_RPI)
  207. CFLAGS += -std=gnu99
  208. endif
  209. ifeq ($(PLATFORM),PLATFORM_DRM)
  210. CFLAGS += -std=gnu99 -DEGL_NO_X11
  211. endif
  212. # Define include paths for required headers: INCLUDE_PATHS
  213. # NOTE: Some external/extras libraries could be required (stb, easings...)
  214. #------------------------------------------------------------------------------------------------
  215. INCLUDE_PATHS = -I. -I$(RAYLIB_PATH)/src -I$(RAYLIB_PATH)/src/external
  216. # Define additional directories containing required header files
  217. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  218. ifeq ($(PLATFORM_OS),BSD)
  219. INCLUDE_PATHS += -I$(RAYLIB_INCLUDE_PATH)
  220. endif
  221. ifeq ($(PLATFORM_OS),LINUX)
  222. INCLUDE_PATHS += -I$(RAYLIB_INCLUDE_PATH)
  223. endif
  224. endif
  225. ifeq ($(PLATFORM),PLATFORM_RPI)
  226. INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include
  227. INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include/interface/vmcs_host/linux
  228. INCLUDE_PATHS += -I$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/include/interface/vcos/pthreads
  229. endif
  230. ifeq ($(PLATFORM),PLATFORM_DRM)
  231. INCLUDE_PATHS += -I/usr/include/libdrm
  232. endif
  233. # Define library paths containing required libs: LDFLAGS
  234. #------------------------------------------------------------------------------------------------
  235. LDFLAGS = -L. -L$(RAYLIB_RELEASE_PATH) -L$(RAYLIB_PATH)/src
  236. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  237. ifeq ($(PLATFORM_OS),WINDOWS)
  238. # NOTE: The resource .rc file contains windows executable icon and properties
  239. LDFLAGS += $(RAYLIB_PATH)/src/raylib.rc.data
  240. # -Wl,--subsystem,windows hides the console window
  241. ifeq ($(BUILD_MODE), RELEASE)
  242. LDFLAGS += -Wl,--subsystem,windows
  243. endif
  244. endif
  245. ifeq ($(PLATFORM_OS),LINUX)
  246. LDFLAGS += -L$(RAYLIB_LIB_PATH)
  247. endif
  248. ifeq ($(PLATFORM_OS),BSD)
  249. LDFLAGS += -Lsrc -L$(RAYLIB_LIB_PATH)
  250. endif
  251. endif
  252. ifeq ($(PLATFORM),PLATFORM_WEB)
  253. # -Os # size optimization
  254. # -O2 # optimization level 2, if used, also set --memory-init-file 0
  255. # -s USE_GLFW=3 # Use glfw3 library (context/input management)
  256. # -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing -> WARNING: Audio buffers could FAIL!
  257. # -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB) (67108864 = 64MB)
  258. # -s USE_PTHREADS=1 # multithreading support
  259. # -s WASM=0 # disable Web Assembly, emitted by default
  260. # -s ASYNCIFY # lets synchronous C/C++ code interact with asynchronous JS
  261. # -s FORCE_FILESYSTEM=1 # force filesystem to load/save files data
  262. # -s ASSERTIONS=1 # enable runtime checks for common memory allocation errors (-O1 and above turn it off)
  263. # -s EXPORTED_RUNTIME_METHODS=ccall # require exporting some LEGACY_RUNTIME functions, ccall() is required by miniaudio
  264. # --profiling # include information for code profiling
  265. # --memory-init-file 0 # to avoid an external memory initialization code file (.mem)
  266. # --preload-file resources # specify a resources folder for data compilation
  267. # --source-map-base # allow debugging in browser with source map
  268. LDFLAGS += -s USE_GLFW=3 -s ASYNCIFY -s EXPORTED_RUNTIME_METHODS=ccall
  269. # NOTE: Simple raylib examples are compiled to be interpreter with asyncify, that way,
  270. # we can compile same code for ALL platforms with no change required, but, working on bigger
  271. # projects, code needs to be refactored to avoid a blocking while() loop, moving Update and Draw
  272. # logic to a self contained function: UpdateDrawFrame(), check core_basic_window_web.c for reference.
  273. # NOTE: Additional compilate flags for TOTAL_MEMORY, FORCE_FILESYSTEM and resources loading
  274. # are specified per-example for optimization
  275. # Define a custom shell .html and output extension
  276. LDFLAGS += --shell-file $(RAYLIB_PATH)/src/shell.html
  277. EXT = .html
  278. endif
  279. ifeq ($(PLATFORM),PLATFORM_RPI)
  280. LDFLAGS += -L$(RPI_TOOLCHAIN_SYSROOT)/opt/vc/lib
  281. endif
  282. # Define libraries required on linking: LDLIBS
  283. # NOTE: To link libraries (lib<name>.so or lib<name>.a), use -l<name>
  284. #------------------------------------------------------------------------------------------------
  285. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  286. ifeq ($(PLATFORM_OS),WINDOWS)
  287. # Libraries for Windows desktop compilation
  288. # NOTE: WinMM library required to set high-res timer resolution
  289. LDLIBS = -lraylib -lopengl32 -lgdi32 -lwinmm
  290. endif
  291. ifeq ($(PLATFORM_OS),LINUX)
  292. # Libraries for Debian GNU/Linux desktop compiling
  293. # NOTE: Required packages: libegl1-mesa-dev
  294. LDLIBS = -lraylib -lGL -lm -lpthread -ldl -lrt
  295. # On X11 requires also below libraries
  296. LDLIBS += -lX11
  297. # NOTE: It seems additional libraries are not required any more, latest GLFW just dlopen them
  298. #LDLIBS += -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
  299. # On Wayland windowing system, additional libraries requires
  300. ifeq ($(USE_WAYLAND_DISPLAY),TRUE)
  301. LDLIBS += -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
  302. endif
  303. # Explicit link to libc
  304. ifeq ($(RAYLIB_LIBTYPE),SHARED)
  305. LDLIBS += -lc
  306. endif
  307. # NOTE: On ARM 32bit arch, miniaudio requires atomics library
  308. LDLIBS += -latomic
  309. endif
  310. ifeq ($(PLATFORM_OS),OSX)
  311. # Libraries for OSX 10.9 desktop compiling
  312. # NOTE: Required packages: libopenal-dev libegl1-mesa-dev
  313. LDLIBS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreAudio -framework CoreVideo
  314. endif
  315. ifeq ($(PLATFORM_OS),BSD)
  316. # Libraries for FreeBSD, OpenBSD, NetBSD, DragonFly desktop compiling
  317. # NOTE: Required packages: mesa-libs
  318. LDLIBS = -lraylib -lGL -lpthread -lm
  319. # On XWindow requires also below libraries
  320. LDLIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
  321. endif
  322. ifeq ($(USE_EXTERNAL_GLFW),TRUE)
  323. # NOTE: It could require additional packages installed: libglfw3-dev
  324. LDLIBS += -lglfw
  325. endif
  326. endif
  327. ifeq ($(PLATFORM),PLATFORM_RPI)
  328. # Libraries for Raspberry Pi compiling
  329. # NOTE: Required packages: libasound2-dev (ALSA)
  330. LDLIBS = -lraylib -lbrcmGLESv2 -lbrcmEGL -lpthread -lrt -lm -lbcm_host -ldl -latomic
  331. ifeq ($(USE_RPI_CROSS_COMPILER),TRUE)
  332. LDLIBS += -lvchiq_arm -lvcos
  333. endif
  334. endif
  335. ifeq ($(PLATFORM),PLATFORM_DRM)
  336. # Libraries for DRM compiling
  337. # NOTE: Required packages: libasound2-dev (ALSA)
  338. LDLIBS = -lraylib -lGLESv2 -lEGL -lpthread -lrt -lm -lgbm -ldrm -ldl -latomic
  339. endif
  340. ifeq ($(PLATFORM),PLATFORM_WEB)
  341. # Libraries for web (HTML5) compiling
  342. LDLIBS = $(RAYLIB_RELEASE_PATH)/libraylib.a
  343. endif
  344. # Define source code object files required
  345. #------------------------------------------------------------------------------------------------
  346. CORE = \
  347. core/core_basic_window \
  348. core/core_basic_screen_manager \
  349. core/core_input_keys \
  350. core/core_input_mouse \
  351. core/core_input_mouse_wheel \
  352. core/core_input_gamepad \
  353. core/core_input_multitouch \
  354. core/core_input_gestures \
  355. core/core_input_gestures_web \
  356. core/core_2d_camera \
  357. core/core_2d_camera_platformer \
  358. core/core_2d_camera_mouse_zoom \
  359. core/core_3d_camera_mode \
  360. core/core_3d_camera_free \
  361. core/core_3d_camera_first_person \
  362. core/core_3d_picking \
  363. core/core_world_screen \
  364. core/core_custom_logging \
  365. core/core_drop_files \
  366. core/core_random_values \
  367. core/core_scissor_test \
  368. core/core_storage_values \
  369. core/core_vr_simulator \
  370. core/core_window_flags \
  371. core/core_window_letterbox \
  372. core/core_window_should_close \
  373. core/core_split_screen \
  374. core/core_smooth_pixelperfect \
  375. core/core_custom_frame_control \
  376. core/core_loading_thread
  377. SHAPES = \
  378. shapes/shapes_basic_shapes \
  379. shapes/shapes_bouncing_ball \
  380. shapes/shapes_colors_palette \
  381. shapes/shapes_logo_raylib \
  382. shapes/shapes_logo_raylib_anim \
  383. shapes/shapes_rectangle_scaling \
  384. shapes/shapes_lines_bezier \
  385. shapes/shapes_collision_area \
  386. shapes/shapes_following_eyes \
  387. shapes/shapes_easings_ball_anim \
  388. shapes/shapes_easings_box_anim \
  389. shapes/shapes_easings_rectangle_array \
  390. shapes/shapes_draw_ring \
  391. shapes/shapes_draw_circle_sector \
  392. shapes/shapes_draw_rectangle_rounded \
  393. shapes/shapes_top_down_lights
  394. TEXTURES = \
  395. textures/textures_logo_raylib \
  396. textures/textures_mouse_painting \
  397. textures/textures_srcrec_dstrec \
  398. textures/textures_image_drawing \
  399. textures/textures_image_generation \
  400. textures/textures_image_loading \
  401. textures/textures_image_processing \
  402. textures/textures_image_text \
  403. textures/textures_to_image \
  404. textures/textures_raw_data \
  405. textures/textures_particles_blending \
  406. textures/textures_npatch_drawing \
  407. textures/textures_background_scrolling \
  408. textures/textures_sprite_anim \
  409. textures/textures_sprite_button \
  410. textures/textures_sprite_explosion \
  411. textures/textures_textured_curve \
  412. textures/textures_bunnymark \
  413. textures/textures_blend_modes \
  414. textures/textures_draw_tiled \
  415. textures/textures_polygon \
  416. textures/textures_gif_player \
  417. textures/textures_fog_of_war \
  418. textures/textures_svg_loading
  419. TEXT = \
  420. text/text_raylib_fonts \
  421. text/text_font_spritefont \
  422. text/text_font_loading \
  423. text/text_font_filters \
  424. text/text_font_sdf \
  425. text/text_format_text \
  426. text/text_input_box \
  427. text/text_writing_anim \
  428. text/text_rectangle_bounds \
  429. text/text_unicode \
  430. text/text_draw_3d \
  431. text/text_codepoints_loading
  432. MODELS = \
  433. models/models_animation \
  434. models/models_billboard \
  435. models/models_box_collisions \
  436. models/models_cubicmap \
  437. models/models_draw_cube_texture \
  438. models/models_first_person_maze \
  439. models/models_geometric_shapes \
  440. models/models_mesh_generation \
  441. models/models_mesh_picking \
  442. models/models_loading \
  443. models/models_loading_vox \
  444. models/models_loading_gltf \
  445. models/models_loading_m3d \
  446. models/models_orthographic_projection \
  447. models/models_rlgl_solar_system \
  448. models/models_skybox \
  449. models/models_yaw_pitch_roll \
  450. models/models_heightmap \
  451. models/models_waving_cubes
  452. SHADERS = \
  453. shaders/shaders_model_shader \
  454. shaders/shaders_shapes_textures \
  455. shaders/shaders_custom_uniform \
  456. shaders/shaders_postprocessing \
  457. shaders/shaders_palette_switch \
  458. shaders/shaders_raymarching \
  459. shaders/shaders_texture_drawing \
  460. shaders/shaders_texture_waves \
  461. shaders/shaders_texture_outline \
  462. shaders/shaders_julia_set \
  463. shaders/shaders_eratosthenes \
  464. shaders/shaders_basic_lighting \
  465. shaders/shaders_fog \
  466. shaders/shaders_simple_mask \
  467. shaders/shaders_spotlight \
  468. shaders/shaders_hot_reloading \
  469. shaders/shaders_lightmap \
  470. shaders/shaders_mesh_instancing \
  471. shaders/shaders_multi_sample2d \
  472. shaders/shaders_write_depth \
  473. shaders/shaders_hybrid_render
  474. AUDIO = \
  475. audio/audio_module_playing \
  476. audio/audio_music_stream \
  477. audio/audio_raw_stream \
  478. audio/audio_sound_loading \
  479. audio/audio_stream_effects \
  480. audio/audio_mixed_processor
  481. CURRENT_MAKEFILE = $(lastword $(MAKEFILE_LIST))
  482. # Define processes to execute
  483. #------------------------------------------------------------------------------------------------
  484. # Default target entry
  485. all: $(CORE) $(SHAPES) $(TEXT) $(TEXTURES) $(MODELS) $(SHADERS) $(AUDIO)
  486. core: $(CORE)
  487. shapes: $(SHAPES)
  488. textures: $(TEXTURES)
  489. text: $(TEXT)
  490. models: $(MODELS)
  491. shaders: $(SHADERS)
  492. audio: $(AUDIO)
  493. # Compile CORE examples
  494. core/core_basic_window: core/core_basic_window.c
  495. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  496. core/core_basic_screen_manager: core/core_basic_screen_manager.c
  497. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  498. core/core_input_keys: core/core_input_keys.c
  499. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  500. core/core_input_mouse: core/core_input_mouse.c
  501. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  502. core/core_input_mouse_wheel: core/core_input_mouse_wheel.c
  503. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  504. core/core_input_gamepad: core/core_input_gamepad.c
  505. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  506. --preload-file core/resources/ps3.png@resources/ps3.png \
  507. --preload-file core/resources/xbox.png@resources/xbox.png
  508. core/core_input_multitouch: core/core_input_multitouch.c
  509. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  510. core/core_input_gestures: core/core_input_gestures.c
  511. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  512. core/core_input_gestures_web: core/core_input_gestures_web.c
  513. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  514. core/core_2d_camera: core/core_2d_camera.c
  515. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  516. core/core_2d_camera_platformer: core/core_2d_camera_platformer.c
  517. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  518. core/core_2d_camera_mouse_zoom: core/core_2d_camera_mouse_zoom.c
  519. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  520. core/core_3d_camera_mode: core/core_3d_camera_mode.c
  521. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  522. core/core_3d_camera_free: core/core_3d_camera_free.c
  523. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  524. core/core_3d_camera_first_person: core/core_3d_camera_first_person.c
  525. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  526. core/core_3d_picking: core/core_3d_picking.c
  527. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  528. core/core_world_screen: core/core_world_screen.c
  529. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  530. core/core_custom_logging: core/core_custom_logging.c
  531. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  532. core/core_window_letterbox: core/core_window_letterbox.c
  533. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  534. core/core_drop_files: core/core_drop_files.c
  535. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 -s FORCE_FILESYSTEM=1
  536. core/core_random_values: core/core_random_values.c
  537. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  538. core/core_scissor_test: core/core_scissor_test.c
  539. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  540. core/core_storage_values: core/core_storage_values.c
  541. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s FORCE_FILESYSTEM=1
  542. core/core_vr_simulator: core/core_vr_simulator.c
  543. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  544. --preload-file core/resources/distortion100.fs@resources/distortion100.fs
  545. core/core_window_flags: core/core_window_flags.c
  546. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  547. core/core_split_screen: core/core_split_screen.c
  548. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  549. core/core_smooth_pixelperfect: core/core_smooth_pixelperfect.c
  550. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  551. core/core_custom_frame_control: core/core_custom_frame_control.c
  552. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  553. core/core_window_should_close: core/core_window_should_close.c
  554. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  555. # NOTE: To use multi-threading raylib must be compiled with multi-theading support (-s USE_PTHREADS=1)
  556. # WARNING: For security reasons multi-threading is not supported on browsers, it requires cross-origin isolation (Oct.2021)
  557. # WARNING: It requires raylib to be compiled using -pthread, so atomic operations and thread-local data (if any)
  558. # in its source were transformed to non-atomic operations and non-thread-local data
  559. core/core_loading_thread: core/core_loading_thread.c
  560. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s USE_PTHREADS=1
  561. # Compile SHAPES examples
  562. shapes/shapes_basic_shapes: shapes/shapes_basic_shapes.c
  563. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  564. shapes/shapes_bouncing_ball: shapes/shapes_bouncing_ball.c
  565. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  566. shapes/shapes_colors_palette: shapes/shapes_colors_palette.c
  567. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  568. shapes/shapes_logo_raylib: shapes/shapes_logo_raylib.c
  569. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  570. shapes/shapes_logo_raylib_anim: shapes/shapes_logo_raylib_anim.c
  571. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  572. shapes/shapes_rectangle_scaling: shapes/shapes_rectangle_scaling.c
  573. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  574. shapes/shapes_lines_bezier: shapes/shapes_lines_bezier.c
  575. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  576. shapes/shapes_collision_area: shapes/shapes_collision_area.c
  577. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  578. shapes/shapes_following_eyes: shapes/shapes_following_eyes.c
  579. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  580. shapes/shapes_easings_ball_anim: shapes/shapes_easings_ball_anim.c
  581. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  582. shapes/shapes_easings_box_anim: shapes/shapes_easings_box_anim.c
  583. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  584. shapes/shapes_easings_rectangle_array: shapes/shapes_easings_rectangle_array.c
  585. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  586. shapes/shapes_draw_ring: shapes/shapes_draw_ring.c
  587. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  588. shapes/shapes_draw_circle_sector: shapes/shapes_draw_circle_sector.c
  589. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  590. shapes/shapes_draw_rectangle_rounded: shapes/shapes_draw_rectangle_rounded.c
  591. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  592. shapes/shapes_top_down_lights: shapes/shapes_top_down_lights.c
  593. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  594. # Compile TEXTURES examples
  595. textures/textures_logo_raylib: textures/textures_logo_raylib.c
  596. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  597. --preload-file textures/resources/raylib_logo.png@resources/raylib_logo.png
  598. textures/textures_mouse_painting: textures/textures_mouse_painting.c
  599. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  600. textures/textures_sprite_anim: textures/textures_sprite_anim.c
  601. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  602. --preload-file textures/resources/scarfy.png@resources/scarfy.png
  603. textures/textures_srcrec_dstrec: textures/textures_srcrec_dstrec.c
  604. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  605. --preload-file textures/resources/scarfy.png@resources/scarfy.png
  606. textures/textures_image_loading: textures/textures_image_loading.c
  607. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  608. --preload-file textures/resources/raylib_logo.png@resources/raylib_logo.png
  609. textures/textures_image_drawing: textures/textures_image_drawing.c
  610. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  611. --preload-file textures/resources/custom_jupiter_crash.png@resources/custom_jupiter_crash.png \
  612. --preload-file textures/resources/parrots.png@resources/parrots.png \
  613. --preload-file textures/resources/cat.png@resources/cat.png
  614. textures/textures_image_generation: textures/textures_image_generation.c
  615. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864
  616. textures/textures_image_processing: textures/textures_image_processing.c
  617. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  618. --preload-file textures/resources/parrots.png@resources/parrots.png
  619. textures/textures_image_text: textures/textures_image_text.c
  620. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  621. --preload-file textures/resources/parrots.png@resources/parrots.png \
  622. --preload-file textures/resources/KAISG.ttf@resources/KAISG.ttf
  623. textures/textures_to_image: textures/textures_to_image.c
  624. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  625. --preload-file textures/resources/raylib_logo.png@resources/raylib_logo.png
  626. textures/textures_raw_data: textures/textures_raw_data.c
  627. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  628. --preload-file textures/resources/fudesumi.raw@resources/fudesumi.raw
  629. textures/textures_particles_blending: textures/textures_particles_blending.c
  630. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  631. --preload-file textures/resources/spark_flame.png@resources/spark_flame.png
  632. textures/textures_npatch_drawing: textures/textures_npatch_drawing.c
  633. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  634. --preload-file textures/resources/ninepatch_button.png@resources/ninepatch_button.png
  635. textures/textures_background_scrolling: textures/textures_background_scrolling.c
  636. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  637. --preload-file textures/resources/cyberpunk_street_background.png@resources/cyberpunk_street_background.png \
  638. --preload-file textures/resources/cyberpunk_street_midground.png@resources/cyberpunk_street_midground.png \
  639. --preload-file textures/resources/cyberpunk_street_foreground.png@resources/cyberpunk_street_foreground.png
  640. textures/textures_sprite_button: textures/textures_sprite_button.c
  641. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  642. --preload-file textures/resources/button.png@resources/button.png \
  643. --preload-file textures/resources/buttonfx.wav@resources/buttonfx.wav
  644. textures/textures_sprite_explosion: textures/textures_sprite_explosion.c
  645. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  646. --preload-file textures/resources/explosion.png@resources/explosion.png \
  647. --preload-file textures/resources/boom.wav@resources/boom.wav
  648. textures/textures_textured_curve: textures/textures_textured_curve.c
  649. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  650. --preload-file textures/resources/road.png@resources/road.png
  651. textures/textures_bunnymark: textures/textures_bunnymark.c
  652. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  653. --preload-file textures/resources/wabbit_alpha.png@resources/wabbit_alpha.png
  654. textures/textures_blend_modes: textures/textures_blend_modes.c
  655. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  656. --preload-file textures/resources/cyberpunk_street_background.png@resources/cyberpunk_street_background.png \
  657. --preload-file textures/resources/cyberpunk_street_foreground.png@resources/cyberpunk_street_foreground.png
  658. textures/textures_draw_tiled: textures/textures_draw_tiled.c
  659. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  660. --preload-file textures/resources/patterns.png@resources/patterns.png
  661. textures/textures_polygon: textures/textures_polygon.c
  662. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  663. --preload-file textures/resources/cat.png@resources/cat.png
  664. textures/textures_gif_player: textures/textures_gif_player.c
  665. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  666. --preload-file textures/resources/scarfy_run.gif@resources/scarfy_run.gif
  667. textures/textures_fog_of_war: textures/textures_fog_of_war.c
  668. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  669. # Compile TEXT examples
  670. text/text_raylib_fonts: text/text_raylib_fonts.c
  671. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  672. --preload-file text/resources/fonts/alagard.png@resources/fonts/alagard.png \
  673. --preload-file text/resources/fonts/pixelplay.png@resources/fonts/pixelplay.png \
  674. --preload-file text/resources/fonts/mecha.png@resources/fonts/mecha.png \
  675. --preload-file text/resources/fonts/setback.png@resources/fonts/setback.png \
  676. --preload-file text/resources/fonts/romulus.png@resources/fonts/romulus.png \
  677. --preload-file text/resources/fonts/pixantiqua.png@resources/fonts/pixantiqua.png \
  678. --preload-file text/resources/fonts/alpha_beta.png@resources/fonts/alpha_beta.png \
  679. --preload-file text/resources/fonts/jupiter_crash.png@resources/fonts/jupiter_crash.png
  680. text/text_font_spritefont: text/text_font_spritefont.c
  681. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  682. --preload-file text/resources/custom_mecha.png@resources/custom_mecha.png \
  683. --preload-file text/resources/custom_alagard.png@resources/custom_alagard.png \
  684. --preload-file text/resources/custom_jupiter_crash.png@resources/custom_jupiter_crash.png
  685. text/text_font_loading: text/text_font_loading.c
  686. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  687. --preload-file text/resources/pixantiqua.fnt@resources/pixantiqua.fnt \
  688. --preload-file text/resources/pixantiqua.png@resources/pixantiqua.png \
  689. --preload-file text/resources/pixantiqua.ttf@resources/pixantiqua.ttf
  690. text/text_font_filters: text/text_font_filters.c
  691. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  692. --preload-file text/resources/KAISG.ttf@resources/KAISG.ttf
  693. text/text_font_sdf: text/text_font_sdf.c
  694. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  695. --preload-file text/resources/anonymous_pro_bold.ttf@resources/anonymous_pro_bold.ttf \
  696. --preload-file text/resources/shaders/glsl100/sdf.fs@resources/shaders/glsl100/sdf.fs
  697. text/text_format_text: text/text_format_text.c
  698. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  699. text/text_input_box: text/text_input_box.c
  700. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  701. text/text_writing_anim: text/text_writing_anim.c
  702. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  703. text/text_rectangle_bounds: text/text_rectangle_bounds.c
  704. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  705. text/text_unicode: text/text_unicode.c
  706. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  707. --preload-file text/resources/dejavu.fnt@resources/dejavu.fnt \
  708. --preload-file text/resources/dejavu.png@resources/dejavu.png \
  709. --preload-file text/resources/noto_cjk.fnt@resources/noto_cjk.fnt \
  710. --preload-file text/resources/noto_cjk.png@resources/noto_cjk.png \
  711. --preload-file text/resources/symbola.fnt@resources/symbola.fnt \
  712. --preload-file text/resources/symbola.png@resources/symbola.png
  713. text/text_draw_3d: text/text_draw_3d.c
  714. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  715. --preload-file text/resources/shaders/glsl100/alpha_discard.fs@resources/shaders/glsl100/alpha_discard.fs
  716. text/text_codepoints_loading: text/text_codepoints_loading.c
  717. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  718. --preload-file text/resources/DotGothic16-Regular.ttf@resources/DotGothic16-Regular.ttf
  719. # Compile MODELS examples
  720. models/models_animation: models/models_animation.c
  721. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  722. --preload-file models/resources/models/iqm/guy.iqm@resources/models/iqm/guy.iqm \
  723. --preload-file models/resources/models/iqm/guytex.png@resources/models/iqm/guytex.png \
  724. --preload-file models/resources/models/iqm/guyanim.iqm@resources/models/iqm/guyanim.iqm
  725. models/models_billboard: models/models_billboard.c
  726. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  727. --preload-file models/resources/billboard.png@resources/billboard.png
  728. models/models_box_collisions: models/models_box_collisions.c
  729. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  730. models/models_cubicmap: models/models_cubicmap.c
  731. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  732. --preload-file models/resources/cubicmap.png@resources/cubicmap.png \
  733. --preload-file models/resources/cubicmap_atlas.png@resources/cubicmap_atlas.png
  734. models/models_draw_cube_texture: models/models_draw_cube_texture.c
  735. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  736. --preload-file models/resources/cubicmap_atlas.png@resources/cubicmap_atlas.png
  737. models/models_first_person_maze: models/models_first_person_maze.c
  738. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  739. --preload-file models/resources/cubicmap.png@resources/cubicmap.png \
  740. --preload-file models/resources/cubicmap_atlas.png@resources/cubicmap_atlas.png
  741. models/models_geometric_shapes: models/models_geometric_shapes.c
  742. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  743. models/models_mesh_generation: models/models_mesh_generation.c
  744. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  745. models/models_mesh_picking: models/models_mesh_picking.c
  746. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  747. --preload-file models/resources/models/obj/turret.obj@resources/models/obj/turret.obj \
  748. --preload-file models/resources/models/obj/turret_diffuse.png@resources/models/obj/turret_diffuse.png
  749. models/models_loading: models/models_loading.c
  750. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  751. --preload-file models/resources/models/obj/castle.obj@resources/models/obj/castle.obj \
  752. --preload-file models/resources/models/obj/castle_diffuse.png@resources/models/obj/castle_diffuse.png
  753. models/models_loading_vox: models/models_loading_vox.c
  754. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  755. --preload-file models/resources/models/vox/chr_knight.vox@resources/models/vox/chr_knight.vox \
  756. --preload-file models/resources/models/vox/chr_sword.vox@resources/models/vox/chr_sword.vox \
  757. --preload-file models/resources/models/vox/monu9.vox@resources/models/vox/monu9.vox
  758. models/models_loading_gltf: models/models_loading_gltf.c
  759. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  760. --preload-file models/resources/models/gltf/robot.glb@resources/models/gltf/robot.glb
  761. models/models_loading_m3d: models/models_loading_m3d.c
  762. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  763. --preload-file models/resources/models/m3d/cesium_man.m3d@resources/models/m3d/cesium_man.m3d
  764. models/models_orthographic_projection: models/models_orthographic_projection.c
  765. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  766. models/models_rlgl_solar_system: models/models_rlgl_solar_system.c
  767. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  768. models/models_skybox: models/models_skybox.c
  769. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 -s FORCE_FILESYSTEM=1 \
  770. --preload-file models/resources/dresden_square_2k.hdr@resources/dresden_square_2k.hdr \
  771. --preload-file models/resources/shaders/glsl100/skybox.vs@resources/shaders/glsl100/skybox.vs \
  772. --preload-file models/resources/shaders/glsl100/skybox.fs@resources/shaders/glsl100/skybox.fs \
  773. --preload-file models/resources/shaders/glsl100/cubemap.vs@resources/shaders/glsl100/cubemap.vs \
  774. --preload-file models/resources/shaders/glsl100/cubemap.fs@resources/shaders/glsl100/cubemap.fs
  775. models/models_yaw_pitch_roll: models/models_yaw_pitch_roll.c
  776. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  777. --preload-file models/resources/models/obj/plane.obj@resources/models/obj/plane.obj \
  778. --preload-file models/resources/models/obj/plane_diffuse.png@resources/models/obj/plane_diffuse.png
  779. models/models_heightmap: models/models_heightmap.c
  780. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  781. --preload-file models/resources/heightmap.png@resources/heightmap.png
  782. models/models_waving_cubes: models/models_waving_cubes.c
  783. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
  784. # Compile SHADER examples
  785. shaders/shaders_model_shader: shaders/shaders_model_shader.c
  786. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  787. --preload-file shaders/resources/models/watermill.obj@resources/models/watermill.obj \
  788. --preload-file shaders/resources/models/watermill_diffuse.png@resources/models/watermill_diffuse.png \
  789. --preload-file shaders/resources/shaders/glsl100/grayscale.fs@resources/shaders/glsl100/grayscale.fs
  790. shaders/shaders_shapes_textures: shaders/shaders_shapes_textures.c
  791. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  792. --preload-file shaders/resources/fudesumi.png@resources/fudesumi.png \
  793. --preload-file shaders/resources/shaders/glsl100/base.vs@resources/shaders/glsl100/base.vs \
  794. --preload-file shaders/resources/shaders/glsl100/grayscale.fs@resources/shaders/glsl100/grayscale.fs
  795. shaders/shaders_custom_uniform: shaders/shaders_custom_uniform.c
  796. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  797. --preload-file shaders/resources/models/barracks.obj@resources/models/barracks.obj \
  798. --preload-file shaders/resources/models/barracks_diffuse.png@resources/models/barracks_diffuse.png \
  799. --preload-file shaders/resources/shaders/glsl100/swirl.fs@resources/shaders/glsl100/swirl.fs
  800. shaders/shaders_postprocessing: shaders/shaders_postprocessing.c
  801. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  802. --preload-file shaders/resources/models/church.obj@resources/models/church.obj \
  803. --preload-file shaders/resources/models/church_diffuse.png@resources/models/church_diffuse.png \
  804. --preload-file shaders/resources/shaders/glsl100@resources/shaders/glsl100
  805. shaders/shaders_palette_switch: shaders/shaders_palette_switch.c
  806. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  807. --preload-file shaders/resources/shaders/glsl100/palette_switch.fs@resources/shaders/glsl100/palette_switch.fs
  808. shaders/shaders_raymarching: shaders/shaders_raymarching.c
  809. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  810. --preload-file shaders/resources/shaders/glsl100/raymarching.fs@resources/shaders/glsl100/raymarching.fs
  811. shaders/shaders_texture_drawing: shaders/shaders_texture_drawing.c
  812. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  813. --preload-file shaders/resources/shaders/glsl100/cubes_panning.fs@resources/shaders/glsl100/cubes_panning.fs
  814. shaders/shaders_texture_waves: shaders/shaders_texture_waves.c
  815. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  816. --preload-file shaders/resources/space.png@resources/space.png \
  817. --preload-file shaders/resources/shaders/glsl100/wave.fs@resources/shaders/glsl100/wave.fs
  818. shaders/shaders_julia_set: shaders/shaders_julia_set.c
  819. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  820. --preload-file shaders/resources/shaders/glsl100/julia_set.fs@resources/shaders/glsl100/julia_set.fs
  821. shaders/shaders_eratosthenes: shaders/shaders_eratosthenes.c
  822. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  823. --preload-file shaders/resources/shaders/glsl100/eratosthenes.fs@resources/shaders/glsl100/eratosthenes.fs
  824. shaders/shaders_basic_lighting: shaders/shaders_basic_lighting.c
  825. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  826. --preload-file shaders/resources/texel_checker.png@resources/texel_checker.png \
  827. --preload-file shaders/resources/shaders/glsl100/lighting.fs@resources/shaders/glsl100/lighting.fs \
  828. --preload-file shaders/resources/shaders/glsl100/lighting.vs@resources/shaders/glsl100/lighting.vs
  829. shaders/shaders_fog: shaders/shaders_fog.c
  830. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  831. --preload-file shaders/resources/texel_checker.png@resources/texel_checker.png \
  832. --preload-file shaders/resources/shaders/glsl100/fog.fs@resources/shaders/glsl100/fog.fs \
  833. --preload-file shaders/resources/shaders/glsl100/lighting.vs@resources/shaders/glsl100/lighting.vs
  834. shaders/shaders_simple_mask: shaders/shaders_simple_mask.c
  835. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  836. --preload-file shaders/resources/plasma.png@resources/plasma.png \
  837. --preload-file shaders/resources/mask.png@resources/mask.png \
  838. --preload-file shaders/resources/shaders/glsl100/mask.fs@resources/shaders/glsl100/mask.fs
  839. shaders/shaders_spotlight: shaders/shaders_spotlight.c
  840. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  841. --preload-file shaders/resources/raysan.png@resources/raysan.png \
  842. --preload-file shaders/resources/shaders/glsl100/spotlight.fs@resources/shaders/glsl100/spotlight.fs
  843. shaders/shaders_hot_reloading: shaders/shaders_hot_reloading.c
  844. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s FORCE_FILESYSTEM=1 \
  845. --preload-file shaders/resources/shaders/glsl100/reload.fs@resources/shaders/glsl100/reload.fs
  846. shaders/shaders_mesh_instancing: shaders/shaders_mesh_instancing.c
  847. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  848. --preload-file shaders/resources/shaders/glsl100/lighting_instancing.vs@resources/shaders/glsl100/lighting_instancing.vs \
  849. --preload-file shaders/resources/shaders/glsl100/lighting.fs@resources/shaders/glsl100/lighting.fs
  850. shaders/shaders_multi_sample2d: shaders/shaders_multi_sample2d.c
  851. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  852. --preload-file shaders/resources/shaders/glsl100/color_mix.fs@resources/shaders/glsl100/color_mix.fs
  853. shaders/shaders_texture_outline: shaders/shaders_texture_outline.c
  854. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  855. --preload-file shaders/resources/shaders/glsl100/outline.fs@resources/shaders/glsl100/outline.fs \
  856. --preload-file shaders/resources/fudesumi.png@resources/fudesumi.png
  857. shaders/shaders_write_depth: shaders/shaders_write_depth.c
  858. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  859. --preload-file shaders/resources/shaders/glsl100/write_depth.fs@resources/shaders/glsl100/write_depth.fs
  860. shaders/shaders_hybrid_render: shaders/shaders_hybrid_render.c
  861. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  862. --preload-file shaders/resources/shaders/glsl100/hybrid_raymarch.fs@resources/shaders/glsl100/hybrid_raymarch.fs \
  863. --preload-file shaders/resources/shaders/glsl100/hybrid_raster.fs@resources/shaders/glsl100/hybrid_raster.fs
  864. # Compile AUDIO examples
  865. audio/audio_module_playing: audio/audio_module_playing.c
  866. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  867. --preload-file audio/resources/mini1111.xm@resources/mini1111.xm
  868. audio/audio_music_stream: audio/audio_music_stream.c
  869. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  870. --preload-file audio/resources/country.mp3@resources/country.mp3
  871. audio/audio_raw_stream: audio/audio_raw_stream.c
  872. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864
  873. audio/audio_sound_loading: audio/audio_sound_loading.c
  874. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \
  875. --preload-file audio/resources/sound.wav@resources/sound.wav \
  876. --preload-file audio/resources/target.ogg@resources/target.ogg
  877. audio/audio_stream_effects: audio/audio_stream_effects.c
  878. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  879. --preload-file audio/resources/country.mp3@resources/country.mp3
  880. audio/audio_mixed_processor: audio/audio_mixed_processor.c
  881. $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) -s TOTAL_MEMORY=67108864 \
  882. --preload-file audio/resources/country.mp3@resources/country.mp3 \
  883. --preload-file audio/resources/coin.wav@resources/coin.wav
  884. # Clean everything
  885. clean:
  886. ifeq ($(PLATFORM),PLATFORM_DESKTOP)
  887. ifeq ($(PLATFORM_OS),WINDOWS)
  888. del *.o *.exe /s
  889. endif
  890. ifeq ($(PLATFORM_OS),LINUX)
  891. find . -type f -executable -delete
  892. rm -fv *.o
  893. endif
  894. ifeq ($(PLATFORM_OS),OSX)
  895. find . -type f -perm +ugo+x -delete
  896. rm -f *.o
  897. endif
  898. endif
  899. ifeq ($(PLATFORM),PLATFORM_RPI)
  900. find . -type f -executable -delete
  901. rm -fv *.o
  902. endif
  903. ifeq ($(PLATFORM),PLATFORM_DRM)
  904. find . -type f -executable -delete
  905. rm -fv *.o
  906. endif
  907. ifeq ($(PLATFORM),PLATFORM_WEB)
  908. del *.o *.html *.js
  909. endif
  910. @echo Cleaning done