cpp-raytracer/Makefile
2021-08-23 00:37:57 +02:00

8 lines
299 B
Makefile

raytracer: camera.hpp color.hpp hittable.hpp hittable_list.hpp main.cpp material.hpp ray.hpp rtweekend.hpp sphere.hpp vec3.hpp
@g++ -g -O2 -Wall -Wextra -Wpedantic main.cpp -o raytracer
image: raytracer
@./raytracer > image.ppm
@if [ $$TERM = "xterm-kitty" ]; then\
kitty icat image.ppm;\
fi