adding the correction helped by maiboyer and bgoulard

This commit is contained in:
Raphael 2024-11-18 16:27:02 +01:00
commit 761178fcae
6 changed files with 249 additions and 13 deletions

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2024/11/18 14:28:55 by rparodi ### ########.fr #
# Updated: 2024/11/18 14:54:37 by rparodi ### ########.fr #
# #
# **************************************************************************** #
@ -42,19 +42,18 @@ MLXFLAGS = -L$(MLX_DIR) -lmlx -L/opt/X11/lib -lX11 -lXext -lXrender -lXrandr -lX
LDFLAGS += $(MLXFLAGS)
SRC =\
raycast/frame_update.c \
mlx_layer/mlx_init.c \
parsing/blank_for_raph.c \
parsing/arguments.c \
parsing/map.c \
parsing/blank_for_raph.c \
raycast/frame_update.c \
sources/cleanups.c \
sources/error.c \
sources/main.c \
sources/cleanups.c \
sources/options.c \
sources/rgb_to_color.c \
sources/error.c \
sources/options_impl.c
# raycast/rc_utils.c
# Objects
OBJDIRNAME = ./build
@ -143,6 +142,17 @@ footer:
@printf "$(GOLD) '\"' '\"'$(END)\n"
@printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n'
clangd:
@echo -en \
"CompileFlags:\n" \
" Add:\n" \
" - \"-Wall -Wextra -Werror\"\n" \
" - \"-I/opt/X11/include\"\n" \
" - \"-I"$(shell pwd)"/includes\"\n" \
" - \"-I"$(shell pwd)"/includes/include\"\n" \
" - \"-xc\"\n" \
> .clangd
# Phony targets
.PHONY: all bonus clean fclean re