aboutsummaryrefslogtreecommitdiff
path: root/raylib/examples/raylib_makefile_example.bat
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-10-15 21:28:29 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-10-15 21:28:29 -0300
commit1c0cc775732201f4c4d3ee0d6772be786b3b4aa1 (patch)
treef5d692d046868261275c7430a624c3ea9ed75d3d /raylib/examples/raylib_makefile_example.bat
parenta89f892640cf12f75c7ce18e6e88c70a8d3965ed (diff)
A lot has certainly happened!
Diffstat (limited to 'raylib/examples/raylib_makefile_example.bat')
-rw-r--r--raylib/examples/raylib_makefile_example.bat27
1 files changed, 27 insertions, 0 deletions
diff --git a/raylib/examples/raylib_makefile_example.bat b/raylib/examples/raylib_makefile_example.bat
new file mode 100644
index 0000000..cc2fdc2
--- /dev/null
+++ b/raylib/examples/raylib_makefile_example.bat
@@ -0,0 +1,27 @@
+::@echo off
+:: .
+:: Compile your examples using: raylib_makefile_example.bat core/core_basic_window
+:: .
+:: > Setup required Environment
+:: -------------------------------------
+set RAYLIB_INCLUDE_DIR=C:\raylib\raylib\src
+set RAYLIB_LIB_DIR=C:\raylib\raylib\src
+set RAYLIB_RES_FILE=C:\raylib\raylib\src\raylib.rc.data
+set COMPILER_DIR=C:\raylib\w64devkit\bin
+set PATH=%PATH%;%COMPILER_DIR%
+set FILENAME=%1
+set FILENAME_FULL_PATH=%~f1
+cd %~dp0
+:: .
+:: > Cleaning latest build
+:: ---------------------------
+cmd /c if exist %FILENAME_FULL_PATH%.exe del /F %FILENAME_FULL_PATH%.exe
+:: .
+:: > Compiling program
+:: --------------------------
+:: -B : Force make recompilation despite file not changed
+mingw32-make %FILENAME% -B PLATFORM=PLATFORM_DESKTOP
+:: .
+:: > Executing program
+:: -------------------------
+cmd /c if exist %FILENAME_FULL_PATH%.exe %FILENAME_FULL_PATH%.exe