aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorGravatar Marina Barros <azulmarina799@gmail.com> 2026-11-07 16:58:45 +0000
committerGravatar Marina Barros <azulmarina799@gmail.com> 2026-11-16 00:02:30 +0000
commit6fb035821f4a92f29ab245920d7fb8db69c0c9b9 (patch)
tree838eabcf13d231cf43f7814bb33e6498e9d1f969 /justfile
commit inicial: GLFW e janela vaziaHEADmain
Diffstat (limited to 'justfile')
-rw-r--r--justfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..9960c58
--- /dev/null
+++ b/justfile
@@ -0,0 +1,13 @@
+CC := "gcc -Wall -Wextra -Wpedantic -std=c99"
+# https://learnopengl.com/Getting-started/Creating-a-window
+# For Linux users compiling with GCC, the following command line options may help you compile the project: -lglfw3 -lGL -lX11 -lpthread -lXrandr -lXi -ldl. Not correctly linking the corresponding libraries will generate many undefined reference errors.
+# LIBS := `pkg-config --libs glfw3`
+LIBS := `pkg-config --libs-only-l glfw3 gl`
+INCLUDE := "include"
+
+build:
+ @test -d out/ || mkdir -p out/
+ {{CC}} -o out/main {{LIBS}} -I{{INCLUDE}} src/main.c
+
+run:
+ nixGL out/main