-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (49 loc) · 999 Bytes
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
NAME = raytracer
CC = gcc
RM = rm -f
CFLAGS = -W -Wall -I include -std=c11 -Ofast -O2 -I /usr/local/include/
LDFLAGS = -lmlx -lXext -lX11 -lm -lpthread
SRC = src/AreaLight.c \
src/Camera.c \
src/Color.c \
src/DielectricMaterial.c \
src/DirectionalLight.c \
src/Image.c \
src/Instance.c \
src/Integrator.c \
src/Intersection.c \
src/LambertMaterial.c \
src/Light.c \
src/List.c \
src/main.c \
src/Mat4x4.c \
src/Material.c \
src/Mesh.c \
src/MetalMaterial.c \
src/Object.c \
src/Pathtracing.c \
src/PointLight.c \
src/Ray.c \
src/Raytracing.c \
src/Renderer.c \
src/Scene.c \
src/Scene1.c \
src/Scene2.c \
src/Sphere.c \
src/Thread.c \
src/Time.c \
src/Triangle.c \
src/Utils.c \
src/Vec2.c \
src/Vec3.c \
src/Vertex.c \
src/XContext.c \
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(OBJ) -o $(NAME) $(LDFLAGS)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all