-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
68 lines (55 loc) · 1.74 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jereligi <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/19 16:29:40 by jereligi #+# #+# #
# Updated: 2020/02/11 13:57:14 by jereligi ### ########.fr #
# #
# **************************************************************************** #
NAME = cub3D
PATH = ./srcs/
SRCS = ft_cub3d.c \
ft_read_map.c \
ft_parse_info.c \
ft_parse_info_2.c \
ft_parse_map.c \
ft_get_info.c \
ft_error.c \
ft_init.c \
ft_utils.c \
ft_utils2.c \
ft_split.c \
ft_strdup_map.c \
ft_strcpy.c \
get_next_line.c \
get_next_line_utils.c \
ft_fill_map.c \
ft_keyboard_action.c \
ft_movement_player.c \
ft_mini_map.c \
ft_exit_prog.c \
ft_raycaster.c \
ft_texture.c \
ft_memcpy.c \
ft_strncmp.c \
ft_draw_wall_color.c \
ft_draw_wall_texture.c \
ft_save.c \
ft_sprite.c \
ft_init_storage.c \
_SRC = $(addprefix $(PATH), $(SRCS))
OBJ = $(_SRC:.c=.o)
INCLUDES = ./includes
CC = gcc
CFLAGS = -Wall -Wextra -Werror
all : $(NAME)
$(NAME) : $(OBJ) $(INCLUDES)
gcc -o $(NAME) -lm -lmlx -framework OpenGL -framework AppKit $(OBJ)
clean :
rm -f $(OBJ)
fclean : clean
rm -f $(NAME)
re : fclean all