fix: test rule makefile

This commit is contained in:
starnakin 2024-08-29 16:15:52 +02:00
parent aa95471fb9
commit 2062a09d21

View File

@ -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