2021-10-23 10:37:02
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
# By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2021/10/22 09:10:00 by gbaconni #+# #+# #
|
||||
# Updated: 2021/10/22 21:24:29 by gbaconni ### ########.fr #
|
||||
# Updated: 2021/10/23 10:30:24 by gbaconni ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
#
|
||||
@@ -32,13 +32,26 @@ SRC = \
|
||||
$(HDRDIR)/munit.c
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -Werror -O1
|
||||
CFLAGS = -Wall -Wextra -Werror
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -g -fsanitize=address -O1
|
||||
endif
|
||||
|
||||
RM = rm
|
||||
RMFLAGS = -f
|
||||
|
||||
all: compile test
|
||||
|
||||
debug:
|
||||
@make re DEBUG=1
|
||||
|
||||
setup:
|
||||
@echo "Set the location of your libft to:"
|
||||
@ln -snvf $$(find ~ -mindepth 2 -maxdepth 4 -name libft.a -type f -exec dirname "{}" \; 2>/dev/null | head -n1) libft
|
||||
@echo ""
|
||||
@echo "If the above is not correct the correct location of your libft, use one of the following command to fix it:"
|
||||
@find ~ -mindepth 2 -maxdepth 4 -name libft.h -type f -exec dirname "{}" \; 2>/dev/null | xargs -r -I{} echo ln -snvf {} libft
|
||||
|
||||
help:
|
||||
@echo "a: nemequ/µnit"
|
||||
@echo "b: Tripouille/libftTester"
|
||||
@@ -89,4 +102,3 @@ fclean: clean
|
||||
|
||||
re: fclean all
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user