enable debug

This commit is contained in:
mariusmonton 2021-02-21 13:51:33 +01:00
parent 597dec2277
commit d4511b5f0c
1 changed files with 5 additions and 2 deletions

View File

@ -5,11 +5,12 @@ TARGET_ARCH = riscv32
CC = riscv32-unknown-elf-gcc
# compiling flags here
CFLAGS = -Wall -I. -O0 -static -march=rv32imac -mabi=ilp32 --specs=nosys.specs
CFLAGS = -Wall -I. -O0 -static -march=rv32imac -mabi=ilp32 --specs=nosys.specs -ggdb
LINKER = riscv32-unknown-elf-gcc
# linking flags here
LDFLAGS = -I. -static
LDFLAGS = -I. -static -g
LIBS = $(EXTRA_LIBS)
@ -48,3 +49,5 @@ clean:
remove: clean
@$(rm) $(BINDIR)/$(TARGET)
@echo "Executable removed!"
all: $(BINDIR)/$(TARGET)