-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 2.83 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ahajji <ahajji@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/15 18:00:26 by ahajji #+# #+# #
# Updated: 2023/01/07 10:16:01 by ahajji ### ########.fr #
# #
# **************************************************************************** #
NAME = so_long
SRC = all_img_con.c check_map.c check_path.c ft_check_and_disply.c ft_display.c so_long.c so_long_utils.c utils_functions/check_map_2.c utils_functions/check_path_2.c utils_functions/ft_check_and_display_2.c utils_functions/ft_itoa.c utils_functions/get_next_line.c utils_functions/get_next_line_utils.c ft_printf/ft_printf.c ft_printf/ft_putadres.c ft_printf/ft_putchar.c ft_printf/ft_putnbr_base.c ft_printf/ft_putnbr_uns.c ft_printf/ft_putnbr.c ft_printf/ft_putstr.c
OBJ = $(SRC:.c=.o)
SRC_BNUS = so_long_bonus/all_img_con_bonus.c so_long_bonus/so_long_utils_bonus.c so_long_bonus/check_map_bonus.c so_long_bonus/check_path_bonus.c so_long_bonus/ft_check_and_disply_bonus.c so_long_bonus/ft_display_bonus.c so_long_bonus/so_long_bonus.c so_long_bonus/all_move_and_animation_bonus.c so_long_bonus/utils_functions/check_map_2_bonus.c so_long_bonus/utils_functions/check_path_2_bonus.c so_long_bonus/utils_functions/ft_display_bonus_2.c so_long_bonus/utils_functions/ft_check_and_display_2_bonus.c so_long_bonus/utils_functions/ft_check_and_disply_3_bonus.c so_long_bonus/utils_functions/ft_itoa_bonus.c so_long_bonus/utils_functions/get_next_line_bonus.c so_long_bonus/utils_functions/get_next_line_utils_bonus.c so_long_bonus/utils_functions/all_move_and_animation_2_bonus.c ft_printf/ft_printf.c ft_printf/ft_putadres.c ft_printf/ft_putchar.c ft_printf/ft_putnbr_base.c ft_printf/ft_putnbr_uns.c ft_printf/ft_putnbr.c ft_printf/ft_putstr.c
OBJ_BONUS = $(SRC_BNUS:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
@cc $(OBJ) -Wall -Wextra -Werror -lmlx -framework OpenGL -framework AppKit -o $(NAME)
# $(OBJ): $(SRC)
# @gcc -Wall -Wextra -Werror -c $(SRC)
bonus: $(OBJ_BONUS)
@cc $(OBJ_BONUS) -Wall -Wextra -Werror -lmlx -framework OpenGL -framework AppKit -o $(NAME)
clean:
@rm -rf *.o utils_functions/*.o ft_printf/*.o so_long_bonus/*.o so_long_bonus/utils_functions/*.o
fclean: clean
@rm -rf so_long.a so_long_bonus/*.a $(NAME)
re: fclean all
.PHONY: all clean fclean re bonus