diff --git a/Makefile b/Makefile index de55f3d..ed90f1a 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,9 @@ OBJ = $(addprefix $(OBJDIRNAME)/,$(SRC:.s=.o)) OBJ_BONUS = $(addprefix $(OBJDIRNAME)/,$(SRC_BONUS:.s=.o)) SRC = src/ft_strlen.s \ - src/ft_strcmp.s + src/ft_strcmp.s \ + src/ft_write.s \ + src/ft_read.s # Colors GREEN = \033[32m @@ -83,10 +85,10 @@ test: header $(NAME) test_compile footer run: test test_compile: - @printf '$(GREY) Start $(END)$(GREEN)Testing on $(TEST_OUTPUT)$(END)\n' + @printf '$(GREY) Compiling $(END)$(GOLD)all tests$(END)\n' @$(CC) $(CFLAGS) $(CPPFLAGS) $(TEST_FILE) $(LDFLAGS) -o $(TEST_OUTPUT) @echo "" - @./result + @./$(TEST_OUTPUT) header: @clear @@ -134,3 +136,4 @@ clangd: # Phony .PHONY: all bonus clean fclean re footer header test run test_compile clangd +-include $(OBJ:.o=.d)