summaryrefslogtreecommitdiffhomepage
path: root/examples/README.md
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-10-14 13:41:55 +0200
committerraysan5 <[email protected]>2021-10-14 13:41:55 +0200
commitd7266ea8f31bc46df92989fc307ba2da9ed64a9e (patch)
tree4a4bcaaddca7bca92041b80467806e910e5c2314 /examples/README.md
parentef858b0dbb1fd2bca84caf2eb8952829107a39de (diff)
parent588131c9d526d6bf63ced0c9a95a660801a3d711 (diff)
downloadraylib-d7266ea8f31bc46df92989fc307ba2da9ed64a9e.tar.gz
raylib-d7266ea8f31bc46df92989fc307ba2da9ed64a9e.zip
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'examples/README.md')
-rw-r--r--examples/README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/README.md b/examples/README.md
index ddf69fe5..14d566b2 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -1,3 +1,21 @@
+## Building the Examples
+
+The examples assume you have already built the `raylib` library in `../src`.
+
+### With GNU make
+
+- `make` builds all examples
+- `make [module]` builds all examples for a particular module (e.g `make core`)
+
+### With Zig
+
+The [Zig](https://ziglang.org/) toolchain can compile `C` and `C++` in addition to `Zig`.
+You may find it easier to use than other toolchains, especially when it comes to cross-compiling.
+
+- `zig build` to compile all examples
+- `zig build [module]` to compile all examples for a module (e.g. `zig build core`)
+- `zig build [example]` to compile _and run_ a particular example (e.g. `zig build core_basic_window`)
+
## EXAMPLES LIST
### category: core