-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (52 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##
## Makefile for wolf in /home/menett_a/Modules/infographie/gfx_wolf3d
##
## Made by Nicolas Menettrier
## Login <[email protected]>
##
## Started on Tue Dec 22 12:13:51 2015 Nicolas Menettrier
## Last update Mon Mar 14 00:13:09 2016 menett_a
##
NAME = raytracer1
LIB = -L/home/${USER}/.froot/lib/ -llapin \
-L/usr/local/lib \
-lsfml-audio \
-lsfml-graphics \
-lsfml-window \
-lsfml-system \
-lstdc++ -ldl \
-lm
CFLAGS += -Werror -W -Wall -ansi -pedantic -I/home/${USER}/.froot/include/
SRC = cylinder_collision.c \
get_info_cylinder.c \
sphere_collision.c \
get_info_sphere.c \
cone_collision.c \
plan_collision.c \
get_info_light.c \
get_info_cone.c \
get_info_plan.c \
key_response.c \
quadrillage.c \
find_light.c \
init_files.c \
my_getnbr.c \
raytracer.c \
dist_calc.c \
load_ini.c \
tekpixel.c \
put_err.c \
vecteur.c \
tekray.c \
delta.c \
main.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
gcc $(OBJ) $(LIB) -o $(NAME)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re