summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorAlexey Gavrilov <90127298+rebovas@users.noreply.github.com>2024-03-31 14:40:50 +0700
committerGitHub <noreply@github.com>2024-03-31 14:40:50 +0700
commit18b4f9d1bff908fd91a48c1953ebcb8363855a59 (patch)
treed309b630a161823c79dab9a48f67a41a40d76b24 /makefile
parenta276644952ed018e77ca64181059434a6bc4ee62 (diff)
parent49cfee4e370892df8404e56d53b04dde196f82f2 (diff)
Merge pull request #6 from rebovas/idt
IDT + uintptr update
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index 1b43240..ef46637 100644
--- a/makefile
+++ b/makefile
@@ -2,9 +2,9 @@ CC = i686-elf-g++
LD = ld
ASM = nasm
# test -O2 flag
-CFLAGS = -c -m32 -Wall -ffreestanding -nostdinc -nostdlib
+CFLAGS = -c -m32 -Wall -ffreestanding -nostdinc -nostdlib -fno-rtti
AFLAGS = -f elf32
-LDFLAGS = -m elf_i386 $(patsubst %,-L%,$(subst :, ,$(LIBS_PATH))) -lgcc -lstdc++
+LDFLAGS = -m elf_i386 $(patsubst %,-L%,$(subst :, ,$(LIBS_PATH))) -lgcc
QEMUFLAGS =
CFILES = $(shell find ./ -type f \( -name \*.cpp -o -name \*.c \))
@@ -42,6 +42,7 @@ $(AFILES):
startbuild:
@echo $(OBJ_FILES)
+ rm -rf $(BDIR)
mkdir $(BDIR)
@echo "Compile source files..."