cpp-raytracer/Makefile
2021-08-21 22:40:40 +02:00

8 lines
275 B
Makefile

raytracer: main.cpp vec3.hpp color.hpp ray.hpp hittable.hpp sphere.hpp hittable_list.hpp rtweekend.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