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))
|
OBJ_BONUS = $(addprefix $(OBJDIRNAME)/,$(SRC_BONUS:.s=.o))
|
||||||
|
|
||||||
SRC = src/ft_strlen.s \
|
SRC = src/ft_strlen.s \
|
||||||
src/ft_strcmp.s
|
src/ft_strcmp.s \
|
||||||
|
src/ft_write.s \
|
||||||
|
src/ft_read.s
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
GREEN = \033[32m
|
GREEN = \033[32m
|
||||||
|
|
@ -83,10 +85,10 @@ test: header $(NAME) test_compile footer
|
||||||
run: test
|
run: test
|
||||||
|
|
||||||
test_compile:
|
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)
|
@$(CC) $(CFLAGS) $(CPPFLAGS) $(TEST_FILE) $(LDFLAGS) -o $(TEST_OUTPUT)
|
||||||
@echo ""
|
@echo ""
|
||||||
@./result
|
@./$(TEST_OUTPUT)
|
||||||
|
|
||||||
header:
|
header:
|
||||||
@clear
|
@clear
|
||||||
|
|
@ -134,3 +136,4 @@ clangd:
|
||||||
|
|
||||||
# Phony
|
# Phony
|
||||||
.PHONY: all bonus clean fclean re footer header test run test_compile clangd
|
.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