build: adding the new functions (read / write) to the makefile
This commit is contained in:
parent
e2672eeecd
commit
923dc8a6ca
1 changed files with 6 additions and 3 deletions
9
Makefile
9
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue