Skip to content

Commit d6974a0

Browse files
author
NotYourFox
committed
Add -Ikernel/arch/include to include path and support .S as a GAS extension
1 parent b7200ff commit d6974a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SRCS := $(shell find kernel/ -name "*.c" -o -name "*.s")
22
OBJS := $(patsubst %.c, %.o, $(patsubst %.s, %.o, $(SRCS)))
33
$(shell mkdir -p $(dir $(OBJS)))
44

5-
CFLAGS = -m64 -Wall -Werror -std=gnu2x -Ikernel/include -ffreestanding -O0 -fno-stack-protector
5+
CFLAGS = -m64 -Wall -Werror -std=gnu2x -Ikernel/include -Ikernel/arch/include -ffreestanding -O0 -fno-stack-protector -Wno-format
66
ASFLAGS = -64
77

88
.PHONY: all run test clean format
@@ -23,7 +23,7 @@ kernel/kernel.elf: $(OBJS)
2323
%.o: %.c
2424
gcc $(CFLAGS) -c -o $@ $<
2525

26-
%.o: %.s
26+
%.o: %.s %.S
2727
as $(ASFLAGS) -o $@ $<
2828

2929
serial.log: cis-os.iso

0 commit comments

Comments
 (0)