Makefile: add rules to build main executable with sanitizers

This commit is contained in:
Khaïs COLIN 2025-03-18 11:54:20 +01:00
parent f9aa614ef2
commit d069abcd43
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -78,7 +78,7 @@ minishell_objs = $(addsuffix .o,src/$(NAME)) $(objs)
all_objs = $(minishell_objs)
deps = $(all_objs:.o=.d)
.PHONY: all clean fclean re norm tests ctests ctestsa ctestsub ctestst
.PHONY: all clean fclean re norm tests ctests ctestsa ctestsub ctestst alla allub allt
all: $(NAME)
@ -138,3 +138,10 @@ ctestsub: CFLAGS += $(UBSAN)
ctestsub: ctests
ctestst: CFLAGS += $(TSAN)
ctestst: ctests
alla: CFLAGS += $(ASAN)
alla: all
allub: CFLAGS += $(UBSAN)
allub: all
allt: CFLAGS += $(TSAN)
allt: all