mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
Makefile: add rules to build main executable with sanitizers
This commit is contained in:
parent
f9aa614ef2
commit
d069abcd43
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
|
@ -78,7 +78,7 @@ minishell_objs = $(addsuffix .o,src/$(NAME)) $(objs)
|
||||||
all_objs = $(minishell_objs)
|
all_objs = $(minishell_objs)
|
||||||
deps = $(all_objs:.o=.d)
|
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)
|
all: $(NAME)
|
||||||
|
|
||||||
|
|
@ -138,3 +138,10 @@ ctestsub: CFLAGS += $(UBSAN)
|
||||||
ctestsub: ctests
|
ctestsub: ctests
|
||||||
ctestst: CFLAGS += $(TSAN)
|
ctestst: CFLAGS += $(TSAN)
|
||||||
ctestst: ctests
|
ctestst: ctests
|
||||||
|
|
||||||
|
alla: CFLAGS += $(ASAN)
|
||||||
|
alla: all
|
||||||
|
allub: CFLAGS += $(UBSAN)
|
||||||
|
allub: all
|
||||||
|
allt: CFLAGS += $(TSAN)
|
||||||
|
allt: all
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue