build(C/make): adding the debug rules

This commit is contained in:
Raphael 2026-03-17 15:17:44 +01:00
parent 7f97967484
commit 763682e680
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ # # By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2026/03/17 14:11:46 by rparodi ### ########.fr # # Updated: 2026/03/17 15:10:44 by rparodi ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -159,6 +159,9 @@ tmux:
@tmux select-window -t $(NAME):0 @tmux select-window -t $(NAME):0
@tmux attach-session -t $(NAME) @tmux attach-session -t $(NAME)
debug: CFLAGS += -g
debug: re
clangd: clangd:
@printf "CompileFlags:\n" > ./.clangd @printf "CompileFlags:\n" > ./.clangd
@printf " Add:\n" >> ./.clangd @printf " Add:\n" >> ./.clangd
@ -171,4 +174,4 @@ clangd:
@printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n' @printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n'
# Phony targets # Phony targets
.PHONY: all clean fclean re clangd tmux header footer .PHONY: all clean fclean re clangd tmux header footer debug