-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
91 lines (75 loc) · 2.84 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: Lobbyra <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/10 09:12:12 by Lobbyra #+# #+# #
# Updated: 2020/07/09 13:44:19 by jecaudal ### ########.fr #
# #
# **************************************************************************** #
NAME = cub3d
SRCS = srcs/cub_exit.c \
srcs/cub_side_hited.c \
srcs/draw_background.c \
srcs/draw_sprites_utils.c \
srcs/draw_sprites.c \
srcs/draw_vert_line.c \
srcs/draw_vert_line_text.c \
srcs/free_stock.c \
srcs/panic_init_stock.c \
srcs/init_stock.c \
srcs/init_stock_utils.c \
srcs/init_stock_sprites.c \
srcs/init_stock_checkers.c \
srcs/key.c \
srcs/lmlx.c \
srcs/main.c \
srcs/save_bmp.c \
srcs/parsing/color_miner.c \
srcs/parsing/detect_line.c \
srcs/parsing/free_file.c \
srcs/parsing/free_info.c \
srcs/parsing/get_file.c \
srcs/parsing/get_info.c \
srcs/parsing/get_map.c \
srcs/parsing/init_file.c \
srcs/parsing/init_info.c \
srcs/parsing/is_map.c \
srcs/parsing/parsing.c \
srcs/parsing/parsing_color.c \
srcs/parsing/parsing_file.c \
srcs/parsing/parsing_map.c \
srcs/parsing/parsing_map_utils.c \
srcs/parsing/parsing_path.c \
srcs/parsing/parsing_resolution.c \
srcs/parsing/path_miner.c \
srcs/parsing/print_err_file.c \
srcs/parsing/resolution_miner.c \
srcs/perform_raycasting.c \
srcs/player_update.c \
srcs/raycasting.c \
srcs/render.c
OBJS = $(SRCS:.c=.o)
CC = gcc
CFLAGS += -W -Wall -Wextra -Werror -ansi -pedantic -I headers -I libc_lobb/headers/
MLX = -Lmlx -lmlx -framework OpenGL -framework AppKit
LIB = -Llibc_lobb/ -lclobb
all : $(NAME)
make_l_lib :
@make -C libc_lobb/
$(NAME) : make_l_lib $(OBJS)
$(CC) -o $(NAME) $(MLX) $(LIB) $(OBJS)
play : $(NAME)
./cub3d test_files/parsing_example_files/18_correct_squarre.cub
turbo : clean $(OBJS)
$(CC) -o $(NAME) -O3 $(MLX) $(LIB) $(OBJS)
sanitize : $(OBJS)
$(CC) -o $(NAME) -fsanitize=address $(MLX) $(LIB) $(OBJS)
clean :
rm -f $(OBJS)
@make fclean -C libc_lobb
fclean : clean
rm -f $(NAME)
re : fclean all