Debug info in elf
This commit is contained in:
parent
7f9bd24fc8
commit
5950b75da4
1 changed files with 1 additions and 2 deletions
3
makefile
3
makefile
|
@ -9,7 +9,7 @@ MCU = atmega328p
|
||||||
QEMU_MACHINE_NAME = uno
|
QEMU_MACHINE_NAME = uno
|
||||||
|
|
||||||
# Compiler flags
|
# Compiler flags
|
||||||
CFLAGS = -std=c2x -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -O3
|
CFLAGS = -std=c99 -Wall -Wno-array-bounds -mmcu=$(MCU) -DF_CPU=16000000UL -Os -g
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
SRCS = main.c
|
SRCS = main.c
|
||||||
|
@ -30,7 +30,6 @@ all: $(TARGET).hex
|
||||||
# Link object files
|
# Link object files
|
||||||
$(TARGET).elf: $(OBJS)
|
$(TARGET).elf: $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET).elf
|
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET).elf
|
||||||
avr-strip $(TARGET).elf
|
|
||||||
|
|
||||||
# Convert ELF to HEX
|
# Convert ELF to HEX
|
||||||
$(TARGET).hex: $(TARGET).elf
|
$(TARGET).hex: $(TARGET).elf
|
||||||
|
|
Loading…
Reference in a new issue