From 07cf2d2216a91d783471460da3a4191121595d6d Mon Sep 17 00:00:00 2001 From: realtradam Date: Tue, 17 May 2022 23:51:53 -0400 Subject: working Makefile --- .gitignore | 3 +++ Makefile | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e12dfb --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +lib/*/* +game +output/* diff --git a/Makefile b/Makefile index 02711c9..a05c6cd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +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 + zig cc -target native src/main.c -o output/tux/game -lGL -lm -lpthread -ldl -lrt -lX11 -Idependency/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 + emcc -Os -Wall src/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 -- cgit v1.2.3