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
|
INCLUDES=-I. -Iinclude -I../libmaxsi/preproc
|
||||||
CPPFLAGS=$(INCLUDES) $(DEFINES)
|
CPPFLAGS=$(INCLUDES) $(DEFINES)
|
||||||
FLAGSRELEASE=-s $(O)
|
ifeq ($(DEBUG_KERNEL),1)
|
||||||
FLAGSDEBUG=
|
FLAGSDEBUG=-g3
|
||||||
|
else
|
||||||
|
FLAGSDEBUG=-s $(O)
|
||||||
|
endif
|
||||||
FLAGS=$(CPUFLAGS) -Wall -Wall -Wextra -nostdlib -fno-builtin -nostartfiles \
|
FLAGS=$(CPUFLAGS) -Wall -Wall -Wextra -nostdlib -fno-builtin -nostartfiles \
|
||||||
-nodefaultlibs -fno-stack-protector $(FLAGSRELEASE)
|
-nodefaultlibs -fno-stack-protector $(FLAGSDEBUG)
|
||||||
CFLAGS=$(FLAGS)
|
CFLAGS=$(FLAGS)
|
||||||
CXXFLAGS=$(FLAGS) -std=gnu++0x -fno-exceptions -fno-rtti
|
CXXFLAGS=$(FLAGS) -std=gnu++0x -fno-exceptions -fno-rtti
|
||||||
ASFLAGS=$(CPUASFLAGS)
|
ASFLAGS=$(CPUASFLAGS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue