-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
105 lines (80 loc) · 1.72 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
##
## Makefile for rt in /home/josso/en_cours/rt
##
## Made by Arthur Josso
## Login <arthur.josso@epitech.eu>
##
## Started on Fri Jan 29 18:32:59 2016 Arthur Josso
## Last update Thu May 19 18:10:14 2016 Arthur Josso
##
NAME = rasterizer
CC = gcc
INC = -I./include/ -I./liblapin/include/
CFLAGS += $(INC) \
-W -Wall -Wextra -O3
LDFLAGS += -L./liblapin -llapin \
-lsfml-audio -lsfml-graphics \
-lsfml-window -lsfml-system \
-lstdc++ -ldl -lm
SRCS = ./src/
INIT = ./src/init/
LIGHT = ./src/light/
CORE = ./src/core/
MY = ./src/my/
EXIT = ./src/exit/
KEYS = ./src/keys/
DISPLAY = ./src/display/
MATRIX = ./src/matrix/
SRC = $(SRCS)main.c \
$(DISPLAY)display.c \
$(DISPLAY)fdf.c \
$(DISPLAY)m2v.c \
$(DISPLAY)rasterize.c \
$(DISPLAY)rast_utils.c \
$(MATRIX)utils.c \
$(MATRIX)init.c \
$(INIT)init.c \
$(INIT)get.c \
$(INIT)get2.c \
$(INIT)load.c \
$(INIT)add_cam.c \
$(INIT)add_light.c \
$(INIT)add_mesh.c \
$(INIT)parsing.c \
$(INIT)add_basic.c \
$(INIT)add_face.c \
$(CORE)tekpixel.c \
$(CORE)vector.c \
$(CORE)vector2.c \
$(CORE)tekline.c \
$(CORE)getpixel.c \
$(EXIT)exit.c \
$(KEYS)callback.c \
$(KEYS)move.c \
$(KEYS)height.c \
$(KEYS)esc.c \
$(KEYS)rotate.c \
$(KEYS)action.c \
$(MY)my_getnbr.c \
$(MY)my_getdouble.c \
$(MY)my_strcmp.c \
$(MY)my_epurstr.c \
$(MY)my_getnextline.c \
$(MY)my_str_to_tab.c \
$(MY)my_is_float.c \
$(MY)my_isnbr.c
OBJ = $(SRC:.c=.o)
RM = rm -f
all: $(NAME)
$(NAME): $(OBJ)
@$(CC) $(OBJ) -o $(NAME) $(LDFLAGS)
clean:
@$(RM) $(OBJ)
fclean: clean
@$(RM) $(NAME)
re: fclean all
lapin:
$(MAKE) -C liblapin
cleanlapin:
$(MAKE) -C liblapin fclean
.PHONY: all clean fclean re lapin cleanlapin