build: adding the new functions (read / write) to the makefile

This commit is contained in:
Raphael 2025-12-11 23:10:53 +01:00
parent e2672eeecd
commit 923dc8a6ca
No known key found for this signature in database

View file

@ -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)