20 lines
555 B
Makefile
20 lines
555 B
Makefile
|
ARCHITECTURE = avr
|
||
|
BOARD_TAG = nano
|
||
|
BOARD_SUB = atmega328old
|
||
|
ARDUINO_LIBS = arduino-mcp2515
|
||
|
|
||
|
ARDUINO_DEV ?= /dev/ttyUSB0
|
||
|
|
||
|
ARDUINO_VERSION ?= 1.5
|
||
|
ifeq ($(origin ARDUINO_SKETCHBOOK), undefined)
|
||
|
ARDUINO_SKETCHBOOK := $(shell sed -n 's/^sketchbook.path=//p' ~/.arduino$(subst .,,$(ARDUINO_VERSION))/preferences.txt)
|
||
|
endif
|
||
|
ifeq ($(origin BOARDS_TXT), undefined)
|
||
|
BOARDS_TXT := $(shell locate '*/arduino/*/boards.txt') # ¯\_(ツ)_/¯
|
||
|
endif
|
||
|
|
||
|
ARDMK_DIR ?= ../arduino-makefile
|
||
|
AVR_TOOLS_DIR ?= /usr
|
||
|
|
||
|
include $(ARDMK_DIR)/Arduino.mk
|