Compare commits

..

No commits in common. "4f2537b58fdee95cd275e0e71f6c2c52e7c0840b" and "aa95471fb9f586c503387761d8fa509e21388edf" have entirely different histories.

View File

@ -6,10 +6,10 @@ SRC := $(wildcard $(SRCDIR)/*.asm)
OBJ := $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(SRC))
CC = gcc
CFLAGS = -g
CFLAGS =
AS = nasm
ASFLAGS = -f elf64 -g
ASFLAGS = -f elf64
AR = ar
ARFLAGS =
@ -23,8 +23,9 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.asm
all : $(NAME)
test : $(NAME)
$(CC) $(CFLAGS) test/test.c $(BUILDDIR)/$(NAME) -o $(BUILDDIR)/test
$(CC) $(CFLAGS) test/test.c $(NAME) -o $(BUILDDIR)/test
$(BUILDDIR)/test
rm -rf $(BUILDDIR)/test
clean :
rm -rf $(OBJDIR)
@ -36,6 +37,4 @@ $(NAME) : $(OBJ)
mkdir -p $(BUILDDIR)
$(AR) -rc $(BUILDDIR)/$(NAME) $(OBJ)
re: fclean all
.PHONY: clean fclean test all re
.PHONY: clean fclean test all