You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
|
|
|
|
OPTIMIZATION=-O3
|
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Isrc/ -lm -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
|