diff options
Diffstat (limited to 'mk/syslinux.mk')
-rw-r--r-- | mk/syslinux.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/syslinux.mk b/mk/syslinux.mk index 1378b6d5..2e12072e 100644 --- a/mk/syslinux.mk +++ b/mk/syslinux.mk @@ -32,8 +32,13 @@ COM32DIR = $(AUXDIR)/com32 BOOTDIR = /boot EXTLINUXDIR = $(BOOTDIR)/extlinux +ifdef DEBUG +# This allows DEBUGOPT to be set from the command line +DEBUGOPT = -DDEBUG=$(DEBUG) +endif + NASM = nasm -NASMOPT = -Ox +NASMOPT = -Ox $(DEBUGOPT) PERL = perl PYTHON = python @@ -68,9 +73,7 @@ WGET = wget com32 = $(topdir)/com32 # Common warnings we want for all gcc-generated code -GCCWARN := -W -Wall -Wstrict-prototypes -# Extremely useful variant for debugging... -#GCCWARN += -Wno-clobbered -Werror +GCCWARN = -W -Wall -Wstrict-prototypes $(DEBUGOPT) # Common stanza to make gcc generate .*.d dependency files MAKEDEPS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d |