From 2062a09d212fdb40d70b976692296d1d2e20db01 Mon Sep 17 00:00:00 2001 From: starnakin Date: Thu, 29 Aug 2024 16:15:52 +0200 Subject: [PATCH] fix: test rule makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f83278c..4c83821 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ SRC := $(wildcard $(SRCDIR)/*.asm) OBJ := $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(SRC)) CC = gcc -CFLAGS = +CFLAGS = -g AS = nasm ASFLAGS = -f elf64 @@ -23,7 +23,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.asm all : $(NAME) test : $(NAME) - $(CC) $(CFLAGS) test/test.c $(NAME) -o $(BUILDDIR)/test + $(CC) $(CFLAGS) test/test.c $(BUILDDIR)/$(NAME) -o $(BUILDDIR)/test $(BUILDDIR)/test rm -rf $(BUILDDIR)/test