diff --git a/avr/Makefile b/avr/Makefile index e368e72..46b910a 100644 --- a/avr/Makefile +++ b/avr/Makefile @@ -7,8 +7,9 @@ HEADER_SUBDIR = tabby CROSS = avr- CC = $(CROSS)gcc -CFLAGS = $(CGFLAGS) -Wall -Os -mmcu=atmega2560 -I$(INCLUDE_PATH) \ - -DF_CPU=$(CLOCK_SPEED) -DUSE_2X +CFLAGS = $(CGFLAGS) -Wall -Os -mmcu=atmega2560 \ + -fdata-sections -ffunction-sections -Wl,--gc-sections \ + -I$(INCLUDE_PATH) -DF_CPU=$(CLOCK_SPEED) -DUSE_2X LDFLAGS = OBJCOPY = $(CROSS)objcopy