From 031d946bfdc5162ff6ae3e585ba4a4dd44fc3d3f Mon Sep 17 00:00:00 2001 From: sigma Date: Thu, 14 Aug 2025 15:18:28 +0200 Subject: [PATCH] ajout du makefile --- .gitignore | 3 +-- Makefile | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 0906c29..b77eff0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /target GLFW/ -a.out -compile.sh \ No newline at end of file +ray-tracer \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..79b1ad6 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +LDFLAGS =-I GLFW/include/GLFW -L /usr/lib/ -lglfw -lGL -lwayland-client -lwayland-cursor -lwayland-egl -lrt -ldl -lxkbcommon -lpthread +vulkan-test: main.cpp + g++ -o ray-tracer main.cpp $(LDFLAGS) + +.PHONY: test clean + +test: ray-tracer + ./ray-tracer + +clean: + rm -f ray-tracer