mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 06:28:22 +00:00
cae7428ed0
Added a basic kernel panic function and interrupt support for x86_64 (mostly for exception handling)
18 lines
362 B
Makefile
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)/$@
|