-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 711 Bytes
/
Makefile
File metadata and controls
50 lines (36 loc) · 711 Bytes
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
SRC = ft_annexe_getmap.c \
draw.c \
ft_check_map.c\
ft_get_map.c\
ft_map2map2_annexe.c\
ft_sprite.c\
put_image.c\
draw_minimap.c\
ft_check_map2.c\
ft_get_sprite.c\
ft_orientation.c\
get_next_line.c\
ray.c\
ft_annexe.c\
ft_detect.c\
ft_init.c\
ft_save_image.c\
key_hand.c\
ft_free.c \
ft_map2map2.c \
ft_split.c\
main.c\
SRCS = $(addprefix ./srcs/,$(SRC))
OBJS = ${SRCS:.c=.o}
CC = gcc
INC = include
CFLAGS = -Wall -Wextra -Werror -I $(INC)
NAME = Cub3D
MLX = -lmlx -framework OpenGL -framework AppKit
.c.o : ${CC} $(MLX) ${CFLAGS} -c $< -o ${<:.c=.o}
all : $(OBJS)
gcc $(MLX) $(OBJS) -o $(NAME)
clean :
rm -f ${NAME}
re : fclean all
.PHONY : all clean fclean re