CXX = g++ CXXFLAGS = -std=c++20 -Wall -Wextra -Wno-unused-parameter -march=native -Ofast -flto -fopenmp DEPS = util.h vec3.h color.h ray.h camera.h hittable.h hittable_list.h sphere.h material.h lodepng.h OBJ = wtracer.o material.o vec3.o lodepng.o TARGET = wtracer all: $(TARGET) run run: $(TARGET) time -f '%E elapsed' ./wtracer eog image.png %.o: %.cpp $(DEPS) $(CXX) $(CXXFLAGS) -c -o $@ $< $(TARGET): $(OBJ) $(CXX) $(CXXFLAGS) -o $@ $^ clean: $(RM) $(TARGET) $(OBJ) image.png