Add ability to disable debug printing and gdb symbols
This commit is contained in:
1 parent
a9831c1038
commit
572bee19cc
3 files changed
+11
-2
No files matched your search
@@ -7,8 +7,13 @@ OBJ := $(patsubst %, %.o, $(basename $(SRC)))
|
||||
|
||||
CFLAGS ?= -Wall -Wextra -pedantic
|
||||
CFLAGS += -ffreestanding -mcmodel=large
|
||||
ifndef NDEBUG
|
||||
CFLAGS += -ggdb -O0
|
||||
ASFLAGS += -ggdb
|
||||
else
|
||||
CFLAGS += -O3 -mno-sse
|
||||
CPPFLAGS += -DNDEBUG
|
||||
endif
|
||||
CPPFLAGS += -I include
|
||||
LDFLAGS := -n -nostdlib -lgcc -T Link.ld
|
||||
|
||||
|
||||
Reference in new issue
Block a user