-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (44 loc) · 996 Bytes
/
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
SRCS = cub3d.c \
get_next_line/get_next_line_bonus.c \
get_next_line/get_next_line_utils_bonus.c \
init.c \
old_lib/ft_atoi.c \
old_lib/ft_split.c \
old_lib/ft_isdigit.c \
old_lib/ft_strlcpy.c \
draw.c \
print_player.c \
ray_fun.c \
errors_f.c \
map_check.c \
init_text.c \
save_image.c \
height_count.c \
pixel_move.c \
sort.c \
parsing.c \
tools.c \
extra_cheking.c \
sprites.c \
turns.c \
start_pos.c
OBJS = $(SRCS:.c=.o)
CC = gcc
RM = rm -f
CFLAGS = -O3 -Wall -Wextra -Werror -I. -D FLOOR=0
LIBS = -Lmlx -lmlx -framework OpenGL -framework AppKit -lm
MLX = libmlx.a
NAME = cub3D
MAP = map.cub
all: $(NAME)
run:
./${NAME} $(MAP)
$(NAME): $(OBJS)
gcc ${CFLAGS} -o ${NAME} ${OBJS} $(MLX) ${LIBS}
clean:
@$(MAKE) -C mlx clean
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean $(NAME)
.PHONY: all clean fclean re