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