diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-15 20:48:12 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-15 20:48:12 -0500 |
| commit | d6b373756ddc6de416636f1e2648416f174e9a71 (patch) | |
| tree | 19e117c4522859d9d13387ef9a4316de92a7ad17 /sys/arch/amd64/Makefile | |
| parent | 012c6c107579320160bbc1ad2158eca9daf2d04f (diff) | |
kern/amd64: Add panic function + MU helpers
This commit introduces a panic function as well as a panic machine
unifier layer for MD specifics that help bring the system to a halt.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/Makefile')
| -rw-r--r-- | sys/arch/amd64/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/amd64/Makefile b/sys/arch/amd64/Makefile index 265948a..7c6c6c8 100644 --- a/sys/arch/amd64/Makefile +++ b/sys/arch/amd64/Makefile @@ -5,17 +5,23 @@ CC = LD = SYS_CFLAGS = ASMFILES = $(shell find . -name "*.S") +CFILES = $(shell find . -name "*.c") ASMOBJS = $(ASMFILES:.S=.S.o) +COBJ = $(CFILES:.c=.o) MISC_OFILES = $(shell find ../../ -name "*.o") .PHONY: all -all: $(ASMOBJS) +all: $(ASMOBJS) $(COBJ) $(LD) -Tconf/link.ld $(MISC_OFILES) -o ../../rv7 %.S.o: %.S $(PROMPT) " [AS] " $< $(CC) -c -I../../target/inc/ $(SYS_CFLAGS) $< -o $@ +%.o: %.c + $(PROMPT) " [CC] " $< + $(CC) -c -I../../target/inc/ -I../../inc/ $(SYS_CFLAGS) $< -o $@ + .PHONY: clean clean: rm $(MISC_OFILES) |
