2016-03-21 09:25:42 +01:00
|
|
|
# Target architecture for the build. Use avr if you are unsure.
|
|
|
|
export TARGET_ARCH ?= avr
|
2014-07-15 12:08:52 +02:00
|
|
|
|
2016-08-18 22:04:41 +02:00
|
|
|
# define build specific options
|
|
|
|
CFLAGS_LINK = -ffunction-sections -fdata-sections
|
|
|
|
|
|
|
|
# export compiler flags
|
|
|
|
export CFLAGS += $(CFLAGS_LINK)
|
|
|
|
|
|
|
|
# export linker flags
|
|
|
|
export LINKFLAGS += -Wl,--gc-sections -static -lgcc
|
|
|
|
|
2016-06-06 17:54:42 +02:00
|
|
|
# export the peripheral drivers to be linked into the final binary
|
|
|
|
export USEMODULE += periph
|
|
|
|
|
|
|
|
# the atmel port uses uart_stdio
|
|
|
|
export USEMODULE += uart_stdio
|
|
|
|
|
2014-07-15 12:08:52 +02:00
|
|
|
# include module specific includes
|
|
|
|
export INCLUDES += -I$(RIOTCPU)/atmega_common/include -isystem$(RIOTCPU)/atmega_common/avr-libc-extra
|