forked from Koru-zed/MiniRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (55 loc) · 1.47 KB
/
Makefile
File metadata and controls
74 lines (55 loc) · 1.47 KB
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
NAME := miniRT
FILES := Get_next_line/get_next_line.c \
Parssing/fill_data.c \
Parssing/free_mini.c \
Parssing/fill_info.c \
Parssing/set_data.c \
Parssing/get_data_part1.c \
Parssing/get_data_part2.c \
Execution/utils.c \
Execution/color.c \
Execution/shade.c \
Execution/rotation.c \
Execution/rendring.c \
Execution/ft_matrix.c \
Execution/math_utils.c \
Execution/update_matrix.c \
Execution/math_operations.c \
Shape/cylinder.c \
Shape/sphere.c \
Shape/plane.c \
Event/event.c \
Event/event_utils.c \
main.c
OBJES := ${FILES:.c=.o}
CC := cc -g3
FOBJS := ./objs
LIBFT := libft/libft
CFLAGS := -Wall -Wextra -Werror
FRAMWORK = -lmlx -framework OpenGL -framework AppKit
RM := /bin/rm -rf
#colors
YELLOW = \033[1;93m
PURPLE = \033[1;95m
GREEN = \033[1;92m
WHITE = \033[1;97m
RED = \033[1;91m
all : ${NAME}
${NAME} : ${OBJES} ${LIBFT}
@ ${CC} ${CFLAGS} ${LIBFT} ${FRAMWORK} $^ -o $@
@ echo " ${YELLOW}}}}.....${GREEN}!Compile :-> ${NAME} <-: Successe!${YELLOW}.....{{{${WHITE}"
%.o : %.c
@ echo "${BLUE}Generating Minishell objects... ${PURPLE}" $@ "${WHITE}"
@$(CC) $(CFLAGS) -Imlx -c $< -o $@
lib :
@ $(MAKE) -C ./Libft
@ $(MAKE) clean -C ./Libft
clean :
@ ${RM} ${OBJES}
@ echo "${YELLOW}-> ${PURPLE}Delete the object files.....${WHITE}"
fclean : clean
@ ${RM} ${NAME}
@ echo "${YELLOW}-> ${RED}fclean : Deleting executable done.${WHITE}\n"
re : fclean all
do : all clean
.PHONY : all clean fclean re