diff options
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 13 |
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 |
