-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (49 loc) · 1.76 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: wlahyani <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/03/03 12:10:58 by yjaadoun #+# #+# #
# Updated: 2023/04/20 09:20:18 by wlahyani ### ########.fr #
# #
# **************************************************************************** #
SRC = cub.c \
get_next_line/get_next_line.c\
get_next_line/get_next_line_utils.c \
parsing/cub_utiles1.c \
parsing/map_elements.c \
parsing/map.c \
parsing/reading_map.c \
parsing/errors_handler.c \
parsing/parisng.c \
parsing/textures.c \
parsing/colores.c \
drawing/2d_map.c \
drawing/mlx_functions.c \
drawing/window.c \
drawing/player_movements.c \
drawing/cast_rays.c \
drawing/rotation.c \
drawing/textures.c \
drawing/iterator.c \
drawing/init_val.c \
drawing/cast_rays_utils.c \
drawing/cast_rays_utiles1.c \
NAME = cub3D
CC = cc
CFLAGS = -Wall -Wextra -Werror
MLX_FLAGS = -lmlx -framework OpenGL -framework AppKit
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@cd libft && make all
@$(CC) $(CFLAGS) $(MLX_FLAGS) libft/libft.a $(OBJ) -o $(NAME)
clean:
@cd libft && make clean
@rm -f $(OBJ)
fclean: clean
@cd libft && make fclean
@rm -f $(NAME)
re: fclean all