fix: test rule makefile
This commit is contained in:
parent
aa95471fb9
commit
2062a09d21
4
Makefile
4
Makefile
@ -6,7 +6,7 @@ SRC := $(wildcard $(SRCDIR)/*.asm)
|
|||||||
OBJ := $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(SRC))
|
OBJ := $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(SRC))
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS =
|
CFLAGS = -g
|
||||||
|
|
||||||
AS = nasm
|
AS = nasm
|
||||||
ASFLAGS = -f elf64
|
ASFLAGS = -f elf64
|
||||||
@ -23,7 +23,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.asm
|
|||||||
all : $(NAME)
|
all : $(NAME)
|
||||||
|
|
||||||
test : $(NAME)
|
test : $(NAME)
|
||||||
$(CC) $(CFLAGS) test/test.c $(NAME) -o $(BUILDDIR)/test
|
$(CC) $(CFLAGS) test/test.c $(BUILDDIR)/$(NAME) -o $(BUILDDIR)/test
|
||||||
$(BUILDDIR)/test
|
$(BUILDDIR)/test
|
||||||
rm -rf $(BUILDDIR)/test
|
rm -rf $(BUILDDIR)/test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user