Made kernel C++ now

This commit is contained in:
2021-10-21 23:19:36 +01:00
parent cd8bd42ebb
commit 2a68860bef
14 changed files with 70 additions and 75 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
CFLAGS = -std=gnu11 -m32 -mgeneral-regs-only -nostdlib -fno-builtin -fno-exceptions -fno-leading-underscore -fno-pie -fno-stack-protector -Wno-pointer-to-int-cast
CXXFLAGS = -m32 -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore
CXXFLAGS = -m32 -fno-use-cxa-atexit -mgeneral-regs-only -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -fpermissive -fno-pie -fno-stack-protector
LDFLAGS =
DISK_IMG_FILES = build/kernel/kernel.bin
@@ -52,7 +52,7 @@ build/kernel/%.o: src/kernel/%.c
gcc $(CFLAGS) -o $@ -c $<
build/kernel/%.o: src/kernel/%.cpp
g++ $(CFLAGS) -o $@ -c $<
g++ $(CXXFLAGS) -o $@ -c $<
build/kernel/%.o: src/kernel/%.asm
nasm -felf32 $< -o $@