Added DEBUG_KERNEL option to kernel makefile.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-08-01 16:17:32 +02:00
parent 715a4588e5
commit eb4f179330
1 changed files with 6 additions and 3 deletions

View File

@ -72,10 +72,13 @@ endif
INCLUDES=-I. -Iinclude -I../libmaxsi/preproc
CPPFLAGS=$(INCLUDES) $(DEFINES)
FLAGSRELEASE=-s $(O)
FLAGSDEBUG=
ifeq ($(DEBUG_KERNEL),1)
FLAGSDEBUG=-g3
else
FLAGSDEBUG=-s $(O)
endif
FLAGS=$(CPUFLAGS) -Wall -Wall -Wextra -nostdlib -fno-builtin -nostartfiles \
-nodefaultlibs -fno-stack-protector $(FLAGSRELEASE)
-nodefaultlibs -fno-stack-protector $(FLAGSDEBUG)
CFLAGS=$(FLAGS)
CXXFLAGS=$(FLAGS) -std=gnu++0x -fno-exceptions -fno-rtti
ASFLAGS=$(CPUASFLAGS)