cpp-raytracer/Makefile
2021-08-30 18:34:14 +02:00

14 lines
455 B
Makefile

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 random.h 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