-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# AUTHOR: Austin Benoit
# -I /usr/local/opt/boost
# Add in camera.o
CC := g++
OPTIONS := -std=c++17 -pedantic-errors -Wall -Wall -Werror -Wextra
INCLUDE := -I ../Ray_Tracer/
all: ray_tracer
ray_tracer: main.cpp maths.o geometricobject.o world.o material.o tracer.o brdf.o camera.o lights.o
$(CC) main.cpp maths.o geometricobject.o world.o tracer.o material.o brdf.o camera.o lights.o\
$(OPTIONS) -lc++ $(INCLUDE) -o ray_tracer.out
maths.o: Maths/maths.hpp Maths/maths.cpp
$(CC) $(OPTIONS) $(INCLUDE) -c Maths/maths.cpp
camera.o: maths.o material.o Camera/camera.cpp Camera/camera.hpp
$(CC) $(OPTIONS) $(INCLUDE) -c Camera/camera.cpp
geometricobject.o: maths.o material.o GeometricObject/geometricobject.hpp GeometricObject/geometricobject.cpp
$(CC) $(OPTIONS) $(INCLUDE) -c GeometricObject/geometricobject.cpp
lights.o : Lights/lights.hpp Lights/lights.cpp
$(CC) $(OPTIONS) $(INCLUDE) -c Lights/lights.cpp
world.o: camera.o lights.o geometricobject.o maths.o brdf.o
$(CC) $(OPTIONS) $(INCLUDE) -c World/world.cpp
tracer.o: Tracer/tracer.hpp Tracer/tracer.cpp world.o
$(CC) $(OPTIONS) $(INCLUDE) -c Tracer/tracer.cpp
brdf.o : maths.o BRDF/brdf.hpp BRDF/brdf.cpp
$(CC) $(OPTIONS) $(INCLUDE) -c BRDF/brdf.cpp
material.o: Material/material.hpp Material/material.cpp maths.o
$(CC) $(OPTIONS) $(INCLUDE) -c Material/material.cpp
clean:
rm -r *.o
rm -r *.out