cub3D/Makefile
2024-01-30 16:22:36 +01:00

93 lines
2.9 KiB
Makefile

# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/01/14 16:54:48 by fgras-ca #+# #+# #
# Updated: 2024/01/30 16:18:26 by fgras-ca ### ########.fr #
# #
# **************************************************************************** #
LOGO = @echo "🅹🅾🅷🅽 🅰🅽🅳 🅻🅰🅳🅴🅱🅴🆉🅴"
RST = \033[0m
GRAY = \033[0;90m
RED = \033[0;91m
GREEN = \033[0;92m
YELLOW = \033[0;93m
BLUE = \033[0;94m
MAGENTA = \033[0;95m
CYAN = \033[0;96m
WHITE = \033[0;97m
ORANGE = \033[38;5;214m
NAME = cub3d
SRC = main.c \
./utils/ft_utils_gnl.c \
./utils/ft_utils_split.c \
./utils/ft_utils_convert.c \
./utils/ft_utils_str_1.c \
./parsing/ft_map_check.c \
./parsing/ft_map_dimensions.c \
./parsing/ft_parsing.c \
./move/ft_collision.c \
./move/ft_key.c \
./move/ft_move.c \
./draw/ft_draw.c \
./draw/ft_background.c \
./draw/ft_2d_view.c \
./draw/ft_textures.c \
./draw/ft_3d_view.c \
./draw/ft_3d_view_utils.c \
./draw/ft_horizontal_ray.c \
./draw/ft_vertical_ray.c \
./draw/ft_pixel.c \
./draw/ft_ray_utils.c \
./window/ft_window.c \
./window/ft_player.c \
./window/ft_map.c \
./draw/ft_load_textures.c \
./window/ft_rescale.c \
./window/ft_refresh_window.c \
./parsing/ft_find_map_start.c \
./parsing/ft_textures_and_colors.c \
./parsing/ft_find_player_position.c \
./parsing/ft_find_player_utils.c \
./parsing/ft_map_check_utils.c \
./parsing/ft_text_and_col_utils.c \
./utils/ft_utils_mem.c \
./exit/ft_exit.c \
./exit/ft_kill_prog.c \
OBJ = $(SRC:.c=.o)
FLAG = cc -Wall -Wextra -Werror -g
RM = rm -f
all: $(NAME)
$(NAME): $(OBJ)
@echo "$(RED)Compilation cub3D... $(RST)"
@$(FLAG) -Iinclude $(OBJ) -Llib -lmlx -lXext -lX11 -lm -o $(NAME)
@echo "$(GREEN)Compilation complete. $(ORANGE)Type "./cub3d" for execute the program!!$(RST)"
$(LOGO)
clean:
@echo "$(RED)Deleating files objects... $(RST)"
$(RM) $(OBJ)
@echo "$(GREEN)files deleted!! $(RST)"
$(LOGO)
fclean: clean
@echo "$(RED)Delete program name... $(RST)"
$(RM) $(NAME)
@echo "$(GREEN)File program deleted!! $(RST)"
re: fclean all
.PHONY: all clean fclean re