enable debug
This commit is contained in:
		
							parent
							
								
									597dec2277
								
							
						
					
					
						commit
						d4511b5f0c
					
				|  | @ -5,11 +5,12 @@ TARGET_ARCH = riscv32 | ||||||
| CC       = riscv32-unknown-elf-gcc | CC       = riscv32-unknown-elf-gcc | ||||||
| 
 | 
 | ||||||
| # compiling flags here
 | # 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 | LINKER   = riscv32-unknown-elf-gcc | ||||||
| # linking flags here
 | # linking flags here
 | ||||||
| LDFLAGS   = -I. -static  | LDFLAGS   = -I. -static -g | ||||||
| LIBS   = $(EXTRA_LIBS) | LIBS   = $(EXTRA_LIBS) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -48,3 +49,5 @@ clean: | ||||||
| remove: clean | remove: clean | ||||||
| 	@$(rm) $(BINDIR)/$(TARGET) | 	@$(rm) $(BINDIR)/$(TARGET) | ||||||
| 	@echo "Executable removed!" | 	@echo "Executable removed!" | ||||||
|  | 
 | ||||||
|  | all: $(BINDIR)/$(TARGET) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue