summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--defines.mk1
-rw-r--r--include.mk2
2 files changed, 3 insertions, 0 deletions
diff --git a/defines.mk b/defines.mk
index cf3a8d2..19ad64f 100644
--- a/defines.mk
+++ b/defines.mk
@@ -195,6 +195,7 @@ endif
CC = avr-gcc
OBJCOPY = avr-objcopy
AR = avr-ar rcs
+SIZE = avr-size
LIB_DIR = ../lib
diff --git a/include.mk b/include.mk
index b68db33..83bf275 100644
--- a/include.mk
+++ b/include.mk
@@ -90,6 +90,8 @@ lib-%.o: $(LIB_DIR)/%.c Makefile
$(ELFFILE): $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=lib%.a)
$(CC) $(LDFLAGS) $(OBJ) $(OBJ_LIB) $(EXTERNAL_LIBS:%=-l%) -o $@
+ $(SIZE) $@
+ @echo ""
$(HEXFILE): $(ELFFILE)
$(OBJCOPY) -O ihex -R .eeprom -R .fuse -R .lock -R .signature $< $@