From f667e2739665bfaf61c1bc6bba0e74d4e6e67994 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 9 Dec 2025 12:35:07 +0100 Subject: [PATCH] build(test): now the test is using LDFlags --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 214be41..633dd7c 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2025/12/08 14:01:53 by rparodi ### ########.fr # +# Updated: 2025/12/09 12:00:39 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -27,7 +27,7 @@ RM = rm -rf CFLAGS = -Werror -Wextra -Wall TEST_FILE = test/main.c INC_DIR = includes -LDFLAGS = -L $(shell pwd)/build/ +LDFLAGS = -L./build/ -lasm CPPFLAGS = $(addprefix -I, $(INC_DIR)) -MMD -MP # Objects @@ -84,7 +84,7 @@ run: test test_compile: @printf '$(GREY) Start $(END)$(GREEN)Testing on $(TEST_OUTPUT)$(END)\n' - @$(CC) $(CFLAGS) $(CPPFLAGS) $(TEST_FILE) -o $(TEST_OUTPUT) ./build/libasm.a + @$(CC) $(CFLAGS) $(CPPFLAGS) $(TEST_FILE) $(LDFLAGS) -o $(TEST_OUTPUT) @echo "" @./result