From 1bfe6fcda4e6247452b17fe54a2cc613c4d19cf0 Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 16 May 2022 08:20:12 -0400 Subject: more polished --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3478d8f..db9308f 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,4 @@ desktop: zig cc -target native main.c -o game -lGL -lm -lpthread -ldl -lrt -lX11 -Iraylib/src -Iraygui/src raylib/src/libraylib.a && ./game +web: + emcc -Os -Wall main.c -o game -Iraylib/src -Iraygui/src raylib/src/libraylib.a -o output/index.html -s USE_GLFW=3 -DPLATFORM_WEB --shell-file raylib/src/minshell.html -s TOTAL_MEMORY=268435456 -s ASYNCIFY --preload-file ./assets -- cgit v1.2.3