build(debug/run): improuved some stuff
This commit is contained in:
parent
506397a281
commit
c2316b6eaf
1 changed files with 6 additions and 3 deletions
|
|
@ -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: 2025/06/05 18:48:32 by rparodi ### ########.fr #
|
# Updated: 2025/06/05 19:09:44 by rparodi ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|
@ -86,6 +86,9 @@ fclean: clean
|
||||||
# Restart (make re)
|
# Restart (make re)
|
||||||
re: header fclean all
|
re: header fclean all
|
||||||
|
|
||||||
|
run: all
|
||||||
|
@./$(NAME) ./input.txt
|
||||||
|
|
||||||
# Dependences for all
|
# Dependences for all
|
||||||
$(NAME): $(OBJ)
|
$(NAME): $(OBJ)
|
||||||
@mkdir -p $(OBJDIRNAME)
|
@mkdir -p $(OBJDIRNAME)
|
||||||
|
|
@ -114,7 +117,7 @@ header:
|
||||||
@printf '$(GOLD) ****** $(END)\n'
|
@printf '$(GOLD) ****** $(END)\n'
|
||||||
@printf '$(GREY) Made by rparodi$(END)\n\n'
|
@printf '$(GREY) Made by rparodi$(END)\n\n'
|
||||||
|
|
||||||
debug: CPPFLAGS += -D DEBUG=1
|
debug: CPPFLAGS += -D DEBUG=1 -g
|
||||||
debug: re
|
debug: re
|
||||||
|
|
||||||
# Footer
|
# Footer
|
||||||
|
|
@ -147,5 +150,5 @@ 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
|
# Phony
|
||||||
.PHONY: all clean fclean re get_db clangd
|
.PHONY: all clean fclean re get_db clangd run
|
||||||
-include ${OBJ:.o=.d}
|
-include ${OBJ:.o=.d}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue