INCLUDE=./include
LIBS=-pthread -lm
FLAGS=-Ofast -march=native -g -Wall -Wextra -Wpedantic

raytracer: camera.hpp color.hpp hittable.hpp hittable_list.hpp main.cpp material.hpp ray.hpp rtweekend.hpp sphere.hpp vec3.hpp $(INCLUDE)/Remotery.c $(INCLUDE)/Remotery.h
	g++ $(FLAGS) -I$(INCLUDE) $(LIBS) main.cpp -o raytracer

make debug:

image: raytracer
	@./raytracer -o image.ppm
	@if [ $$TERM = "xterm-kitty" ]; then\
		kitty icat image.ppm;\
	fi
