Compare commits
3 Commits
aa95471fb9
...
4f2537b58f
Author | SHA1 | Date | |
---|---|---|---|
4f2537b58f | |||
93a824ab30 | |||
2062a09d21 |
11
Makefile
11
Makefile
@ -6,10 +6,10 @@ 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 -g
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
ARFLAGS =
|
ARFLAGS =
|
||||||
@ -23,9 +23,8 @@ $(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
|
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -rf $(OBJDIR)
|
rm -rf $(OBJDIR)
|
||||||
@ -37,4 +36,6 @@ $(NAME) : $(OBJ)
|
|||||||
mkdir -p $(BUILDDIR)
|
mkdir -p $(BUILDDIR)
|
||||||
$(AR) -rc $(BUILDDIR)/$(NAME) $(OBJ)
|
$(AR) -rc $(BUILDDIR)/$(NAME) $(OBJ)
|
||||||
|
|
||||||
.PHONY: clean fclean test all
|
re: fclean all
|
||||||
|
|
||||||
|
.PHONY: clean fclean test all re
|
Loading…
Reference in New Issue
Block a user