OPTIMIZATION=-O3 -flto CC=gcc CFLAGS=-Isrc/ -lm -lpthread -Wall -Wextra -pedantic-errors $(OPTIMIZATION) .PHONY: directories directories: mkdir -p obj out obj/point.o: src/point.c src/point.h $(CC) $(CFLAGS) -c -o $@ src/point.c obj/scene.o: src/scene.c src/scene.h $(CC) $(CFLAGS) -c -o $@ src/scene.c obj/camera.o: src/camera.c src/camera.h $(CC) $(CFLAGS) -c -o $@ src/camera.c obj/images.o: images/src/images.c images/src/images.h $(CC) $(CFLAGS) -c -o $@ images/src/images.c march: obj/camera.o obj/scene.o obj/point.o obj/images.o $(CC) $(CFLAGS) -o out/march $^ marcher.c bench: obj/camera.o obj/scene.o obj/point.o obj/images.o $(CC) $(CFLAGS) -o out/bench $^ bench.c