-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
78 lines (62 loc) · 2.24 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rvinnie <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/08 17:29:43 by rvinnie #+# #+# #
# Updated: 2021/02/08 17:29:45 by rvinnie ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
RM = rm -rf
CFLAGS = -Wall -Wextra -Werror
MLXFLAGS = -Lmlx -lmlx -framework OpenGL -framework AppKit -O3
NAME = cub3D
SRCS = main.c \
parser/main_parser.c \
parser/player_parser.c \
parser/sprite_parser.c \
parser/texture_parser.c \
parser/info_parser.c \
parser/map_parser.c \
parser/map_checker.c \
parser/map_checker_second.c \
game_graphics/painter.c \
game_graphics/main_drawer.c \
game_graphics/raycasting.c \
game_graphics/find_walls.c \
game_graphics/sprite_handler.c \
game_graphics/screenshot.c \
game_graphics/texture_slice.c \
game_graphics/choose_texture.c \
moving/change_degree.c \
moving/make_step.c \
gnl/get_next_line_utils.c \
gnl/get_next_line.c \
utils/lst_funcs.c \
utils/find_chr.c \
utils/dir_to_degree.c \
utils/rgb_to_hex.c \
utils/trigonometry_funcs.c \
utils/check_border.c \
utils/lst_to_arr.c \
utils/sort_sprites.c \
exit/free_arr.c \
exit/exit_game.c \
exit/error_handler.c
LIBFT = libft/libft.a
HDRS = cub3d.h
OBJS = $(SRCS:.c=.o)
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
$(NAME): $(OBJS) $(LIBFT) $(HDRS) Makefile
$(CC) $(CFLAGS) $(OBJS) utils/get_screen.m $(MLXFLAGS) $(LIBFT) -o$(NAME)
all: $(NAME)
clean:
$(RM) $(OBJS) cub3D.dSYM
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re