This commit is contained in:
tkl
2019-12-26 10:15:25 +01:00
committed by Thomas Klaehn
parent 18913f5f6a
commit ec338fb930
2 changed files with 113 additions and 38 deletions

View File

@@ -3,16 +3,15 @@ CROSS_COMPILE ?= avr-
TARGET_FILE ?= avr.elf
MCU = attiny85
# MCU = atmega8
# C_FLAGS += -Wall -Werror
C_FLAGS += -Wall -Werror
C_FLAGS += -Os
C_FLAGS += -mmcu=$(MCU)
# C_FLAGS += -ffunction-sections
# C_FLAGS += -fdata-sections
# C_FLAGS += -std=c11
# C_FLAGS += -pedantic
# C_FLAGS += -pedantic-errors
C_FLAGS += -ffunction-sections
C_FLAGS += -fdata-sections
C_FLAGS += -std=c11
C_FLAGS += -pedantic
C_FLAGS += -pedantic-errors
C_FLAGS += -Iinclude
LD_FLAGS += -mmcu=$(MCU)