mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added DEBUG_KERNEL option to kernel makefile.
This commit is contained in:
parent
715a4588e5
commit
eb4f179330
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue