diff options
| author | realtradam <[email protected]> | 2022-05-17 23:39:40 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-05-17 23:39:40 -0400 |
| commit | 1592c3d2556b63406dedf15c8cedc1c74016b135 (patch) | |
| tree | b3a4f6cda52841e710936f66447dcc525520345c /Makefile | |
| download | raylib-template-1592c3d2556b63406dedf15c8cedc1c74016b135.tar.gz raylib-template-1592c3d2556b63406dedf15c8cedc1c74016b135.zip | |
init
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..02711c9 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +tux: + @mkdir -p output/tux + zig cc -target native main.c -o output/tux/game -lGL -lm -lpthread -ldl -lrt -lX11 -Idependecy/raylib/src lib/tux/libraylib.a && ./output/tux/game +web: + @mkdir -p output/web + emcc -Os -Wall main.c -o game -Idependency/raylib/src lib/web/libraylib.a -o output/web/index.html -s USE_GLFW=3 -DPLATFORM_WEB --shell-file dependency/raylib/src/minshell.html -s TOTAL_MEMORY=268435456 -s ASYNCIFY --preload-file ./assets |
