summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-05-17 23:51:53 -0400
committerrealtradam <[email protected]>2022-05-17 23:51:53 -0400
commit07cf2d2216a91d783471460da3a4191121595d6d (patch)
tree363e9d50087a14ae33ade38fea55c7f1e4aaa65b
parent1592c3d2556b63406dedf15c8cedc1c74016b135 (diff)
downloadraylib-template-07cf2d2216a91d783471460da3a4191121595d6d.tar.gz
raylib-template-07cf2d2216a91d783471460da3a4191121595d6d.zip
working Makefile
-rw-r--r--.gitignore3
-rw-r--r--Makefile4
2 files changed, 5 insertions, 2 deletions
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