Files
Astral/src/arch/x86_64/Makefile
T
Matheus cae7428ed0 Panic and interrupts
Added a basic kernel panic function and interrupt support for x86_64 (mostly for exception handling)
2022-07-22 00:34:44 -03:00

18 lines
362 B
Makefile

objects := $(patsubst %.c,%.o,$(wildcard *.c)) israsm.o
subdirs=boot
OBJPATH=$(OBJDIR)/arch/${TARGET}/
export
all: $(objects) $(subdirs)
for subdir in $(subdirs) ; do $(MAKE) -C $${subdir} ; done
%.o: %.c
$(CC) $(CFLAGS) -o $@ $<
mkdir -p $(OBJPATH)
cp $@ $(OBJPATH)/$@
israsm.o: isr.asm
nasm -f elf64 -o $@ $<
mkdir -p $(OBJPATH)
cp $@ $(OBJPATH)/$@