Skip to content

Commit

Permalink
screw you -O2!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Moros1138 committed Oct 9, 2021
1 parent a22dff8 commit c854335
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,25 @@ CC := i686-elf-g++
AS := nasm -felf32
LD := i686-elf-ld

# debug configuration
DEBUG := -ggdb3 -Og

# release configuration
RELEASE := -O2

# which build configuration
# BUILD := $(DEBUG)
BUILD := $(RELEASE)

# directories
BIN := bin
INC := include
OBJ := obj
SRC := src

# compiler flags
CFLAGS := -I$(INC) $(BUILD) -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wno-write-strings
CFLAGS += -DPRINTF_DISABLE_SUPPORT_LONG_LONG
CFLAGS := -I$(INC) -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscore -Wno-write-strings

# linker flags
LDFLAGS :=

# kernel object files
KERNEL_OBJS :=\
$(OBJ)/loader.o \
$(OBJ)/gdt.o \
$(OBJ)/descriptor_tables.o \
$(OBJ)/interrupts.o \
$(OBJ)/isr.o \
$(OBJ)/io.o \
$(OBJ)/monitor.o \
$(OBJ)/memory.o \
Expand Down

0 comments on commit c854335

Please sign in to comment.