-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.61 KB
/
Makefile
File metadata and controls
41 lines (32 loc) · 1.61 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: havyilma <havyilma@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/03/15 18:54:37 by havyilma #+# #+# #
# Updated: 2023/03/25 10:16:12 by havyilma ### ########.fr #
# #
# **************************************************************************** #
CFLAGS = -Wall -Wextra -Werror -I./minilibx -g
LFLAGS = -framework AppKit -framework OpenGL -L./minilibx -lmlx
MLX = ./minilibx/libmlx.a
GNL = ./get_next_line/get_next_line.c ./get_next_line/get_next_line_utils.c
GNLOBJS = $(GNL:.c=.o)
SRCS = check_the_map.c so_long.c put_xpm.c ft_move.c ft_key_handler.c check_the_map_2.c ft_putnbbr.c check_the_map_3.c ft_over.c
OBJS = $(SRCS:.c=.o)
NAME = so_long
all : $(MLX) $(NAME)
$(MLX) :
make -C ./minilibx
$(NAME) : $(OBJS) $(GNLOBJS)
gcc $(OBJS) $(GNLOBJS) $(CFLAGS) $(LFLAGS) -o $(NAME)
clean:
rm -rf $(OBJS) $(NAME)
fclean:
rm -rf $(OBJS) $(NAME)
rm -rf ./get_next_line/get_next_line.o ./get_next_line/get_next_line_utils.o
make clean -C ./minilibx
re : fclean all
.PHONY: all clean fclean re