Interrupts
This commit is contained in:
@@ -4,8 +4,8 @@ endif
|
||||
|
||||
CC := ${TARGET}-gcc
|
||||
|
||||
SRC := $(wildcard **/*.[cS])
|
||||
OBJ := $(patsubst %, %.o, $(basename $(SRC)))
|
||||
SRC := $(wildcard **/*.[cS]*)
|
||||
OBJ := $(patsubst %, %.o, $(basename $(basename $(SRC))))
|
||||
|
||||
CFLAGS := -Wall -Wextra -pedantic -ffreestanding -mcmodel=large
|
||||
CFLAGS += -ggdb -O0
|
||||
@@ -16,6 +16,9 @@ LDFLAGS := -n -nostdlib -lgcc -T Link.ld
|
||||
kernel: $(OBJ)
|
||||
$(LINK.c) $^ -o $@
|
||||
|
||||
%.o: %.S.py
|
||||
python3 $^ | $(COMPILE.S) $(DEPFLAGS) -x assembler-with-cpp - -o $@
|
||||
|
||||
# Automatic dependency tracking
|
||||
DEP := $(OBJ:.o=.d)
|
||||
DEPFLAGS = -MT $@ -MMD -MP -MF $*.d
|
||||
|
||||
Reference in New Issue
Block a user