@@ -5,7 +5,7 @@ LIBFT_PATH = $(LIBFT_DIR)/libft.a
55
66CC = gcc
77
8- FLAGS = -Wall -Wextra -Werror -L/usr/local/lib -I/usr/local/include -lreadline
8+ FLAGS = -Wall -Wextra -Werror
99
1010MEMORY_ALLOCATOR_SOURCES = memory-allocator/aborter.c memory-allocator/allocator.c
1111SOURCES = src/execute/execute_utils.c src/builtin/cd.c src/builtin/exit.c src/builtin/export.c src/builtin/export_utils.c \
@@ -32,16 +32,12 @@ $(TEST_PATH):
3232
3333test : $(TEST_PATH ) $(NAME )
3434 @printf " $( CLEAN_CAR) $( GREEN_COLOR) [Tests compiling]$( BLUE_COLOR) : $( PURPLE_COLOR) $<$( NO_COLOR) "
35- @$(CC ) $(FLAGS ) $(SOURCES:.c=.o ) $(LIBFT_PATH ) $(TEST_SOURCES ) -o $(TEST_PATH ) /tests -I/opt/homebrew/Cellar/criterion/2.4.2_2/include -L/opt/homebrew/Cellar/criterion/2.4.2_2/lib -lcriterion
36- @printf " $( CLEAN_CAR) $( GREEN_COLOR) Tests running right now. Please wait.\n$( BLUE_COLOR) $( NO_COLOR) "
37- @./$(TEST_PATH ) /tests ; export TEST_RESULT=$$? ; rm -f __test_file* | exit $$ TEST_RESULT
38-
39- testifs : $(TEST_PATH ) $(NAME )
40- @printf " $( CLEAN_CAR) $( GREEN_COLOR) [Tests compiling]$( BLUE_COLOR) : $( PURPLE_COLOR) $<$( NO_COLOR) "
41- @$(CC ) $(FLAGS ) $(SOURCES:.c=.o ) $(LIBFT_PATH ) -o $(TEST_PATH ) /tests -I/opt/homebrew/Cellar/criterion/2.4.2_2/include -L/opt/homebrew/Cellar/criterion/2.4.2_2/lib -lcriterion
35+ @$(CC ) $(FLAGS ) $(SOURCES:.c=.o ) $(LIBFT_PATH ) $(TEST_SOURCES ) -o $(TEST_PATH ) /tests -lcriterion -L/usr/local/lib -I/usr/local/include -lreadline
4236 @printf " $( CLEAN_CAR) $( GREEN_COLOR) Tests running right now. Please wait.\n$( BLUE_COLOR) $( NO_COLOR) "
4337 @./$(TEST_PATH ) /tests ; export TEST_RESULT=$$? ; rm -f __test_file* | exit $$ TEST_RESULT
4438
39+ $(LIBFT_PATH ) :
40+ @make bonus -C $(LIBFT_DIR ) FLAGS=" $( FLAGS) "
4541
4642$(LIBFT_PATH ) :
4743 @make bonus -C $(LIBFT_DIR ) FLAGS=" $( FLAGS) "
@@ -68,7 +64,7 @@ fclean:
6864
6965re : fclean all
7066
71- .PHONY : all clean fclean re test testifs
67+ .PHONY : all clean fclean re test
7268
7369NO_COLOR = \x1b[0m
7470GREEN_COLOR = \x1b[32;01m
0 commit comments