aboutsummaryrefslogtreecommitdiff
path: root/examples/usartecho
diff options
context:
space:
mode:
Diffstat (limited to 'examples/usartecho')
-rw-r--r--examples/usartecho/makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/usartecho/makefile b/examples/usartecho/makefile
index fa10cd2..15254c6 100644
--- a/examples/usartecho/makefile
+++ b/examples/usartecho/makefile
@@ -3,8 +3,10 @@ MAKEFLAGS += --no-builtin-rules
MMCU = atmega328p
F_CPU = 16000000L
IOE_PREFIX = ../..
-IOE_CFLAGS = -Os -ffunction-sections -fdata-sections -fshort-enums -Wall \
- -DF_CPU=$(F_CPU) -mmcu=$(MMCU) \
+IOE_SHORTOUTPUT=y
+IOE_CFLAGS = -Os -fshort-enums -Wall \
+ -DF_CPU=$(F_CPU) -mmcu=$(MMCU) \
+ -DCONFIG_IOE_USART \
-DCONFIG_IOE_USART_OUTBUFFER_SIZE=64 \
-DCONFIG_IOE_USART_OUTBUFFER_MODE=0 \
-DCONFIG_IOE_USART_BAUD=115200 \
@@ -21,11 +23,14 @@ clean: ioeclean
include ../../avr-ioe.mk
-usart.elf: %.elf: $(IOE_OBJ_USART) echo.o
- avr-gcc -mmcu=$(MMCU) $^ -o $@
+usart.elf: %.elf: $(IOE_OBJ) echo.o
+ @echo " LD $@"
+ @avr-gcc -Os -mmcu=$(MMCU) $^ -o $@
usart.hex: %.hex: %.elf
- avr-objcopy -O ihex -R .eeprom $< $@
+ @echo " OBJCOPY $@"
+ @avr-objcopy -O ihex -R .eeprom $< $@
echo.o: %.o: %.c
- avr-gcc $(IOE_CFLAGS) -c -o $@ $<
+ @echo " CC $@"
+ @avr-gcc $(IOE_CFLAGS) -c -o $@ $<